[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <cbdc15a7-f0f8-472c-ae24-178037b99da6@intel.com>
Date: Tue, 16 Jan 2024 08:24:10 +0100
From: Artur Paszkiewicz <artur.paszkiewicz@...el.com>
To: Li Zhijian <lizhijian@...itsu.com>, <linux-kernel@...r.kernel.org>
CC: "James E.J. Bottomley" <jejb@...ux.ibm.com>, "Martin K. Petersen"
<martin.petersen@...cle.com>, <linux-scsi@...r.kernel.org>
Subject: Re: [PATCH 27/42] drivers/scsi/isci: Convert snprintf to sysfs_emit
On 1/16/24 05:51, Li Zhijian wrote:
> Per filesystems/sysfs.rst, show() should only use sysfs_emit()
> or sysfs_emit_at() when formatting the value to be returned to user space.
>
> coccinelle complains that there are still a couple of functions that use
> snprintf(). Convert them to sysfs_emit().
>
>> ./drivers/scsi/isci/init.c:140:8-16: WARNING: please use sysfs_emit
>
> No functional change intended
>
> CC: Artur Paszkiewicz <artur.paszkiewicz@...el.com>
> CC: "James E.J. Bottomley" <jejb@...ux.ibm.com>
> CC: "Martin K. Petersen" <martin.petersen@...cle.com>
> CC: linux-scsi@...r.kernel.org
> Signed-off-by: Li Zhijian <lizhijian@...itsu.com>
Reviewed-by: Artur Paszkiewicz <artur.paszkiewicz@...el.com>
Powered by blists - more mailing lists