From patchwork Thu Jul 13 09:50:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: hanyu001@208suo.com X-Patchwork-Id: 1808595 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=linux-fsi-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="unknown key version" header.d=208.org header.i=@208.org header.a=rsa-sha256 header.s=dkim header.b=n7J1t9A7; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4R4FKK0hdmz20FK for ; Mon, 17 Jul 2023 18:16:21 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="unknown key version" header.d=208.org header.i=@208.org header.a=rsa-sha256 header.s=dkim header.b=n7J1t9A7; dkim-atps=neutral Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4R4FKJ6lthz2yF8 for ; Mon, 17 Jul 2023 18:16:20 +1000 (AEST) X-Original-To: linux-fsi@lists.ozlabs.org Delivered-To: linux-fsi@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="unknown key version" header.d=208.org header.i=@208.org header.a=rsa-sha256 header.s=dkim header.b=n7J1t9A7; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=208suo.com (client-ip=183.242.55.162; helo=mail.208.org; envelope-from=hanyu001@208suo.com; receiver=lists.ozlabs.org) Received: from mail.208.org (unknown [183.242.55.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4R1qc15qMsz2xqw for ; Thu, 13 Jul 2023 19:50:40 +1000 (AEST) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4R1qbv0p0XzBRSVR for ; Thu, 13 Jul 2023 17:50:35 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1689241835; x=1691833836; bh=6WnmXWGeuIprBtGV4+/Kt79fxFd 2Fye2zKda3lFwPA0=; b=n7J1t9A7pIno3IJaEq5wQLqqndVR2Qv9RADwNbWd38E iTTSITUButtJWQT4Wn6qMKpKQJO7vD81o/3WyoXjgFPvSmrwJTZUrTTqy6zIlsPW mmv9xMosM3nTxcQ5ejMjndmlk01i2RcbXiKYfDzE/EkY28K8qh0XMqGEEBHaBXQU 32O4imTGRkw9/WUkIGj7rupIYPUb48fVE/drRIXEE/QiEPNxnk9YKVukJhIpdKkQ n+/f4OFxyDvKfKnVY8Xlk+y7Mv6o+MymFYL+IKChpKN9i3xtnYjhaesAicXOeNtU GagHNP7Q5o/9/322q5a5jkWJCABHDXJf7MQ3Qjiv1+w== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id V0ZvLd6tFEbZ for ; Thu, 13 Jul 2023 17:50:35 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4R1qbt5VRWzBHXgh; Thu, 13 Jul 2023 17:50:34 +0800 (CST) MIME-Version: 1.0 Date: Thu, 13 Jul 2023 17:50:34 +0800 From: hanyu001@208suo.com To: jk@ozlabs.org, joel@jms.id.au, alistair@popple.id.au, eajames@linux.ibm.com Subject: Fwd: [PATCH] fsi: replace snprintf with sysfs_emit In-Reply-To: References: User-Agent: Roundcube Webmail Message-ID: <465bfbd0726d1f24d1684fa5dc97cc9c@208suo.com> X-Sender: hanyu001@208suo.com X-Mailman-Approved-At: Mon, 17 Jul 2023 18:11:50 +1000 X-BeenThere: linux-fsi@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, linux-fsi@lists.ozlabs.org Errors-To: linux-fsi-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "linux-fsi" coccinelle report: ./drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c: 479:9-17: WARNING: use scnprintf or sprintf ./drivers/fsi/fsi-master-ast-cf.c:1086:8-16: WARNING: use scnprintf or sprintf Signed-off-by: ztt <1549089851@qq.com> --- drivers/fsi/fsi-master-ast-cf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/fsi/fsi-master-ast-cf.c b/drivers/fsi/fsi-master-ast-cf.c index 5f608ef8b53c..294ca962f569 100644 --- a/drivers/fsi/fsi-master-ast-cf.c +++ b/drivers/fsi/fsi-master-ast-cf.c @@ -1083,7 +1083,7 @@ static ssize_t external_mode_show(struct device *dev, { struct fsi_master_acf *master = dev_get_drvdata(dev); - return snprintf(buf, PAGE_SIZE - 1, "%u\n", + return scnprintf(buf, PAGE_SIZE - 1, "%u\n", master->external_mode ? 1 : 0); }