1 /* SPDX-License-Identifier: GPL-2.0 */
6 #define _GLOBAL_KASAN(fn) _GLOBAL(__##fn)
7 #define _GLOBAL_TOC_KASAN(fn) _GLOBAL_TOC(__##fn)
8 #define EXPORT_SYMBOL_KASAN(fn) EXPORT_SYMBOL(__##fn)
10 #define _GLOBAL_KASAN(fn) _GLOBAL(fn)
11 #define _GLOBAL_TOC_KASAN(fn) _GLOBAL_TOC(fn)
12 #define EXPORT_SYMBOL_KASAN(fn)
19 #define KASAN_SHADOW_SCALE_SHIFT 3
21 #define KASAN_SHADOW_START (KASAN_SHADOW_OFFSET + \
22 (PAGE_OFFSET >> KASAN_SHADOW_SCALE_SHIFT))
24 #define KASAN_SHADOW_OFFSET ASM_CONST(CONFIG_KASAN_SHADOW_OFFSET)
26 #define KASAN_SHADOW_END 0UL
28 #define KASAN_SHADOW_SIZE (KASAN_SHADOW_END - KASAN_SHADOW_START)
31 void kasan_early_init(void);
32 void kasan_mmu_init(void);
33 void kasan_init(void);
35 static inline void kasan_init(void) { }
36 static inline void kasan_mmu_init(void) { }
39 #endif /* __ASSEMBLY */