Merge 4.14.61 into android-4.14-p
[GitHub/LineageOS/android_kernel_motorola_exynos9610.git] / scripts / Makefile.kasan
index 9576775a86f6418ac2ba6095b37f3e408c5cafca..97a56c0b565a4ab609f5d47dcd6abb9bf0dc78b9 100644 (file)
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
 ifdef CONFIG_KASAN
 ifdef CONFIG_KASAN_INLINE
        call_threshold := 10000
@@ -29,5 +30,10 @@ else
     endif
 endif
 
+ifdef CONFIG_KASAN_EXTRA
 CFLAGS_KASAN += $(call cc-option, -fsanitize-address-use-after-scope)
 endif
+
+CFLAGS_KASAN_NOSANITIZE := -fno-builtin
+
+endif