2021-10-27 18:46:41 +05:00
|
|
|
#ifndef _LINUX_KASAN_CHECKS_H
|
|
|
|
#define _LINUX_KASAN_CHECKS_H
|
|
|
|
|
2021-11-13 09:26:51 +05:00
|
|
|
#ifdef CONFIG_KASAN
|
|
|
|
void kasan_check_read(const void *p, unsigned int size);
|
|
|
|
void kasan_check_write(const void *p, unsigned int size);
|
2021-10-27 18:46:41 +05:00
|
|
|
#else
|
2021-11-13 09:26:51 +05:00
|
|
|
static inline void kasan_check_read(const void *p, unsigned int size) { }
|
|
|
|
static inline void kasan_check_write(const void *p, unsigned int size) { }
|
2021-10-27 18:46:41 +05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|