Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Feb 2023 22:09:03 GMT
From:      =?utf-8?Q?Jean-S=C3=A9bastien=20P=C3=A9dron?= <dumbbell@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 96e16cf368f6 - main - linuxkpi: Add <linux/cc_platform.h>
Message-ID:  <202302142209.31EM93RW004570@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dumbbell (ports committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=96e16cf368f6d8aa3c0efd44db4c4678892e1fea

commit 96e16cf368f6d8aa3c0efd44db4c4678892e1fea
Author:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
AuthorDate: 2023-02-14 21:44:21 +0000
Commit:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
CommitDate: 2023-02-14 22:07:19 +0000

    linuxkpi: Add <linux/cc_platform.h>
    
    It defines the `cc_platform_has()` function.
    
    Reviewed by:    manu
    Approved by:    manu
    Differential Revision:  https://reviews.freebsd.org/D38596
---
 sys/compat/linuxkpi/common/include/linux/cc_platform.h | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/cc_platform.h b/sys/compat/linuxkpi/common/include/linux/cc_platform.h
new file mode 100644
index 000000000000..727dbc98dab2
--- /dev/null
+++ b/sys/compat/linuxkpi/common/include/linux/cc_platform.h
@@ -0,0 +1,17 @@
+/* Public domain. */
+
+#ifndef _LINUXKPI_LINUX_CC_PLATFORM_H_
+#define	_LINUXKPI_LINUX_CC_PLATFORM_H_
+
+enum cc_attr {
+	CC_ATTR_MEM_ENCRYPT,
+};
+
+static inline bool
+cc_platform_has(enum cc_attr attr __unused)
+{
+
+	return (false);
+}
+
+#endif /* _LINUXKPI_LINUX_CC_PLATFORM_H_ */



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