xref: /linux/include/linux/kasan-checks.h (revision 9fb29c734f9e98adc1f2f3c4629fe487cb93f2dd)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_KASAN_CHECKS_H
3 #define _LINUX_KASAN_CHECKS_H
4 
5 #ifdef CONFIG_KASAN
6 void kasan_check_read(const volatile void *p, unsigned int size);
7 void kasan_check_write(const volatile void *p, unsigned int size);
8 #else
9 static inline void kasan_check_read(const volatile void *p, unsigned int size)
10 { }
11 static inline void kasan_check_write(const volatile void *p, unsigned int size)
12 { }
13 #endif
14 
15 #endif
16