Re: [PATCH] arm64: remove redundant 'if HAVE_ARCH_KASAN' in Kconfig

From: Masahiro Yamada
Date: Sun Jul 14 2024 - 12:04:41 EST


On Sun, Jul 14, 2024 at 7:58 PM Masahiro Yamada <masahiroy@xxxxxxxxxx> wrote:
>
> The condition 'select HAVE_ARCH_KASAN' is always true because
> there is 'select HAVE_ARCH_KASAN' statement above.
>
> Signed-off-by: Masahiro Yamada <masahiroy@xxxxxxxxxx>
> ---
>
> arch/arm64/Kconfig | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
> index c87d16b12e9b..d37cbfc3031e 100644
> --- a/arch/arm64/Kconfig
> +++ b/arch/arm64/Kconfig
> @@ -167,9 +167,9 @@ config ARM64
> select HAVE_ARCH_JUMP_LABEL
> select HAVE_ARCH_JUMP_LABEL_RELATIVE
> select HAVE_ARCH_KASAN
> - select HAVE_ARCH_KASAN_VMALLOC if HAVE_ARCH_KASAN
> - select HAVE_ARCH_KASAN_SW_TAGS if HAVE_ARCH_KASAN
> - select HAVE_ARCH_KASAN_HW_TAGS if (HAVE_ARCH_KASAN && ARM64_MTE)
> + select HAVE_ARCH_KASAN_VMALLOC
> + select HAVE_ARCH_KASAN_SW_TAGS
> + select HAVE_ARCH_KASAN_HW_TAGS if ARM64_MTE
> # Some instrumentation may be unsound, hence EXPERT
> select HAVE_ARCH_KCSAN if EXPERT
> select HAVE_ARCH_KFENCE
> --
> 2.43.0
>


I expect this patch will go through the arm64 tree.

(I just sent it to the kbuild ML by mistake)





--
Best Regards
Masahiro Yamada