diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2023-06-13 19:56:13 -0700 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2023-06-13 21:56:27 -0700 |
commit | 67e886229e27e80253e1ff9025a74a3dce941f17 (patch) | |
tree | d33f69927c1591698728407788dc103474da80c8 /arch/xtensa/mm | |
parent | 959b76a909bf520b3b2ead067db487a80d19663d (diff) | |
download | linux-stable-67e886229e27e80253e1ff9025a74a3dce941f17.tar.gz linux-stable-67e886229e27e80253e1ff9025a74a3dce941f17.tar.bz2 linux-stable-67e886229e27e80253e1ff9025a74a3dce941f17.zip |
xtensa: move early_trap_init from kasan_early_init to init_arch
There may be other users for the early traps besides KASAN. Move call to
the early_trap_init from kasan_early_init. Protect init_exc_table
initializer with ifdef to make sure it builds on noMMU configurations.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/mm')
-rw-r--r-- | arch/xtensa/mm/kasan_init.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/xtensa/mm/kasan_init.c b/arch/xtensa/mm/kasan_init.c index 1fef24db2ff6..f00d122aa806 100644 --- a/arch/xtensa/mm/kasan_init.c +++ b/arch/xtensa/mm/kasan_init.c @@ -14,7 +14,6 @@ #include <linux/kernel.h> #include <asm/initialize_mmu.h> #include <asm/tlbflush.h> -#include <asm/traps.h> void __init kasan_early_init(void) { @@ -31,7 +30,6 @@ void __init kasan_early_init(void) BUG_ON(!pmd_none(*pmd)); set_pmd(pmd, __pmd((unsigned long)kasan_early_shadow_pte)); } - early_trap_init(); } static void __init populate(void *start, void *end) |