[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231117014025.GC1325348@google.com>
Date: Fri, 17 Nov 2023 10:40:25 +0900
From: Sergey Senozhatsky <senozhatsky@...omium.org>
To: Andy Whitcroft <apw@...onical.com>, Joe Perches <joe@...ches.com>
Cc: Dwaipayan Ray <dwaipayanray1@...il.com>,
Lukas Bulwahn <lukas.bulwahn@...il.com>,
linux-kernel@...r.kernel.org,
Sergey Senozhatsky <senozhatsky@...omium.org>
Subject: Re: [PATCH] checkpatch: do not require an empty line before error
injection
On (23/11/09 16:51), Sergey Senozhatsky wrote:
>
> ALLOW_ERROR_INJECTION macro (just like EXPORT_SYMBOL) can immediately
> follow a function it annotates.
Gentle ping.
[..]
> @@ -4054,7 +4054,7 @@ sub process {
> if ($prevline =~ /^[\+ ]};?\s*$/ &&
> $line =~ /^\+/ &&
> !($line =~ /^\+\s*$/ ||
> - $line =~ /^\+\s*(?:EXPORT_SYMBOL|early_param)/ ||
> + $line =~ /^\+\s*(?:EXPORT_SYMBOL|early_param|ALLOW_ERROR_INJECTION)/ ||
> $line =~ /^\+\s*MODULE_/i ||
> $line =~ /^\+\s*\#\s*(?:end|elif|else)/ ||
> $line =~ /^\+[a-z_]*init/ ||
> --
> 2.42.0.869.gea05f2083d-goog
>
Powered by blists - more mailing lists