From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0CAA1C47256 for ; Fri, 1 May 2020 23:11:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DBB13208DB for ; Fri, 1 May 2020 23:11:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726677AbgEAXLu (ORCPT ); Fri, 1 May 2020 19:11:50 -0400 Received: from mga09.intel.com ([134.134.136.24]:40199 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726045AbgEAXLt (ORCPT ); Fri, 1 May 2020 19:11:49 -0400 IronPort-SDR: ke7o5OIusED3wg0/5PGE9hsagAcH34owg02GgdHqckjCwTUYVmZyE6CKmQU0OC4QNgP+zlfLVh AtIRGBkWsb0Q== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 May 2020 16:11:49 -0700 IronPort-SDR: k6mJuyJYC1mjBGkqooJ39DygftAnuIU4uOZqpE3rTX+DunwHnyA0W1+uYnBZlvfoouBsJYdtIi eYYH9aDeNG/A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,341,1583222400"; d="scan'208";a="303660658" Received: from jekeller-desk.amr.corp.intel.com ([10.166.241.33]) by FMSMGA003.fm.intel.com with ESMTP; 01 May 2020 16:11:48 -0700 From: Jacob Keller To: linux-kernel@vger.kernel.org Cc: Jacob Keller , Jakub Kicinski , Andy Whitcroft , Joe Perches Subject: [PATCH] checkpatch: add NL_SET_ERR_MSG to 80 column exceptions Date: Fri, 1 May 2020 16:11:31 -0700 Message-Id: <20200501231131.2389319-1-jacob.e.keller@intel.com> X-Mailer: git-send-email 2.25.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: -- 2.25.2