lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <cc0edf9cf2ee40bc13eec609eec5686de4f9f77f.camel@perches.com>
Date: Sat, 08 Nov 2025 16:52:27 -0800
From: Joe Perches <joe@...ches.com>
To: Jim Cromie <jim.cromie@...il.com>, linux-kernel@...r.kernel.org
Cc: akpm@...uxfoundation.org, kernel test robot <lkp@...el.com>, Andy
 Whitcroft	 <apw@...onical.com>, Dwaipayan Ray <dwaipayanray1@...il.com>,
 Lukas Bulwahn	 <lukas.bulwahn@...il.com>
Subject: Re: [PATCH 1/1] checkpatch: add MA_STATE to declaration_macros

On Sat, 2025-11-08 at 16:47 -0700, Jim Cromie wrote:
> MA_STATE is used repeatedly as a declaration, add it to the list.

OK but

> I left out the $Storage regex component, since I saw no cases wanting
> it, via: $> grep -r -B1 '\bMA_STATE' .
> 
> This change fixes the following, reproduced locally.

No following ?

And I looked at the MA_STATE macro definition that has
several NULL or zero unnecessary member initializations
but doesn't initialize the entire structure as all
non-named members are NULL or zero by default.

I wonder if the unnecessary NULL/0 initializations there
could actually increase the object size.

With gcc 15.2.1 allyesconfig & defconfig do not change
either way but I don't know if all supported versions
minimize the initialization properly.

> Reported-by: kernel test robot <lkp@...el.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202511071306.OJpTf7fK-lkp@intel.com/

This Closes: url is not found on lore

> 
> Signed-off-by: Jim Cromie <jim.cromie@...il.com>
> ---
>  scripts/checkpatch.pl | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
> index e722dd6fa8ef..4b5e2e64dece 100755
> --- a/scripts/checkpatch.pl
> +++ b/scripts/checkpatch.pl
> @@ -1096,7 +1096,8 @@ our $declaration_macros = qr{(?x:
>  	(?:$Storage\s+)?(?:[A-Z_][A-Z0-9]*_){0,2}(?:DEFINE|DECLARE)(?:_[A-Z0-9]+){1,6}\s*\(|
>  	(?:$Storage\s+)?[HLP]?LIST_HEAD\s*\(|
>  	(?:SKCIPHER_REQUEST|SHASH_DESC|AHASH_REQUEST)_ON_STACK\s*\(|
> -	(?:$Storage\s+)?(?:XA_STATE|XA_STATE_ORDER)\s*\(
> +	(?:$Storage\s+)?(?:XA_STATE|XA_STATE_ORDER)\s*\(|
> +	(?:MA_STATE)\s*\(
>  )};
>  
>  our %allow_repeated_words = (

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ