linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* pgprot_encrypted macro is broken
@ 2022-06-14 13:15 Federico Di Pierro
  2022-06-14 20:28 ` Jann Horn
  0 siblings, 1 reply; 5+ messages in thread
From: Federico Di Pierro @ 2022-06-14 13:15 UTC (permalink / raw)
  To: linux-api

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-06-21 10:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-14 13:15 pgprot_encrypted macro is broken Federico Di Pierro
2022-06-14 20:28 ` Jann Horn
2022-06-20  7:39   ` Federico Di Pierro
2022-06-20 11:32     ` Jann Horn
2022-06-21 10:22       ` Federico Di Pierro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).