Skip to content

Commit 62e2397

Browse files
masahir0ywilldeacon
authored andcommitted
arm64: remove redundant 'if HAVE_ARCH_KASAN' in Kconfig
Since commit 0383808 ("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 <[email protected]> Reviewed-by: Randy Dunlap <[email protected]> Acked-by: Mark Rutland <[email protected]> Reviewed-by: Anshuman Khandual <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 4f3a6c4 commit 62e2397

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/arm64/Kconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ config ARM64
168168
select HAVE_ARCH_JUMP_LABEL
169169
select HAVE_ARCH_JUMP_LABEL_RELATIVE
170170
select HAVE_ARCH_KASAN
171-
select HAVE_ARCH_KASAN_VMALLOC if HAVE_ARCH_KASAN
172-
select HAVE_ARCH_KASAN_SW_TAGS if HAVE_ARCH_KASAN
173-
select HAVE_ARCH_KASAN_HW_TAGS if (HAVE_ARCH_KASAN && ARM64_MTE)
171+
select HAVE_ARCH_KASAN_VMALLOC
172+
select HAVE_ARCH_KASAN_SW_TAGS
173+
select HAVE_ARCH_KASAN_HW_TAGS if ARM64_MTE
174174
# Some instrumentation may be unsound, hence EXPERT
175175
select HAVE_ARCH_KCSAN if EXPERT
176176
select HAVE_ARCH_KFENCE

0 commit comments

Comments
 (0)