Skip to content

Commit f8d0cbf

Browse files
committed
xtensa: fix build with KASAN
The commit 917538e ("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 <[email protected]> Fixes: 917538e ("kasan: clean up KASAN_SHADOW_SCALE_SHIFT usage") Acked-by: Andrey Konovalov <[email protected]> Signed-off-by: Max Filippov <[email protected]>
1 parent d48fcbd commit f8d0cbf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/xtensa/include/asm/kasan.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
#include <linux/sizes.h>
1111
#include <asm/kmem_layout.h>
1212

13+
#define KASAN_SHADOW_SCALE_SHIFT 3
14+
1315
/* Start of area covered by KASAN */
1416
#define KASAN_START_VADDR __XTENSA_UL_CONST(0x90000000)
1517
/* Start of the shadow map */

0 commit comments

Comments
 (0)