Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5540633rwb; Mon, 5 Dec 2022 00:02:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf4weOqABVoDv14jUQ2uqyq3UaMUd0CmiKZxbGU1Y/WFPtfbzoHirR76BOG9KgrPbloYDr03 X-Received: by 2002:a17:906:2311:b0:7c0:e4b4:8cf7 with SMTP id l17-20020a170906231100b007c0e4b48cf7mr5329907eja.116.1670227347306; Mon, 05 Dec 2022 00:02:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670227347; cv=none; d=google.com; s=arc-20160816; b=JjMwDJUP4kQ11oozx4XH92hjf72eOKXsdkj3CQfTpvlj07gBASypHXfxLaP7LhcRPw BYLPN7VvyvneaKeZXZ++dWwHLGkPViOeIFChPQ2J1ZUHMfhm75pHXoUVrSwDogoJXKIy 3ShWD7fjDiw6LUbty+0G/7e/HBOuI4BE35vG57aj4vHVaeWS8LgPJrootkAOFLsbZL7g a1mP4ADSVu+Jky9+gjJqr+AqCQntOAfKCsafbWPm97w+Qe3ZSoq0LCGZq+BqpQZUFxPX /QWqOobJ4+iaJ9hoXNx1JoyrRLo/CgGzOsTiEWZeoYldrvcVNckHT3tecgHFm0RDZ4KV xvWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=KYfkkrfzzZZMm4KuVbLAUh4hnXmxFM+JvxaAOavDi9k=; b=VT5xanOqKFJyCEdmGfl3vbxHRbNA8hv5GF7LJCERqJUroN6s5ZmQz63dTEvfuAntxM rMDFvfV1Gpg2f/GY5dCBQR6ccwXpyy0Dnzbs49SqFTuojksjkqSN0uDISlj46xBzc+B2 IxoTk4kdDeiWM21dylD3vM6u57z/oxz/EMK/I2Y9zu7zf0Ttjf/VSXCmF93044ya9In+ l621H01DhjErZmODD68NzqLSCwxMkr1W4tI8/zE8LEO49aX2fjJKbiXPbGqa7sFKLq3M k+bIEbroi3Ryzt3YCwSUPpHuMDsFEbQ7xa0AD120fs0m3UN45kssjBsHVCFaYyn67m/1 0b0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fxdED2gE; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id be8-20020a1709070a4800b007ae9f42f878si11115108ejc.354.2022.12.05.00.02.06; Mon, 05 Dec 2022 00:02:27 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=fxdED2gE; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231736AbiLEHrX (ORCPT + 82 others); Mon, 5 Dec 2022 02:47:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231528AbiLEHrV (ORCPT ); Mon, 5 Dec 2022 02:47:21 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45C8212761; Sun, 4 Dec 2022 23:47:19 -0800 (PST) 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 72190B80D5F; Mon, 5 Dec 2022 07:47:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D5CBC433C1; Mon, 5 Dec 2022 07:47:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670226437; bh=XJcX69GGs4sfa8CI4cIXi9zjr1DKHpxfdL4uRgkTwQI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fxdED2gEdRRIhsQUuvTDRrNJj9VpHDVbA3lh0eDGhKf3B1Eo4x+EGpUbHt5f47NRC xYVVLaQ/tqC355xve9eeI8sdiWUPVe7DJAavYhZRW0JLlwAyVhS3oSflPmKgDHpUWR y99tZ9eMXzCtL7xQS28BH34l/n3OHsfFUl9ahzx7WNYKLlme6i0k1qZQZW8DIe9wr0 j6qVvg9iJHrRXOAG3i9s2+n41Q6JXO0SmLCEuPvoBVqxIGSpo+mECMZ5TnKaG1CS1M rI8y8GQAKwVBFtzycIu4z1JafMqVwQ1x0I7qmMPvf35wGQjK/f03STShkceI3vj5sz dOyVo1WbSmqZA== Date: Mon, 5 Dec 2022 09:47:12 +0200 From: Leon Romanovsky To: ye.xingchen@zte.com.cn Cc: davem@davemloft.net, ecree.xilinx@gmail.com, habetsm.xilinx@gmail.com, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, petrm@nvidia.com, khalasa@piap.pl, shayagr@amazon.com, wsa+renesas@sang-engineering.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v2] sfc: use sysfs_emit() to instead of scnprintf() Message-ID: References: <202212051021451139126@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202212051021451139126@zte.com.cn> X-Spam-Status: No, score=-7.1 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 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 On Mon, Dec 05, 2022 at 10:21:45AM +0800, ye.xingchen@zte.com.cn wrote: > From: ye xingchen > > Follow the advice of the Documentation/filesystems/sysfs.rst and show() > should only use sysfs_emit() or sysfs_emit_at() when formatting the > value to be returned to user space. > > Signed-off-by: ye xingchen > --- > v1 -> v2 > Fix the Subject. > drivers/net/ethernet/sfc/efx_common.c | 2 +- > drivers/net/ethernet/sfc/siena/efx_common.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky