* [PATCH] crypto: picoxcell - convert sysfs sprintf/snprintf family to sysfs_emit
@ 2021-02-04 7:24 Jiapeng Chong
2021-02-10 6:24 ` Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: Jiapeng Chong @ 2021-02-04 7:24 UTC (permalink / raw)
To: jamie
Cc: herbert, davem, linux-arm-kernel, linux-crypto, linux-kernel,
Jiapeng Chong
Fix the following coccicheck warning:
./drivers/crypto/picoxcell_crypto.c:1201:8-16: WARNING: use scnprintf
or sprintf.
Reported-by: Abaci Robot<abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
drivers/crypto/picoxcell_crypto.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/picoxcell_crypto.c b/drivers/crypto/picoxcell_crypto.c
index 84f9c16..d7a7def 100644
--- a/drivers/crypto/picoxcell_crypto.c
+++ b/drivers/crypto/picoxcell_crypto.c
@@ -1198,7 +1198,7 @@ static ssize_t spacc_stat_irq_thresh_show(struct device *dev,
{
struct spacc_engine *engine = spacc_dev_to_engine(dev);
- return snprintf(buf, PAGE_SIZE, "%u\n", engine->stat_irq_thresh);
+ return sysfs_emit(buf, "%u\n", engine->stat_irq_thresh);
}
static ssize_t spacc_stat_irq_thresh_store(struct device *dev,
--
1.8.3.1
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] crypto: picoxcell - convert sysfs sprintf/snprintf family to sysfs_emit
2021-02-04 7:24 [PATCH] crypto: picoxcell - convert sysfs sprintf/snprintf family to sysfs_emit Jiapeng Chong
@ 2021-02-10 6:24 ` Herbert Xu
0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2021-02-10 6:24 UTC (permalink / raw)
To: Jiapeng Chong; +Cc: jamie, davem, linux-arm-kernel, linux-crypto, linux-kernel
On Thu, Feb 04, 2021 at 03:24:13PM +0800, Jiapeng Chong wrote:
> Fix the following coccicheck warning:
>
> ./drivers/crypto/picoxcell_crypto.c:1201:8-16: WARNING: use scnprintf
> or sprintf.
>
> Reported-by: Abaci Robot<abaci@linux.alibaba.com>
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
> ---
> drivers/crypto/picoxcell_crypto.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
This driver no longer exists.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-10 6:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-04 7:24 [PATCH] crypto: picoxcell - convert sysfs sprintf/snprintf family to sysfs_emit Jiapeng Chong
2021-02-10 6:24 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®