public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dax/hmem: build hmem device support as module if possible
@ 2023-02-14 13:18 Arnd Bergmann
  2023-02-14 16:39 ` Dan Williams
  0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2023-02-14 13:18 UTC (permalink / raw)
  To: Jonathan Cameron, Dan Williams, Dave Jiang
  Cc: Arnd Bergmann, Greg Kroah-Hartman, linux-kernel

From: Arnd Bergmann <arnd@arndb.de>

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@arndb.de>
---
 drivers/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/Makefile b/drivers/Makefile
index 148ccfc2b5fe..20b118dca999 100644
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -76,7 +76,7 @@ obj-$(CONFIG_FB_INTEL)          += video/fbdev/intelfb/
 obj-$(CONFIG_PARPORT)		+= parport/
 obj-y				+= base/ block/ misc/ mfd/ nfc/
 obj-$(CONFIG_LIBNVDIMM)		+= nvdimm/
-obj-$(CONFIG_DAX)		+= dax/
+obj-y				+= dax/
 obj-$(CONFIG_DMA_SHARED_BUFFER) += dma-buf/
 obj-$(CONFIG_NUBUS)		+= nubus/
 obj-y				+= cxl/
-- 
2.39.1


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

* RE: [PATCH] dax/hmem: build hmem device support as module if possible
  2023-02-14 13:18 [PATCH] dax/hmem: build hmem device support as module if possible Arnd Bergmann
@ 2023-02-14 16:39 ` Dan Williams
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Williams @ 2023-02-14 16:39 UTC (permalink / raw)
  To: Arnd Bergmann, Jonathan Cameron, Dan Williams, Dave Jiang
  Cc: Arnd Bergmann, Greg Kroah-Hartman, linux-kernel

Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
> 
> 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@arndb.de>
> ---

Thanks, applied.

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

end of thread, other threads:[~2023-02-14 16:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-14 13:18 [PATCH] dax/hmem: build hmem device support as module if possible Arnd Bergmann
2023-02-14 16:39 ` Dan Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox