Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3645683pxb; Tue, 19 Apr 2022 07:11:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxemGQU/CFbOQBPT4eftLpRWyQ9I+vqkGWmPJjl+7DRvruyPXQbXUa/U7vGT7hyYK4HoDd2 X-Received: by 2002:a17:907:7d91:b0:6d7:a1e:a47a with SMTP id oz17-20020a1709077d9100b006d70a1ea47amr14048833ejc.116.1650377512203; Tue, 19 Apr 2022 07:11:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650377512; cv=none; d=google.com; s=arc-20160816; b=OazxSHmDp67jbBX6QHvTqO2wnakzGqthqqgvRExzjyHrrwAlyCsqGiVDmwgjI9faTe MTV+uXfDX8SKWCuhamWCQ+lSld5JIJ2OirjxrgyKNSeZyU1LK+fo6CZ38qi1fb1v3NtE +COHxY1zuWeoMFsr1HvXuLjkKUmfpk0GMWdsSh8fXgov9CmcizbaE8n6Wkozz0gZcuRc Mqj8l4cijkjSoVBojh/BQQPIBezBz2e1ga7MwDaSIECQMJFg0p+Y2q9bYmq8p/euwY7z OPhYbbWv/fSp34Tj790dScj/rH9zlvZiKGy7m/A4zkXipmGOHraxgi1BtvRdglKZQPs/ rFWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=vRicHywO43keRm1PrJOkMz34JEFkYnmB1wup+26TGKU=; b=mfUMfzGfOoUZL+jOFJidsmNXva4hK3xUST609oH6c4vtQrRFXZTA9xgeRKYpWD4L9w cO21/ExMCEp8UzCQ+T8toLQ62EETTPIvTO0eStvaBqIcowNg8fGC+vPgNclSbP5C6MQp gcOStJRlmf19QoQULs+LzijeEMGCDW0NIhCO+PLXbzTbnorh62ETi3RSJiRLKG0iXK1e 1E9fN4oITYoVgHTocnsVhMiny1nVQ6iS7bt8G7lt/M1H920dGVIUn9jbgttBmw1CggrA SOHJ2Z5B0urFZPCCLwToFlSywf0XLimYLKYd+i/mc21wrwbrZQ5YbGv492JtisKQF6Lb 8FDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=E6gmYNzt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rp20-20020a170906d97400b006e7f5b1fb91si8192461ejb.370.2022.04.19.07.11.25; Tue, 19 Apr 2022 07:11:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=E6gmYNzt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244111AbiDROAi (ORCPT + 99 others); Mon, 18 Apr 2022 10:00:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243567AbiDRNiH (ORCPT ); Mon, 18 Apr 2022 09:38:07 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAB9327FC2; Mon, 18 Apr 2022 05:58:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 05900B80EC3; Mon, 18 Apr 2022 12:58:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3EF15C385A1; Mon, 18 Apr 2022 12:58:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650286702; bh=Owx5cXHHiohKZCzYmdkV7BuW9d3Ur7SqGy69wNLF/4g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E6gmYNztcVDWLyk5BUauNWjbZpqPhvb2lpUw47QPOThbplCsHUjKi46Y7z/1XBOcT ufvrJQ5LxObC1Yk3Xac9F5J4wtc41t5CyVSU64VnhUPbjmAxlqxBEZzUIeV44mLGk+ q4y6etqzsFg/xqy1OfCcCuB7nFo4k4XvUliMjbyA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Zeal Robot , Yang Guang , Helge Deller , Sasha Levin Subject: [PATCH 4.14 168/284] video: fbdev: omapfb: acx565akm: replace snprintf with sysfs_emit Date: Mon, 18 Apr 2022 14:12:29 +0200 Message-Id: <20220418121216.520780553@linuxfoundation.org> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220418121210.689577360@linuxfoundation.org> References: <20220418121210.689577360@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yang Guang [ Upstream commit 24565bc4115961db7ee64fcc7ad2a7437c0d0a49 ] coccinelle report: ./drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c: 479:9-17: WARNING: use scnprintf or sprintf Use sysfs_emit instead of scnprintf or sprintf makes more sense. Reported-by: Zeal Robot Signed-off-by: Yang Guang Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- .../video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c b/drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c index f2c2fef3db74..87c4f420a9d9 100644 --- a/drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c +++ b/drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c @@ -487,7 +487,7 @@ static ssize_t show_cabc_available_modes(struct device *dev, int i; if (!ddata->has_cabc) - return snprintf(buf, PAGE_SIZE, "%s\n", cabc_modes[0]); + return sysfs_emit(buf, "%s\n", cabc_modes[0]); for (i = 0, len = 0; len < PAGE_SIZE && i < ARRAY_SIZE(cabc_modes); i++) -- 2.34.1