From nobody Mon Jun 29 08:55:30 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 28EA9C433EF for ; Sun, 13 Feb 2022 07:03:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233991AbiBMHDN (ORCPT ); Sun, 13 Feb 2022 02:03:13 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:43480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231410AbiBMHDM (ORCPT ); Sun, 13 Feb 2022 02:03:12 -0500 Received: from relay5.hostedemail.com (relay5.hostedemail.com [64.99.140.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E74245DE65 for ; Sat, 12 Feb 2022 23:03:05 -0800 (PST) Received: from omf03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id C0B9C20F14; Sun, 13 Feb 2022 07:03:04 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf03.hostedemail.com (Postfix) with ESMTPA id A063F6000D; Sun, 13 Feb 2022 07:02:37 +0000 (UTC) Message-ID: <3bd6ada59f411a7685d7e64eeb670540d4bfdcde.camel@perches.com> Subject: [PATCH] checkpatch: add early_param exception to blank line after struct/function test From: Joe Perches To: Andrew Morton Cc: Andy Whitcroft , Dwaipayan Ray , Lukas Bulwahn , linux-kernel@vger.kernel.org Date: Sat, 12 Feb 2022 23:03:02 -0800 User-Agent: Evolution 3.40.4-1ubuntu2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Rspamd-Server: rspamout05 X-Rspamd-Queue-Id: A063F6000D X-Stat-Signature: x1ao4dhk6jmd4ibbpj3b5hbrz1nkjhcb X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1+Iv5VSe0HrJpNOjUgwWIMqpX6LHBkUuPA= X-HE-Tag: 1644735757-263964 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add early_param as another exception to the blank line preferred after function/struct/union declaration or definition test. Signed-off-by: Joe Perches --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 071b3304f5d7c..727d23b934da2 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3930,7 +3930,7 @@ sub process { if ($prevline =3D~ /^[\+ ]};?\s*$/ && $line =3D~ /^\+/ && !($line =3D~ /^\+\s*$/ || - $line =3D~ /^\+\s*EXPORT_SYMBOL/ || + $line =3D~ /^\+\s*(?:EXPORT_SYMBOL|early_param)/ || $line =3D~ /^\+\s*MODULE_/i || $line =3D~ /^\+\s*\#\s*(?:end|elif|else)/ || $line =3D~ /^\+[a-z_]*init/ ||