RE: [PATCH] dax/hmem: build hmem device support as module if possible
From: Dan Williams
Date: Tue Feb 14 2023 - 11:41:16 EST
Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> When device_hmem.o is enabled but dax itself is a loadable module, the
> dax_hmem support fails to link because Kbuild never compiles built-in
> code under drivers/dax:
>
> ERROR: modpost: "walk_hmem_resources" [drivers/dax/hmem/dax_hmem.ko] undefined!
>
> Make sure that drivers/dax is entered for compiling built-in code
> even with CONFIG_DAX=m.
>
> Fixes: 7dab174e2e27 ("dax/hmem: Move hmem device registration to dax_hmem.ko")
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
> ---
Thanks, applied.