Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp274564ybj; Wed, 6 May 2020 17:21:58 -0700 (PDT) X-Google-Smtp-Source: APiQypK8BjA9pR6FgVttAtoh8qqslWb1ifRB12EgqoWhlvn+rUGGUf+tc4/pQf0ENQXGMoIny4iD X-Received: by 2002:a50:d7d3:: with SMTP id m19mr9720927edj.285.1588810917924; Wed, 06 May 2020 17:21:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588810917; cv=none; d=google.com; s=arc-20160816; b=U7fQlafMlJj6LiPPkIKsffyHXtwXEe+0iMkOArS+Xkj10wde/p3v2SmKSJ+eJpq0Do e2fnx9uRBM/nAmpeY53ZEE1nB2qKPvmBo8R/UA27i693motIa8ovHA5mFINM9ccuYQXw 6NHIkZKMI2cPfq7aHpknfl3c0CScA6kZ86pwuK91Rpq9200pikvM91jN+mnKCOSXsSA4 WPtibJo0lhAuCSBZUmdMvE5UiZLCWIUDQ+GxVWJc0spKWO2m2x2csjMcHe2CJhko2iSN BOld8DHiAkfgB9ffPtTw5PICpCNuXbxc3dbVvV+lwuGGhjuUn/XjqRDQnCCgKqZZrQd6 ihzg== 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=L3LzSM35p/tmBJhGg9Z5b/K9J3Bc/VfqLsgv4nc1ohU=; b=r2JdY4guHwgHeQIGK9kzLrtQP5taI8roBW38dogODAkWXJ4Fp1avENF9wPqysv/Bge xWGIKxaqKJJO5qI50shm/xAHKmMeDDIjkXobqJTD4yCVXfOEh5fWFn7NBBPBh1md2vRK 3dGRNCcLOYmtLt7kOz3PLASxHFl5xphHBHQDKlAjPygd+zEo42XgQZYpJflVx6XeNOfP Le5h+iZRNXd/kC70vQxaAJsecXrGPvi3EY/KljUZd+euntFbrPCtftyCxU+XgAB4H9/m 2CElio6/lgbpotpg2G+wMdDqzQQ8P4N4YOgUidR2pXMpRjSVC3x878XI8ST2JMdb69B4 Y+iA== 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 pj7si2219283ejb.221.2020.05.06.17.21.33; Wed, 06 May 2020 17:21:57 -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 S1728355AbgEFXzN (ORCPT + 99 others); Wed, 6 May 2020 19:55:13 -0400 Received: from mga12.intel.com ([192.55.52.136]:35789 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728180AbgEFXzM (ORCPT ); Wed, 6 May 2020 19:55:12 -0400 IronPort-SDR: KalZq54Oz8cpvJ54mgz0aB6PhEHsrWGqnyP86TSIWP55PU7Yc+lRWWEk8fAVh7IBB9jbp/Ls4U yZgQ2YgXEldA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2020 16:55:12 -0700 IronPort-SDR: 8uV+o9DMkbRCZJrfBMeresfQg4ugxP9wEo7+afyPb5zb+Mf7wiEi2GQu4UhXM1rCL/qfOU/rhM k2FNqT33HigA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,361,1583222400"; d="scan'208";a="260348959" Received: from jekeller-mobl1.amr.corp.intel.com (HELO [10.212.25.49]) ([10.212.25.49]) by orsmga003.jf.intel.com with ESMTP; 06 May 2020 16:55:11 -0700 Subject: Re: [PATCH v2] checkpatch: add GENL_SET_ERR_MSG et al. to 80 column exceptions To: linux-kernel@vger.kernel.org Cc: Jakub Kicinski , Andy Whitcroft , Joe Perches References: <20200506235327.3878021-1-jacob.e.keller@intel.com> From: Jacob Keller Organization: Intel Corporation Message-ID: <52137a35-1b41-866e-5ac4-22859f198d53@intel.com> Date: Wed, 6 May 2020 16:55:11 -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: <20200506235327.3878021-1-jacob.e.keller@intel.com> 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/6/2020 4:53 PM, Jacob Keller wrote: > The GENL_SET_ERR_MSG, NL_SET_ERR_MSG, and NL_SET_ERR_MSG_MOD macros are > used to report a string describing a specific error to userspace. > > Often, these strings can exceed the normal 80 column limit. However, > just like with strings printed to the kernel log, it is preferred to > keep these on a single line. > > Add these macros to the logFunctions exception list in checkpatch.pl > > Signed-off-by: Jacob Keller > Cc: Jakub Kicinski > Cc: Andy Whitcroft > Cc: Joe Perches Joe, Jakub, I will also be sending a patch to fix the newlines in uses of NL_SET_ERR_MSG_MOD, but since they all appear to be in net drivers, I think it should go through the netdev list. Thanks, Jake > --- > Changes since v1: > * add GENL_SET_ERR_MSG to the list > * Reword the commit message slightly > > scripts/checkpatch.pl | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > index eac40f0abd56..818a5b21587d 100755 > --- a/scripts/checkpatch.pl > +++ b/scripts/checkpatch.pl > @@ -471,6 +471,7 @@ our $logFunctions = qr{(?x: > WARN(?:_RATELIMIT|_ONCE|)| > panic| > MODULE_[A-Z_]+| > + GENL_SET_ERR_MSG|NL_SET_ERR_MSG|NL_SET_ERR_MSG_MOD| > seq_vprintf|seq_printf|seq_puts > )}; > >