Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1218312ybz; Fri, 1 May 2020 17:21:51 -0700 (PDT) X-Google-Smtp-Source: APiQypIwVuIc92IJtJtMycHT/Wt9hWr0j5rhx8uaeJijRiLzID5b+gXzk+MWqyL1T9CmIeqOhX6E X-Received: by 2002:a17:906:5e45:: with SMTP id b5mr5585808eju.0.1588378911628; Fri, 01 May 2020 17:21:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588378911; cv=none; d=google.com; s=arc-20160816; b=i2cAJE2S4f9Uc7avk5qmBgo3n75O7dsohld1EMasCepixICA47GYxSTGXYDAdbAXj2 b67SMWMo/7M3eJhtiCc7PFu/FX4EQbK1Axic7x6zhfD6+aMC4Pl2UxAMw7wlWuHpO1TO EBtvRtfsxFD1L2PoQAMqFmLORMTESNErLiUD8Cv+O6Bxv6Mpccw4EfFmxo0gLWTSYzQm NxZVEjtWANBLjV20c+zBJC8UKCAxDnjmMfEmiw0lIaDc9P++o5tqse/7h9XfBK5WgYTB o8R//v1pEbKxLF5hHjPPMS1MQAz1OwWpTsIZp5Pp0JT7rOQassDnXfNXs7u/Ig3nHvcM Q81w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject:ironport-sdr :ironport-sdr; bh=/7nKVEIR5sQIifYOp5Op+SuetoFp5KZOjma1XdH3CvY=; b=PgfVcc1oxROEnZVR8rVNgnBIV13comJaThZz9PoLQ+d8J03LDviQDH2kBitFqW0oES 5l68zmmFbID3RJ+vBa7qF5HpK1nIoeyTgIYNusTanxWvPkHaVaEkpP1mqqAcVoq5SDbX QfQWV4w/678BWLugb2BzyWmRxu/SsGAoGegWB47orSL/aXrYHYkVLcSGIW6xzTW88Dn8 e4VhEzYeklttS/WJSUZl/pVdko1UYy++27U0Mt+k+GmKPR6XwIeBT6dOYDJax/EMIZ5K HGdWLWz8vSt0xRU4nlfv82HyRfqRh/2oxpH93XNbfRL0vccE6h7VrX13kQZ1l508eFiF Pf4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u16si2666492edd.86.2020.05.01.17.21.25; Fri, 01 May 2020 17:21:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726468AbgEBAT2 (ORCPT + 99 others); Fri, 1 May 2020 20:19:28 -0400 Received: from mga07.intel.com ([134.134.136.100]:54848 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726352AbgEBAT1 (ORCPT ); Fri, 1 May 2020 20:19:27 -0400 IronPort-SDR: dKKBNFiCDm6s8Lhdn1ds9RotSYV8k0lnzvuiopihXgEkCPshlV8SCHmkLt+LSI657MwsSsam/l vT5ymYNRvjEw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 May 2020 17:19:27 -0700 IronPort-SDR: IWRKiypnfiZ1brXr2iWiV/cItxdv6XAeADrZvcSACy32EvtDaslUBzBOeGc4BJNRKzzI+IkBM8 cS8IGbnZ5S7g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,342,1583222400"; d="scan'208";a="258759279" Received: from jekeller-mobl1.amr.corp.intel.com (HELO [10.209.101.237]) ([10.209.101.237]) by orsmga003.jf.intel.com with ESMTP; 01 May 2020 17:19:27 -0700 Subject: Re: [PATCH] checkpatch: add NL_SET_ERR_MSG to 80 column exceptions To: Joe Perches , linux-kernel@vger.kernel.org Cc: Jakub Kicinski , Andy Whitcroft References: <20200501231131.2389319-1-jacob.e.keller@intel.com> From: Jacob Keller Organization: Intel Corporation Message-ID: <5a1da586-0cc0-1900-477f-6fef61af7f95@intel.com> Date: Fri, 1 May 2020 17:19:27 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/1/2020 4:42 PM, Joe Perches wrote: > On Fri, 2020-05-01 at 16:11 -0700, Jacob Keller wrote: >> NL_SET_ERR_MSG and NL_SET_ERR_MSG_MOD are used to report extended error >> responses about failure of a netlink command. These strings often end up >> going over the 80-column limit. Just like logging messages, it is >> preferred to leave the message all on a single line. >> >> Add these to the exception list so that checkpatch.pl will no longer >> complain about the long lines due to use of these macros. >> >> Signed-off-by: Jacob Keller >> Cc: Jakub Kicinski >> Cc: Andy Whitcroft >> Cc: Joe Perches >> --- >> scripts/checkpatch.pl | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) >> >> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl >> index eac40f0abd56..5da3b06fbeaa 100755 >> --- a/scripts/checkpatch.pl >> +++ b/scripts/checkpatch.pl >> @@ -471,7 +471,8 @@ our $logFunctions = qr{(?x: >> WARN(?:_RATELIMIT|_ONCE|)| >> panic| >> MODULE_[A-Z_]+| >> - seq_vprintf|seq_printf|seq_puts >> + seq_vprintf|seq_printf|seq_puts| >> + NL_SET_ERR_MSG(?:_MOD)? >> )}; >> >> our $allocFunctions = qr{(?x: > > OK I guess. > > What about GENL_SET_ERR_MSG ? > This appears in far fewer locations, but it does seem reasonable to add it to this list as well. > btw: > > There are some uses with what appear to be unnecessary newlines. > Maybe these newlines should be removed. Yea, there's a number of places which seem to have put a newline break after the extack pointer. A quick search shows that there are about 970 or so uses where we don't put a newline, and around 220 where we do. I suppose I can make a series that cleans all of those up along with this patch. Thanks, Jake