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)
commitf8d0cbf28df14b6b6801f027a396fd593971a922
treef521df51f24274f7d5ed6cff4e6553e6dbfcd766
parentd48fcbd864a008802a90c58a9ceddd9436d11a49
xtensa: fix build with KASAN

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