blob: 41960fecf7838d7160a2fa5a17e4a78eb0e55a33 [file] [log] [blame]
Andrey Ryabinin64f8eba2016-05-20 16:59:28 -07001#ifndef _LINUX_KASAN_CHECKS_H
2#define _LINUX_KASAN_CHECKS_H
3
4#ifdef CONFIG_KASAN
Dmitry Vyukovf06e8c52017-06-22 16:14:17 +02005void kasan_check_read(const volatile void *p, unsigned int size);
6void kasan_check_write(const volatile void *p, unsigned int size);
Andrey Ryabinin64f8eba2016-05-20 16:59:28 -07007#else
Dmitry Vyukovf06e8c52017-06-22 16:14:17 +02008static inline void kasan_check_read(const volatile void *p, unsigned int size)
9{ }
10static inline void kasan_check_write(const volatile void *p, unsigned int size)
11{ }
Andrey Ryabinin64f8eba2016-05-20 16:59:28 -070012#endif
13
14#endif