git: 19b261f1788d - stable/13 - linuxkpi: Add <linux/cc_platform.h>

From: Jean-Sébastien Pédron <dumbbell_at_FreeBSD.org>
Date: Thu, 16 Feb 2023 11:56:38 UTC
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_ */