Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp75004rdh; Wed, 25 Oct 2023 16:53:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEFXC+vOKXutmjv17mwiv2Bq7aBFukNYQg3/OLmOYqQbl0zgxtWo939ez7pWL7xSWhML4mJ X-Received: by 2002:a25:8209:0:b0:da0:46e5:a7e3 with SMTP id q9-20020a258209000000b00da046e5a7e3mr6061438ybk.20.1698278005724; Wed, 25 Oct 2023 16:53:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698278005; cv=none; d=google.com; s=arc-20160816; b=y8bqlhU3DyZmP60gpUvhKLrE1r/KxSXQRO5pgv0ei1TFmCSmO9AQzCbXKm7JQscj60 VeUauhBqyQmPNfTAElweQgiIhM/tp7YxHvXOuv5sCP4SXCzkDaFluCTFaUi6OrbYUEBI uAa5flsVIRq+h0eAoU6VvY0D7QUuVUVnPjvn6hfKRFORCx+FlRUqsNxGMFDUtFaNrqh9 mWUUTBjHIfyjYEDaalBRVRZvdYuuV0N5qn00xVKx6iP4vX9jeoXzy3YqmZgNiFbbYWgk Y5HoAECcCs1LD1AxQ6/ecnslrTAMwKBUEt5h3J4G66OUioLM431/nvXGTtmyen4lBdAT ufjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=fR8QNbm1j95oxYYxPed0efWF1n4Wxy4Iop/A3xIPAmg=; fh=71ZSNSv6MnGzrD+UFPBJVVxtw6/pRiQ7vBn3thd6/ks=; b=gV9jGrgdyhC3bqzOs0WGRFzncGdP7lHAavBftRlbr8ukhjaQMH4LFjD4IQIogxo34Z g7ZCNcrgDtWfvfP2r9FKGfeF/eCV+lQmQUR+UlQH0JIzOZBW2EMC88lg7yngNYA926um mxHE7khJzfKYzhDHG+7Ns1U3S3TFFHB+6eNZ4ZVB1uidFsmMaNC6mMUz1dztZUgbpglK dqHlBo6MOydwzpWKQ+wx8+hNpU0lgs0SvSh0LEHVs2iIUHYj5BcOu5i+3IV/sDtcMu2V wfrPfXpO+sgtkXRihNXDEVLRxzMThhvasvlGuUUL59+8CjzR+T9kAvjPrtJbMuExvWL7 3QXA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id v83-20020a252f56000000b00d86e61aaf3bsi10792005ybv.435.2023.10.25.16.53.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 16:53:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 3923E820968A; Wed, 25 Oct 2023 16:53:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229877AbjJYXxR convert rfc822-to-8bit (ORCPT + 99 others); Wed, 25 Oct 2023 19:53:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229583AbjJYXxQ (ORCPT ); Wed, 25 Oct 2023 19:53:16 -0400 X-Greylist: delayed 82 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 25 Oct 2023 16:53:14 PDT Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D497693; Wed, 25 Oct 2023 16:53:14 -0700 (PDT) Received: from omf06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 73084140753; Wed, 25 Oct 2023 23:53:10 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf06.hostedemail.com (Postfix) with ESMTPA id EB8562000F; Wed, 25 Oct 2023 23:52:58 +0000 (UTC) Message-ID: Subject: Re: [PATCH 3/3] checkpatch: add ethtool_sprintf rules From: Joe Perches To: Justin Stitt , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shay Agroskin , Arthur Kiyanovski , David Arinzon , Noam Dagan , Saeed Bishara , Rasesh Mody , Sudarsana Kalluru , GR-Linux-NIC-Dev@marvell.com, Dimitris Michailidis , Yisen Zhuang , Salil Mehta , Jesse Brandeburg , Tony Nguyen , Louis Peens , Shannon Nelson , Brett Creeley , drivers@pensando.io, "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Ronak Doshi , VMware PV-Drivers Reviewers , Andy Whitcroft , Dwaipayan Ray , Lukas Bulwahn Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Nick Desaulniers , Nathan Chancellor , Kees Cook , intel-wired-lan@lists.osuosl.org, oss-drivers@corigine.com, linux-hyperv@vger.kernel.org Date: Wed, 25 Oct 2023 16:52:58 -0700 In-Reply-To: <20231025-ethtool_puts_impl-v1-3-6a53a93d3b72@google.com> References: <20231025-ethtool_puts_impl-v1-0-6a53a93d3b72@google.com> <20231025-ethtool_puts_impl-v1-3-6a53a93d3b72@google.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-Stat-Signature: ewynon9iqkxk4ba7ojpnwtcnyur8eded X-Rspamd-Server: rspamout07 X-Spam-Status: No, score=-0.7 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Rspamd-Queue-Id: EB8562000F X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX19HM4U+AZp5TxLK9aKEhza6ficBJMSjAYo= X-HE-Tag: 1698277978-811897 X-HE-Meta: U2FsdGVkX1+p9+z8yCq32YY8S2DSMu0GtmU5Y2BLTOHLbVa47GMVGnlUfueykHLbFBJzUqiIuNUoLTjPNpuPmPmdObkyQyyYuvVzxDUXUYBXVjgtSZL2VLZt0M+ihq91yI+KJMnhw13lDleMsbRbUz2084V9BtLz3jRVgcLorLaY772BDVcKhBSdvFtDf2GPoSWp62x76n++3gowAjGE0QzGeGP1a3j/o4yx5i3/j7G9kDn6arjCylGwRoNsTERruOxHd2GpijuQvv1XVYKqXSIlXskZ2U42iC6tNJZVsKH071QZzpcUdpEeBh6ZYV0q X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 25 Oct 2023 16:53:23 -0700 (PDT) On Wed, 2023-10-25 at 23:40 +0000, Justin Stitt wrote: > Add some warnings for using ethtool_sprintf() where a simple > ethtool_puts() would suffice. > > The two cases are: > > 1) Use ethtool_sprintf() with just two arguments: > > ethtool_sprintf(&data, driver[i].name); OK. > or > 2) Use ethtool_sprintf() with a standalone "%s" fmt string: > > ethtool_sprintf(&data, "%s", driver[i].name); I'm rather doubt this is really desired or appropriate.