Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp621749rdh; Thu, 26 Oct 2023 10:58:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFHidHeU2pxFq8WG0nUxXgSe8/sdJmDzRLsba1NAbjpf8WdgCgAI26he4XvK3Btb6xEa6C8 X-Received: by 2002:a05:6358:8825:b0:168:eadb:aec6 with SMTP id hv37-20020a056358882500b00168eadbaec6mr346624rwb.19.1698343091920; Thu, 26 Oct 2023 10:58:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698343091; cv=none; d=google.com; s=arc-20160816; b=X/jQ7B1Ibg/CIeEysWmhOMfnD1gF+a4VTtYdVerTdYJXAwFdNAh1oeJpkvsmOu6ibz BM78dhHVu9WkJHdR4AMJkZlF83ihcGW1Kn513TOnOg38pH3sF/Jz4C50kvbqoFcipg0F VX+Jy8SLeHezXf4KZa+2BmPhVpD8EMczmQzhi8i24sQT5O0l+RRQCOzeb0RMjuy8G/v4 ebhAIEASPjRV/1sRMRMuEsEerjgx4BPeukCVAAUNtFGWSRU9WSyjXqaIb5/44NlJqsd5 Lr5UDTvjtoErWuvE2Gbu1gTpStSjCgWNZhSfRwytdwvoPQMhufPUyGXX7qhXT+JSIkWX G68A== 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=SEtm5XZDN7zZEoakPIyyV6sAyWvXRWwS+yMlhrTh9Is=; fh=0GmG2JVa25T3c3tDuQ7fr//yTAcqf3oM9r+Rb20PwWs=; b=l9Rd0D6B1dWPE7xCPstyyIEoZzOAsAW2tmwY7yDNcFSj5GcTu3HrTL7fgVypcpyq5/ pFHNKgkD3Ltf+70g880bEWOtNFJkmyDtaoo+1P6pgyYwYM1Ewg3VajAlxIia59cwoIjS MKGGhz1YoRjXoNKK3qFAyPWiGFPt0+Tay/kntdecKAausMTX1ciQbz260oVx619psxBS MrKzKGVox4KhGPbpwkLwNSmCv7zOcjhqNyklB9Y8ehAQvTjdtBivK03VXWEuKkG+H8FM whJyugEAfcz4fpPwkjEapwA145RruYRV+xBG9N/TvQiRG8HtWF25t0tsSGnw4AcWLK3g BRtw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id b68-20020a0dc047000000b0059f4f2da0efsi15264671ywd.220.2023.10.26.10.58.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 10:58:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 46781808727D; Thu, 26 Oct 2023 10:58:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230479AbjJZR56 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 26 Oct 2023 13:57:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229649AbjJZR55 (ORCPT ); Thu, 26 Oct 2023 13:57:57 -0400 Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68C2DAC; Thu, 26 Oct 2023 10:57:55 -0700 (PDT) Received: from omf03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 79A04160B8F; Thu, 26 Oct 2023 17:57:50 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf03.hostedemail.com (Postfix) with ESMTPA id 6BAAF6000B; Thu, 26 Oct 2023 17:57:39 +0000 (UTC) Message-ID: Subject: Re: [PATCH 0/3] ethtool: Add ethtool_puts() From: Joe Perches To: Kees Cook Cc: 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 , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Nick Desaulniers , Nathan Chancellor , intel-wired-lan@lists.osuosl.org, oss-drivers@corigine.com, linux-hyperv@vger.kernel.org Date: Thu, 26 Oct 2023 10:57:38 -0700 In-Reply-To: <202310261049.92A3FB31@keescook> References: <20231025-ethtool_puts_impl-v1-0-6a53a93d3b72@google.com> <202310260845.B2AEF3166@keescook> <39ca00132597c0cc4aac4ea11ab4b571f3981bcb.camel@perches.com> <202310261049.92A3FB31@keescook> 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: hudth4n5i9tsh6noik99p4dqoecq4yae 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: 6BAAF6000B X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1/FhF5iyLmTVijiQINcZ0DKfw8kt4QZXAA= X-HE-Tag: 1698343059-8063 X-HE-Meta: U2FsdGVkX18EvEmoxNdb8hk6+O6ituHbXxaJFt94yuI4o75cydbMBKO9R15wtEF6VkcdjuFdT9yaMhXRm3vYaUDQE0fY4PwycxT9WeFqvMNRLqEIHiYE+D7Xg4oAc80cClcOXyOn1zfquNjuxwquDIEP8tJmMNk6z3BfC3ZuK2ggJziXypVPsEUK9Keu4FQ3ncfCo+W3BOl6Fmr3KUjH1uOPVXyJ4NSisvMVQpPwtWe6RV1E6cbgFDGHwkHsXtaww+tTwpwABR38XLVHFAAk31CQ+RyAx3SylbbeObJ26LbpA+oEHLjf/YBdaYbPa+iv X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Thu, 26 Oct 2023 10:58:09 -0700 (PDT) On Thu, 2023-10-26 at 10:49 -0700, Kees Cook wrote: > On Thu, Oct 26, 2023 at 09:33:17AM -0700, Joe Perches wrote: > > On Thu, 2023-10-26 at 08:47 -0700, Kees Cook wrote: > > > On Wed, Oct 25, 2023 at 11:40:31PM +0000, Justin Stitt wrote: > > > > @replace_2_args@ > > > > identifier BUF; > > > > expression VAR; > > > > @@ > > > > > > > > - ethtool_sprintf > > > > + ethtool_puts > > > > (&BUF, VAR) > > > > > > I think cocci will do a better job at line folding if we adjust this > > > rule like I had to adjust the next rule: completely remove and re-add > > > the arguments: > > > > > > - ethtool_sprintf(&BUF, VAR) > > > + ethtool_puts(&BUF, VAR) > > > > > > Then I think the handful of weird line wraps in the treewide patch will > > > go away. > > > > > > > Perhaps this, but i believe spatch needs > > --max-width=80 > > to fill all 80 columns > > Ah, yeah. Default is 78. Current coding style max is 100... I'll adjust > my local wrappers. Coding style max is still 80 with exceptions allowed to 100 not a generic use of 100.