Functions cc_mkenc()/cc_mkdec() were introduced in commit b577f542f93c ("x86/coco: Add API to handle encryption mask") to handle encryption masks in page tables. As part of the above commit only cc_mkdec() was exported, however this creates an asymmetry where a module can use pgprot_decrypted() but not pgprot_encrypted(). Export cc_mkenc() as well to avoid the problem. Signed-off-by: Riccardo Schirone <rschirone91@xxxxxxxxx> --- As an example of a module using pgprot_encrypted() I tried to compile https://github.com/draios/sysdig but I could not because of missing cc_mkenc(). arch/x86/coco/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/coco/core.c b/arch/x86/coco/core.c index fc1365dd927e..d761d119eaab 100644 --- a/arch/x86/coco/core.c +++ b/arch/x86/coco/core.c @@ -94,6 +94,7 @@ u64 cc_mkenc(u64 val) return val; } } +EXPORT_SYMBOL_GPL(cc_mkenc); u64 cc_mkdec(u64 val) { -- 2.32.0