]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
arm64: remove redundant 'if HAVE_ARCH_KASAN' in Kconfig
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 15 Jul 2024 19:28:17 +0000 (04:28 +0900)
committerWill Deacon <will@kernel.org>
Tue, 23 Jul 2024 14:23:26 +0000 (15:23 +0100)
Since commit 0383808e4d99 ("arm64: kasan: Reduce minimum shadow
alignment and enable 5 level paging"), HAVE_ARCH_KASAN is always 'y'.

The condition 'if HAVE_ARCH_KASAN' is always met.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Link: https://lore.kernel.org/r/20240715192843.2201439-1-masahiroy@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/Kconfig

index 167e51067508a18c37b7f5361e62bde87e0c21c0..5776bf3acd693f9d4125913f20fe56d2f57dcac2 100644 (file)
@@ -168,9 +168,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