dmapool: use sysfs_emit() instead of scnprintf()
authorTony Battersby <tonyb@cybernetics.com>
Thu, 26 Jan 2023 21:51:16 +0000 (13:51 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 6 May 2023 17:33:36 +0000 (10:33 -0700)
commit08cc96c894848bcd1d15a79b15c56a8bb4f07ff5
treed5f8e4c5e60b9c1a54ed537a4aa9f0ab91cf8fce
parent67a540c60c39d052d9599aa9909023152200a707
dmapool: use sysfs_emit() instead of scnprintf()

Use sysfs_emit instead of scnprintf, snprintf or sprintf.

Link: https://lkml.kernel.org/r/20230126215125.4069751-4-kbusch@meta.com
Fixes: 2d55c16c0c54 ("dmapool: create/destroy cleanup")
Signed-off-by: Tony Battersby <tonyb@cybernetics.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/dmapool.c