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