VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Nathan Chancellor <nathan@kernel.org> 2021-09-24 15:44:00 -0700 committer: Linus Torvalds <torvalds@linux-foundation.org> 2021-09-24 16:13:35 -0700 commit: 19532869feb9b0a97d17ddc14609d1e53a5b60db parent: e8e9f1e6327005be9656aa135aeb9dfdaf6b3032
Commit Summary:
kasan: always respect CONFIG_KASAN_STACK
Diffstat:
1 file changed, 2 insertions, 1 deletion
diff --git a/scripts/Makefile.kasan b/scripts/Makefile.kasan
index 801c415bac59..b9e94c5e7097 100644
--- a/scripts/Makefile.kasan
+++ b/scripts/Makefile.kasan
@@ -33,10 +33,11 @@ else
 	CFLAGS_KASAN := $(CFLAGS_KASAN_SHADOW) \
 	 $(call cc-param,asan-globals=1) \
 	 $(call cc-param,asan-instrumentation-with-call-threshold=$(call_threshold)) \
-	 $(call cc-param,asan-stack=$(stack_enable)) \
 	 $(call cc-param,asan-instrument-allocas=1)
 endif
 
+CFLAGS_KASAN += $(call cc-param,asan-stack=$(stack_enable))
+
 endif # CONFIG_KASAN_GENERIC
 
 ifdef CONFIG_KASAN_SW_TAGS