Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / arch / arm64 / include / asm / kasan.h
blobe1b57c13f8a4164f89a59be393f2d422fc07f276
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_KASAN_H
3 #define __ASM_KASAN_H
5 #ifndef __ASSEMBLY__
7 #include <linux/linkage.h>
8 #include <asm/memory.h>
9 #include <asm/mte-kasan.h>
10 #include <asm/pgtable-types.h>
12 #define arch_kasan_set_tag(addr, tag) __tag_set(addr, tag)
13 #define arch_kasan_reset_tag(addr) __tag_reset(addr)
14 #define arch_kasan_get_tag(addr) __tag_get(addr)
16 #if defined(CONFIG_KASAN_GENERIC) || defined(CONFIG_KASAN_SW_TAGS)
18 asmlinkage void kasan_early_init(void);
19 void kasan_init(void);
21 #else
22 static inline void kasan_init(void) { }
23 #endif
25 #endif
26 #endif