Go to the documentation of this file. 1 #ifndef LINUX_KMEMCHECK_H
2 #define LINUX_KMEMCHECK_H
5 #include <linux/types.h>
7 #ifdef CONFIG_KMEMCHECK
64 #define kmemcheck_bitfield_begin(name) \
67 #define kmemcheck_bitfield_end(name) \
70 #define kmemcheck_annotate_bitfield(ptr, name) \
77 _n = (long) &((ptr)->name##_end) \
78 - (long) &((ptr)->name##_begin); \
79 BUILD_BUG_ON(_n < 0); \
81 kmemcheck_mark_initialized(&((ptr)->name##_begin), _n); \
84 #define kmemcheck_annotate_variable(var) \
86 kmemcheck_mark_initialized(&(var), sizeof(var)); \
90 #define kmemcheck_enabled 0
159 #define kmemcheck_bitfield_begin(name)
160 #define kmemcheck_bitfield_end(name)
161 #define kmemcheck_annotate_bitfield(ptr, name) \
165 #define kmemcheck_annotate_variable(var) \