aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2022-07-26 08:13:49 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2022-08-08 13:22:35 +0000
commitaec6a64c68b9ebadeacfba3dae2348b6b6aa90e4 (patch)
treeac6276d8f2cf24283480b56ceea91a291ebada3c
parent4aa82e4358c0cefffbcc30ef63bfb787ffc6030c (diff)
downloadsrc-aec6a64c68b9ebadeacfba3dae2348b6b6aa90e4.tar.gz
src-aec6a64c68b9ebadeacfba3dae2348b6b6aa90e4.zip
linuxkpi: Add linux/nospec.h
Needed by drm-kmod. Reviewed by: hselasky Obtained from: OpenBSD Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D35940
-rw-r--r--sys/compat/linuxkpi/common/include/linux/nospec.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/nospec.h b/sys/compat/linuxkpi/common/include/linux/nospec.h
new file mode 100644
index 000000000000..e8458ae8b371
--- /dev/null
+++ b/sys/compat/linuxkpi/common/include/linux/nospec.h
@@ -0,0 +1,8 @@
+/* Public domain. */
+
+#ifndef _LINUXKPI_LINUX_NOSPEC_H_
+#define _LINUXKPI_LINUX_NOSPEC_H_
+
+#define array_index_nospec(a, b) (a)
+
+#endif /* _LINUXKPILINUX_NOSPEC_H_ */