Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp904608pxb; Wed, 3 Feb 2021 23:26:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJwG0NqxxWwEUGROpMBZUyie+hIPlrqthEoI4NgWHxX8CWnlPtoAx27WbPnaY5S4ltCbtCgJ X-Received: by 2002:a17:906:e4f:: with SMTP id q15mr4815040eji.216.1612423616999; Wed, 03 Feb 2021 23:26:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612423616; cv=none; d=google.com; s=arc-20160816; b=eDUjOMT3aGjTiEXbueIcfVdY/NZy/CnzkrPSbxTsJk9nDqMAXEJPqF/wdRW/mIq+gd eTG1N5DFw4Y/T2d8KRr2HViX4OdbgwtAE90vRX9Jul/rsuwUnEvdwyYk6jHJofrFf/ly AAqBxd5DZfNhyUuP0yfBN2J6rrVmbIkg4g4SR3gsw3+F0nQLfpp50YBEQ8SaAz2D5e9O 1r9gW/e5/r7373dWbWFeQD6S0Nabs51qHebWRfsb9PrrTezr2WBnO2Yv0wQ/7GM+AIQi VEfDxwjF0G64ujR/Iv5CuFIGVjtNZfy0MHRnso7FoZJHL6jPiyQKaa8K2va5PAm2fArz DhuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=8AP7TUeaFb4ODN9VxyksVCmE2i12UKK8ieJwEJu+Z10=; b=GA/aGEMTXQazN/HCdy5155TNkqkG6pF/hXBsw6ITwmz0+Nuvn+C1OP7XXoSXOXkO4/ L1Z6RcW95WYvlkE+BXkFWQt4zokxAip+gkwmk/X4yX5moTKmclWBMK38E6rHOzuuHpzB 6pMLl7sHxgrjvRQUuVf4JLfKyiqSK+S9W6AVBPLtVhoTM50k9vYJWM0MawWoMwqhbY5I cScEV4KBEOWfqA88mpTmnq7GKC9pB+olSJUu7fbW4dPiq7OwLwEg+XbCh+gbeZTZM4dB KsfV0ttZzDv60an5frdk6vTULHBvOdxdvzUY1kZZ8omDhCOE272vmjGMoHidW7nX7Zr+ gU9g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b18si2944717eju.554.2021.02.03.23.26.32; Wed, 03 Feb 2021 23:26:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232926AbhBDHZk (ORCPT + 99 others); Thu, 4 Feb 2021 02:25:40 -0500 Received: from out30-56.freemail.mail.aliyun.com ([115.124.30.56]:43437 "EHLO out30-56.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230146AbhBDHZi (ORCPT ); Thu, 4 Feb 2021 02:25:38 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R731e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04357;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0UNpwDV6_1612423454; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UNpwDV6_1612423454) by smtp.aliyun-inc.com(127.0.0.1); Thu, 04 Feb 2021 15:24:19 +0800 From: Jiapeng Chong To: jamie@jamieiles.com Cc: herbert@gondor.apana.org.au, davem@davemloft.net, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] crypto: picoxcell - convert sysfs sprintf/snprintf family to sysfs_emit Date: Thu, 4 Feb 2021 15:24:13 +0800 Message-Id: <1612423453-78809-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Fix the following coccicheck warning: ./drivers/crypto/picoxcell_crypto.c:1201:8-16: WARNING: use scnprintf or sprintf. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- 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