Skip to content

Commit

Permalink
xtensa: fix build with KASAN
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
jcmvbkbc committed Feb 11, 2018
1 parent d48fcbd commit f8d0cbf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/xtensa/include/asm/kasan.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit f8d0cbf

Please sign in to comment.