blob: b7f8aced787075710487d370b202c399f2af086a [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
5void kasan_check_read(const void *p, unsigned int size);
6void kasan_check_write(const void *p, unsigned int size);
7#else
8static inline void kasan_check_read(const void *p, unsigned int size) { }
9static inline void kasan_check_write(const void *p, unsigned int size) { }
10#endif
11
12#endif