Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Sep 2022 15:10:06 GMT
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 988ccb61b573 - stable/13 - linuxkpi: Add linux/nospec.h
Message-ID:  <202209071510.287FA6pu020048@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by manu:

URL: https://cgit.FreeBSD.org/src/commit/?id=988ccb61b5739090b3fd03276ba1e2e3fb009407

commit 988ccb61b5739090b3fd03276ba1e2e3fb009407
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2022-07-26 08:13:49 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-09-07 15:09:03 +0000

    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
    
    (cherry picked from commit aec6a64c68b9ebadeacfba3dae2348b6b6aa90e4)
---
 sys/compat/linuxkpi/common/include/linux/nospec.h | 8 ++++++++
 1 file changed, 8 insertions(+)

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_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202209071510.287FA6pu020048>