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] [thread-next>] [day] [month] [year] [list]
Message-ID: <d27711cca1c034a06d58fc46ed0d55f59f94d281.camel@pengutronix.de>
Date: Wed, 05 Nov 2025 15:14:42 +0100
From: Philipp Zabel <p.zabel@...gutronix.de>
To: Encrow Thorne <jyc0019@...il.com>, Troy Mitchell
 <troy.mitchell@...ux.dev>
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH RFC] reset: fix BIT macro reference

Hi,

On Mi, 2025-11-05 at 21:35 +0800, Encrow Thorne wrote:
> RESET_CONTROL_FLAGS_BIT_* macros use BIT(), but reset.h does not
> include bits.h or bitops.h. This causes compilation errors when
> including reset.h standalone.
> 
> Include bits.h to make reset.h self-contained.
> 
> This patch is sent as RFC to discuss whether including bits.h in
> reset.h is appropriate.

Yes, this is appropriate, thank you.

> Signed-off-by: Encrow Thorne <jyc0019@...il.com>
> ---
>  include/linux/reset.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/linux/reset.h b/include/linux/reset.h
> index 840d75d172f6..d3102eef085e 100644
> --- a/include/linux/reset.h
> +++ b/include/linux/reset.h
> @@ -5,6 +5,7 @@
>  #include <linux/err.h>
>  #include <linux/errno.h>
>  #include <linux/types.h>
> +#include <linux/bits.h>

Please keep includes sorted alphabetically.

regards
Philipp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ