Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp273114ybj; Wed, 6 May 2020 17:19:08 -0700 (PDT) X-Google-Smtp-Source: APiQypIM4Pgdjh6HAB/z+lhS6siT/rN7Q/Cy9duM07OWp9JZGnii+ZfFnGm70tMZJUKOva6ar4im X-Received: by 2002:a50:9f23:: with SMTP id b32mr8810562edf.183.1588810748187; Wed, 06 May 2020 17:19:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588810748; cv=none; d=google.com; s=arc-20160816; b=xQAm7bz7o5iA1IcApmFVK6I3jWi8dy/xpJ2OYPy0l/dKoFRFLRHh8iAmOrZnkfaQmR 3feSARq3Mn9jpdVt2WP1JK9P5dNDmbc6Wi68DcIwOU/ZxRRa07rZSQ7xtvWS6BEgCagx 1Dupz7xdBC+XETDduoGowEP81adVEI1GyH1oeohRmZ9Vha6DDJCrfpsovwqDMrYFZ+6w L8uk6gLW7CepN0pCh39yn6j8PYBzFqOuohxhmg3xZ1p5pBQTo9FsigRGKN/w6xFJlw1y jHPBSW/1CFDVcHcQU8cYXWkvogNwOtIwIBxXub6GflQQvFzqnRPaODyMK/wiLxkdWoQt 4twA== 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:mime-version :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=KEoKww6d+NR8crSFGLNPbAOm92m0jwYNCrX7opcyEo8=; b=lCsrgtMLNAUgyZdDyOyPTGwESYkSMA751U/fGJdt1sU1QV0HawSV+EVHbnKMdFmIfL HFJ+a1xDPZhPBRVdbT+5odQkzzu8e71Ti0b+jVbh51kMN/E6c2K74NNiTWDQm2RGeYil uUyUywZcAU9Vo2cp+irIC1kVkl86hlykefFa2HcmeS4B7fxLqGrS8MAgB2xcvnZQIlWX nJAlrZvZd0eixUQamuqUtGA1gHYidoi2KUFKTH7G3QGVAtgP9JKtnzlWGZgxi7JjJwSU laAXyBeWW08mF4ccEIp20076tZaNwuXdJNZrau4jlBUOpA+RB+r1m6hUIFm5AhjDm9+i mn8Q== 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 f3si2054250edy.68.2020.05.06.17.18.45; Wed, 06 May 2020 17:19:08 -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 S1728408AbgEFXxc (ORCPT + 99 others); Wed, 6 May 2020 19:53:32 -0400 Received: from mga18.intel.com ([134.134.136.126]:25713 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726908AbgEFXxb (ORCPT ); Wed, 6 May 2020 19:53:31 -0400 IronPort-SDR: XLLIKqzvonuga+k2UPeRWVcjXr7cBDGNCWbjQBbjW4uEdcIs5HHqSWivKWJlDZZK+98QNVOcSP s4GO/qkewjXA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2020 16:53:31 -0700 IronPort-SDR: umqLMPB30HB3yXKpHBIOJPUICc5dFom0UnYCxYTBiw7raABZzfarpdAzlD5SOOsWv118BlObhJ HfSsD7hUyTng== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,361,1583222400"; d="scan'208";a="260348561" Received: from jekeller-desk.amr.corp.intel.com ([10.166.241.33]) by orsmga003.jf.intel.com with ESMTP; 06 May 2020 16:53:31 -0700 From: Jacob Keller To: linux-kernel@vger.kernel.org Cc: Jacob Keller , Jakub Kicinski , Andy Whitcroft , Joe Perches Subject: [PATCH v2] checkpatch: add GENL_SET_ERR_MSG et al. to 80 column exceptions Date: Wed, 6 May 2020 16:53:27 -0700 Message-Id: <20200506235327.3878021-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 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 --- 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 )}; -- 2.25.2