pgprot_encrypted macro is broken

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everyone,

In our kmod we use the `pgprot_encrypted` macro.
It seems like the macro cannot be used on 5.18+ kernels because commit
b577f542f93cbba57f8d6185ef1fb13a41ddf162 broke it.

Basically, the macro definition was:
`__pgprot(__sme_set(pgprot_val(prot)))`

but after the commit, it was changed to:
`__pgprot(cc_mkenc(pgprot_val(prot)))`.

But `cc_mkenc` symbol is not exported!

This leads to build issues:
> ERROR: modpost: "cc_mkenc" undefined!

Is this a bug?
Is there any workaround?

Thank you,
Regards
Federico



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux