Skip to content

Commit ee817ac

Browse files
committed
Merge branch 'for-6.3/cxl-ram-region' into cxl/next
Pick up some fixes from exposure of for-6.3/cxl-ram-region in linux-next.
2 parents f57aec4 + 8a3d95e commit ee817ac

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
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/

drivers/cxl/core/region.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2625,10 +2625,9 @@ int cxl_add_to_region(struct cxl_port *root, struct cxl_endpoint_decoder *cxled)
26252625
cxlr = to_cxl_region(region_dev);
26262626
mutex_unlock(&cxlrd->range_lock);
26272627

2628-
if (IS_ERR(cxlr)) {
2629-
rc = PTR_ERR(cxlr);
2628+
rc = PTR_ERR_OR_ZERO(cxlr);
2629+
if (rc)
26302630
goto out;
2631-
}
26322631

26332632
attach_target(cxlr, cxled, -1, TASK_UNINTERRUPTIBLE);
26342633

drivers/dax/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ config DEV_DAX_HMEM
4747

4848
config DEV_DAX_CXL
4949
tristate "CXL DAX: direct access to CXL RAM regions"
50-
depends on CXL_REGION && DEV_DAX
50+
depends on CXL_BUS && CXL_REGION && DEV_DAX
5151
default CXL_REGION && DEV_DAX
5252
help
5353
CXL RAM regions are either mapped by platform-firmware

0 commit comments

Comments
 (0)