xtensa: fix build with KASAN
authorMax Filippov <jcmvbkbc@gmail.com>
Sun, 11 Feb 2018 09:07:54 +0000 (01:07 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Sun, 11 Feb 2018 17:18:12 +0000 (09:18 -0800)
The commit 917538e212a2 ("kasan: clean up KASAN_SHADOW_SCALE_SHIFT
usage") removed KASAN_SHADOW_SCALE_SHIFT definition from
include/linux/kasan.h and added it to architecture-specific headers,
except for xtensa. This broke the xtensa build with KASAN enabled.
Define KASAN_SHADOW_SCALE_SHIFT in arch/xtensa/include/asm/kasan.h

Reported by: kbuild test robot <fengguang.wu@intel.com>
Fixes: 917538e212a2 ("kasan: clean up KASAN_SHADOW_SCALE_SHIFT usage")
Acked-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/include/asm/kasan.h

index 54be80876e57847725a5faa229b12774a0bb7e6d..216b6f32c37596c2b6368a24dfc906fcd9959d73 100644 (file)
@@ -10,6 +10,8 @@
 #include <linux/sizes.h>
 #include <asm/kmem_layout.h>
 
+#define KASAN_SHADOW_SCALE_SHIFT 3
+
 /* Start of area covered by KASAN */
 #define KASAN_START_VADDR __XTENSA_UL_CONST(0x90000000)
 /* Start of the shadow map */