forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 093a6c67005148ae32a5c9e4553491b9f5c2457b
kernel/include/linux/nospec.h
....@@ -5,10 +5,16 @@
55
66 #ifndef _LINUX_NOSPEC_H
77 #define _LINUX_NOSPEC_H
8
+
9
+#include <linux/compiler.h>
810 #include <asm/barrier.h>
911
1012 struct task_struct;
1113
14
+#ifndef barrier_nospec
15
+# define barrier_nospec() do { } while (0)
16
+#endif
17
+
1218 /**
1319 * array_index_mask_nospec() - generate a ~0 mask when index < size, 0 otherwise
1420 * @index: array element index