xtensa: fix build with KASAN

"Linux Kernel Mailing List" <[email protected]> Sun, 11 Feb 2018 23:11:10 +0000 (UTC)
Newsgroups gmane.linux.kernel.commits.head
Message-ID <[email protected]>
Web:        https://git.kernel.org/torvalds/c/f8d0cbf28df14b6b6801f027a396fd593971a922
Commit:     f8d0cbf28df14b6b6801f027a396fd593971a922
Parent:     d48fcbd864a008802a90c58a9ceddd9436d11a49
Refname:    refs/heads/master
Author:     Max Filippov <[email protected]>
AuthorDate: Sun Feb 11 01:07:54 2018 -0800
Committer:  Max Filippov <[email protected]>
CommitDate: Sun Feb 11 09:18:12 2018 -0800

    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 <[email protected]>
    Fixes: 917538e212a2 ("kasan: clean up KASAN_SHADOW_SCALE_SHIFT usage")
    Acked-by: Andrey Konovalov <[email protected]>
    Signed-off-by: Max Filippov <[email protected]>
---
 arch/xtensa/include/asm/kasan.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/xtensa/include/asm/kasan.h b/arch/xtensa/include/asm/kasan.h
index 54be80876e57..216b6f32c375 100644
--- a/arch/xtensa/include/asm/kasan.h
+++ b/arch/xtensa/include/asm/kasan.h
@@ -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 */
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html