[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <cb683a87f9d6942df057567fbf2de57f83bd6546.camel@linux.ibm.com>
Date: Fri, 05 Apr 2024 10:17:09 -0400
From: Mimi Zohar <zohar@...ux.ibm.com>
To: "Gustavo A. R. Silva" <gustavo@...eddedor.com>,
"Gustavo A. R. Silva"
<gustavoars@...nel.org>,
Roberto Sassu <roberto.sassu@...wei.com>,
Dmitry
Kasatkin <dmitry.kasatkin@...il.com>,
Eric Snowberg
<eric.snowberg@...cle.com>,
Paul Moore <paul@...l-moore.com>, James Morris
<jmorris@...ei.org>,
"Serge E. Hallyn" <serge@...lyn.com>
Cc: linux-integrity@...r.kernel.org, linux-security-module@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-hardening@...r.kernel.org
Subject: Re: [PATCH v5][next] integrity: Avoid
-Wflex-array-member-not-at-end warnings
On Thu, 2024-04-04 at 18:56 -0600, Gustavo A. R. Silva wrote:
> > "checkpatch.pl --strict" complains "CHECK: Alignment should match open
> > parenthesis". I'll queue the patch, but how about teaching checkpatch.pl to
> > ignore __struct_group()?
>
> I think this would do it:
>
> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
> index 9c4c4a61bc83..e229b97f17f6 100755
> --- a/scripts/checkpatch.pl
> +++ b/scripts/checkpatch.pl
> @@ -3958,7 +3958,7 @@ sub process {
> my $rest = $2;
>
> my $pos = pos_last_openparen($rest);
> - if ($pos >= 0) {
> + if ($pos >= 0 && $rest !~
> /(__)?struct_group(_(tagged|attr))?(\()/) {
> $line =~ /^(\+| )([ \t]*)/;
> my $newindent = $2;
>
> I'll send a proper patch. Thanks for the suggestion, Mimi.
Thanks, it works.
Mimi
Powered by blists - more mailing lists