mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
cxl: Add dummy function for cxl_memdev_attach_region for !CONFIG_CXL_REGION
Add a dummy function that returns -EOPNOTSUPP for cxl_memdev_attach_region when CONFIG_CXL_REGION is not enabled. This allow sbuilding when cxl/core/region.o isn't built. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202606100401.GOjzpKHo-lkp@intel.com/ Fixes: 9b1e70e8f9ec ("cxl/region: Introduce devm_cxl_probe_mem()") Reviewed-by: Alison Schofield <alison.schofield@intel.com> Reviewed-by: Dan Williams <djbw@kernel.org> Link: https://patch.msgid.link/20260610001324.260268-1-dave.jiang@intel.com Signed-off-by: Dave Jiang <dave.jiang@intel.com>
This commit is contained in:
parent
d8dcb0b74b
commit
383f696563
|
|
@ -115,7 +115,14 @@ struct cxl_attach_region {
|
|||
struct range hpa_range;
|
||||
};
|
||||
|
||||
#ifdef CONFIG_CXL_REGION
|
||||
int cxl_memdev_attach_region(struct cxl_memdev *cxlmd);
|
||||
#else
|
||||
static inline int cxl_memdev_attach_region(struct cxl_memdev *cxlmd)
|
||||
{
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
#endif
|
||||
|
||||
struct cxl_memdev *devm_cxl_add_classdev(struct cxl_dev_state *cxlds);
|
||||
struct cxl_memdev *__devm_cxl_add_memdev(struct cxl_dev_state *cxlds,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user