Re: [PATCH] scs: add CONFIG_MMU dependency for vfree_atomic()

From: Christoph Hellwig
Date: Fri Jan 26 2024 - 08:53:56 EST


On Mon, Jan 22, 2024 at 09:52:01AM -0800, Samuel Holland wrote:
> The shadow call stack implementation fails to build without CONFIG_MMU:
>
> ld.lld: error: undefined symbol: vfree_atomic
> >>> referenced by scs.c
> >>> kernel/scs.o:(scs_free) in archive vmlinux.a

Well, please just provide vfree_atomic for nommu then. vfree maps
to kfree which can be called from atomic context, so vfree_atomic
can do the same.