]> Git Repo - linux.git/commit - mm/kasan/kasan.h
kasan: remove redundant config option
authorWalter Wu <[email protected]>
Fri, 16 Apr 2021 22:46:00 +0000 (15:46 -0700)
committerLinus Torvalds <[email protected]>
Fri, 16 Apr 2021 23:10:36 +0000 (16:10 -0700)
commit02c587733c8161355a43e6e110c2e29bd0acff72
treed5b8a2132110e8691df9254d9b344bad866b0a8d
parent5c595ac4c776c44b5c59de22ab43b3fe256d9fbb
kasan: remove redundant config option

CONFIG_KASAN_STACK and CONFIG_KASAN_STACK_ENABLE both enable KASAN stack
instrumentation, but we should only need one config, so that we remove
CONFIG_KASAN_STACK_ENABLE and make CONFIG_KASAN_STACK workable.  see [1].

When enable KASAN stack instrumentation, then for gcc we could do no
prompt and default value y, and for clang prompt and default value n.

This patch fixes the following compilation warning:

  include/linux/kasan.h:333:30: warning: 'CONFIG_KASAN_STACK' is not defined, evaluates to 0 [-Wundef]

[[email protected]: fix merge snafu]

Link: https://bugzilla.kernel.org/show_bug.cgi?id=210221
Link: https://lkml.kernel.org/r/[email protected]
Fixes: d9b571c885a8 ("kasan: fix KASAN_STACK dependency for HW_TAGS")
Signed-off-by: Walter Wu <[email protected]>
Suggested-by: Dmitry Vyukov <[email protected]>
Reviewed-by: Nathan Chancellor <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Reviewed-by: Andrey Konovalov <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Cc: Dmitry Vyukov <[email protected]>
Cc: Alexander Potapenko <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/arm64/kernel/sleep.S
arch/x86/kernel/acpi/wakeup_64.S
include/linux/kasan.h
lib/Kconfig.kasan
mm/kasan/common.c
mm/kasan/kasan.h
mm/kasan/report_generic.c
scripts/Makefile.kasan
security/Kconfig.hardening
This page took 0.060526 seconds and 4 git commands to generate.