kernel/include/linux/nospec.h
.. .. @@ -5,10 +5,16 @@ 5 5 6 6 #ifndef _LINUX_NOSPEC_H 7 7 #define _LINUX_NOSPEC_H 8 +9 +#include <linux/compiler.h>8 10 #include <asm/barrier.h> 9 11 10 12 struct task_struct; 11 13 14 +#ifndef barrier_nospec15 +# define barrier_nospec() do { } while (0)16 +#endif17 +12 18 /** 13 19 * array_index_mask_nospec() - generate a ~0 mask when index < size, 0 otherwise 14 20 * @index: array element index