Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp964567pxb; Wed, 6 Apr 2022 05:29:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0fsSuy50xhnhDokUqGQ42vC0cmBdbtFx7n8aSPDoIU0Bx2aMxemXuiPx5vxd6PB8E2L8O X-Received: by 2002:a63:3e4c:0:b0:398:3448:e0d1 with SMTP id l73-20020a633e4c000000b003983448e0d1mr7034961pga.336.1649248163538; Wed, 06 Apr 2022 05:29:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649248163; cv=none; d=google.com; s=arc-20160816; b=kcZGmo4Pxjv567QxcRePxgrVRbO3sa/qn/Gpe9hlrw82LZ0mU85zo1dP28JapzeUzQ FfyZLm8goNSMG2lcreA1vUdtgTMyAdcKIWM2uiNyUiTaDK5LFAeDO9eYv0sX3JJ1JKNr hmP70AATQnn4YSyPGyuwM6BNr4lv8Do42xqiPAYjquiNDif95+2TktwMCnF0/6dPOW9u Px+X77BpImbIQ+gzvFjYpgcEL1XTFhbPVdAV+M1+jSwQfjzY5h2XZaUYuo6GX17L2ZCe TOyNaO21kEcIoZ2h9MbRUa/ZAkbUZKC/kT/Kq4XEmUHiaC8zqPQ7d+piVw/VR/t81b0f IzoQ== 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=HsIT4RlnwommmxyYgukux8/8ZENkP5nNU80xl1mclVw=; b=npJfaeNaMBBPufSYG627E9RFAwejIP4FbjpI4fselHDyzvSzhmNMB7quk+ahojI7HS CxLIEcYcrR4yqmgEDT7XaSkc8fzJcWT9dhEPjGbmlfJ+Lat7G9OFipCT1Lcp4YA1NhUk TC6u15YPYLyva2CjTq2JXjgJteGX7Eugm8rl2jmZzY3q2dnvTXBZbrZpnzDB0+KSNzSu BwJGq2oi5Fg9+htuv1vwJcknSHH8tPG1Wgp0KE62JkwW6C5f413nGGpyKv3V7XqITWPL 75LEKTfv3tiGn5rh7A5VAFxZENCFzDLhlesZLg8UJPjkQNk0tWlki2LcD2WdEK3bwhvj Y3pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UFivdnOr; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id m2-20020a170902bb8200b00153b2d16463si10715218pls.107.2022.04.06.05.29.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 05:29:23 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UFivdnOr; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 88DF734798F; Wed, 6 Apr 2022 04:40:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1574141AbiDEWyi (ORCPT + 99 others); Tue, 5 Apr 2022 18:54:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353253AbiDEKFy (ORCPT ); Tue, 5 Apr 2022 06:05:54 -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 BBF74BF01D; Tue, 5 Apr 2022 02:54:36 -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 A8D50B818F6; Tue, 5 Apr 2022 09:54:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06568C385A1; Tue, 5 Apr 2022 09:54:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649152473; bh=TfW7T4LLiZbMAJKWnDbyoXtY7mFp1MuFCsVtbGpkdmo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UFivdnOrmeGdO1UyI4MDjnRd50/w6sdpiGEV3RZfE6u06ChV0FiFK4c/CmufkR0Zs Yw0GVd4t05j01ELirxq/0RUs+l8WpXzYvp+jiDQyFw7esXHsHcpIOI4MXzd1d680gF 1RoMhNpsJqKCy37m7Lwed+QluPTrzA0wnd4YPjsQ= 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 5.15 740/913] video: fbdev: omapfb: acx565akm: replace snprintf with sysfs_emit Date: Tue, 5 Apr 2022 09:30:02 +0200 Message-Id: <20220405070402.016247008@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@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=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 8d8b5ff7d43c..3696eb09b69b 100644 --- a/drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c +++ b/drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c @@ -476,7 +476,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