linux/drivers/dax
Arnd Bergmann 0c16c83ed5 dax: cxl: add CXL_REGION dependency
There is already a dependency on CXL_REGION, which depends on CXL_BUS,
but since CXL_REGION is a 'bool' symbol, it's possible to configure
DAX as built-in even though CXL itself is a loadable module:

x86_64-linux-ld: drivers/dax/cxl.o: in function `cxl_dax_region_probe':
cxl.c:(.text+0xb): undefined reference to `to_cxl_dax_region'
x86_64-linux-ld: drivers/dax/cxl.o: in function `cxl_dax_region_driver_init':
cxl.c:(.init.text+0x10): undefined reference to `__cxl_driver_register'
x86_64-linux-ld: drivers/dax/cxl.o: in function `cxl_dax_region_driver_exit':
cxl.c:(.exit.text+0x9): undefined reference to `cxl_driver_unregister'

Prevent this with another depndency on the tristate symbol.

Fixes: 09d09e04d2 ("cxl/dax: Create dax devices for CXL RAM regions")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20230214103054.1082908-1-arnd@kernel.org
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2023-02-14 08:38:20 -08:00
..
hmem cxl/dax: Create dax devices for CXL RAM regions 2023-02-10 17:33:45 -08:00
pmem dax: Kill DEV_DAX_PMEM_COMPAT 2021-11-24 19:21:35 -08:00
bus.c dax: Assign RAM regions to memory-hotplug by default 2023-02-10 17:33:40 -08:00
bus.h dax: Assign RAM regions to memory-hotplug by default 2023-02-10 17:33:40 -08:00
cxl.c cxl/dax: Create dax devices for CXL RAM regions 2023-02-10 17:33:45 -08:00
dax-private.h device-dax: add an 'align' attribute 2020-10-13 18:38:28 -07:00
device.c dax: Assign RAM regions to memory-hotplug by default 2023-02-10 17:33:40 -08:00
Kconfig dax: cxl: add CXL_REGION dependency 2023-02-14 08:38:20 -08:00
kmem.c dax: Assign RAM regions to memory-hotplug by default 2023-02-10 17:33:40 -08:00
Makefile cxl/dax: Create dax devices for CXL RAM regions 2023-02-10 17:33:45 -08:00
pmem.c dax: Kill DEV_DAX_PMEM_COMPAT 2021-11-24 19:21:35 -08:00
super.c dax: Remove usage of the deprecated ida_simple_xxx API 2022-09-29 17:29:27 -07:00