Re: [PATCH] s390/mm: Export set_memory_encrypted and set_memory_decrypted
From: Heiko Carstens
Date: Sat May 23 2026 - 12:02:09 EST
On Fri, May 22, 2026 at 04:06:05PM -0700, T.J. Mercier wrote:
> After commit fd55edff8a0a ("dma-buf: heaps: system: Turn the heap into a
> module") the system dma-buf heaps can be built as a module. The
> system_cc_shared heap uses set_memory_encrypted and set_memory_decrypted
> but those functions are not exported on s390. This results in a build
> error like:
>
> >> ERROR: modpost: "set_memory_decrypted" [drivers/dma-buf/heaps/system_heap.ko] undefined!
> >> ERROR: modpost: "set_memory_encrypted" [drivers/dma-buf/heaps/system_heap.ko] undefined!
>
> Export the functions so system_heap.ko can be built.
>
> Fixes: fd55edff8a0a ("dma-buf: heaps: system: Turn the heap into a module")
> Signed-off-by: T.J. Mercier <tjmercier@xxxxxxxxxx>
> ---
> arch/s390/mm/init.c | 2 ++
> 1 file changed, 2 insertions(+)
Fine with me, but this should go via drm-misc-next, since the commit
which breaks this is currently only available in linux-next.
Sumit, I guess you will add this to your queue?
In any case:
Acked-by: Heiko Carstens <hca@xxxxxxxxxxxxx>