Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Feb 2023 11:56:38 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-branches@FreeBSD.org
Subject:   git: 19b261f1788d - stable/13 - linuxkpi: Add <linux/cc_platform.h>
Message-ID:  <202302161156.31GBucqx056491@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/src/commit/?id=19b261f1788da0037d76188ae3152b301eb47d81

commit 19b261f1788da0037d76188ae3152b301eb47d81
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-16 11:55:21 +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
    
    (cherry picked from commit 96e16cf368f6d8aa3c0efd44db4c4678892e1fea)
---
 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?202302161156.31GBucqx056491>