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