summaryrefslogtreecommitdiff
path: root/include/linux/kasan-checks.h
blob: 41960fecf7838d7160a2fa5a17e4a78eb0e55a33 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef _LINUX_KASAN_CHECKS_H
#define _LINUX_KASAN_CHECKS_H

#ifdef CONFIG_KASAN
void kasan_check_read(const volatile void *p, unsigned int size);
void kasan_check_write(const volatile void *p, unsigned int size);
#else
static inline void kasan_check_read(const volatile void *p, unsigned int size)
{ }
static inline void kasan_check_write(const volatile void *p, unsigned int size)
{ }
#endif

#endif