Skip to content

Commit 8a3d95e

Browse files
arndbdjbw
authored andcommitted
dax/hmem: build hmem device support as module if possible
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: 7dab174 ("dax/hmem: Move hmem device registration to dax_hmem.ko") Signed-off-by: Arnd Bergmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dan Williams <[email protected]>
1 parent 0c16c83 commit 8a3d95e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ obj-$(CONFIG_FB_INTEL) += video/fbdev/intelfb/
7171
obj-$(CONFIG_PARPORT) += parport/
7272
obj-y += base/ block/ misc/ mfd/ nfc/
7373
obj-$(CONFIG_LIBNVDIMM) += nvdimm/
74-
obj-$(CONFIG_DAX) += dax/
74+
obj-y += dax/
7575
obj-$(CONFIG_DMA_SHARED_BUFFER) += dma-buf/
7676
obj-$(CONFIG_NUBUS) += nubus/
7777
obj-y += cxl/

0 commit comments

Comments
 (0)