• Max Filippov's avatar
    xtensa: fix build with KASAN · f8d0cbf2
    Max Filippov authored
    The commit 917538e2 ("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: 917538e2 ("kasan: clean up KASAN_SHADOW_SCALE_SHIFT usage")
    Acked-by: default avatarAndrey Konovalov <andreyknvl@google.com>
    Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
    f8d0cbf2
kasan.h 859 Bytes