[PATCH mm v4 29/39] kasan, page_alloc: allow skipping memory init for HW_TAGS

Marco Elver elver at google.com
Tue Dec 21 04:30:23 PST 2021


On Mon, Dec 20, 2021 at 11:02PM +0100, andrey.konovalov at linux.dev wrote:
[...]
>  /* Room for N __GFP_FOO bits */
>  #define __GFP_BITS_SHIFT (24 +					\
> +			  IS_ENABLED(CONFIG_KASAN_HW_TAGS) +	\
>  			  IS_ENABLED(CONFIG_KASAN_HW_TAGS) +	\
>  			  IS_ENABLED(CONFIG_KASAN_HW_TAGS) +	\
>  			  IS_ENABLED(CONFIG_LOCKDEP))

Does '3 * IS_ENABLED(CONFIG_KASAN_HW_TAGS)' work?



More information about the linux-arm-kernel mailing list