Skip to content

Commit ba2f178

Browse files
committed
fpga: dfl-cxl-cache: depend on DRM
This resolves an undefined reference to drm_clflush_virt_range() when building a kernel without modules and minimal configuration. Signed-off-by: Peter Colberg <peter.colberg@intel.com>
1 parent 466c21c commit ba2f178

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

configs/dfl-config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ CONFIG_PTP_DFL_TOD=m
6161

6262
# CXL cache support
6363

64+
CONFIG_DRM=m
6465
CONFIG_FPGA_DFL_CXL_CACHE=m
6566

6667
# Test configs - not required for production environments

drivers/fpga/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ config FPGA_M10_BMC_SEC_UPDATE
296296

297297
config FPGA_DFL_CXL_CACHE
298298
tristate "Intel CXL cache driver"
299-
depends on FPGA_DFL
299+
depends on DRM && FPGA_DFL
300300
help
301301
This is the driver for CXL cache Accelerated Function Unit
302302
(AFU) which provides interfaces to MMIO region and dma buffers.

0 commit comments

Comments
 (0)