aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Kondratyev <wulf@FreeBSD.org>2021-09-29 20:14:58 +0000
committerVladimir Kondratyev <wulf@FreeBSD.org>2021-10-13 09:05:38 +0000
commitf2a3116ab4d670389dfea4d3fe997af246f5b330 (patch)
tree3c009b66d30e88304ce78dad69673551b7f77b54
parent8cf87dd59ff7f58db2a449c05d15f3315244d466 (diff)
downloadsrc-f2a3116ab4d670389dfea4d3fe997af246f5b330.tar.gz
src-f2a3116ab4d670389dfea4d3fe997af246f5b330.zip
LinuxKPI: Add dummy pgprot_decrypted() implementation
to reduce number of #ifdefs in drm-kmod Reviewed by: hselasky Differential revision: https://reviews.freebsd.org/D32094 (cherry picked from commit 3d86f8f1d7d1a070dd2e81367a4196a272b3bd07)
-rw-r--r--sys/compat/linuxkpi/common/include/asm/pgtable.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/asm/pgtable.h b/sys/compat/linuxkpi/common/include/asm/pgtable.h
index 1df103060368..4831c144888d 100644
--- a/sys/compat/linuxkpi/common/include/asm/pgtable.h
+++ b/sys/compat/linuxkpi/common/include/asm/pgtable.h
@@ -40,4 +40,6 @@ typedef unsigned long pgdval_t;
typedef unsigned long pgprotval_t;
typedef struct page *pgtable_t;
+#define pgprot_decrypted(prot) (prot)
+
#endif /* _ASM_PGTABLE_H_ */