Skip to content

Commit

Permalink
fpga: dfl-cxl-cache: depend on DRM
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
pcolberg committed Feb 1, 2024
1 parent 466c21c commit ba2f178
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions configs/dfl-config
Expand Up @@ -61,6 +61,7 @@ CONFIG_PTP_DFL_TOD=m

# CXL cache support

CONFIG_DRM=m
CONFIG_FPGA_DFL_CXL_CACHE=m

# Test configs - not required for production environments
Expand Down
2 changes: 1 addition & 1 deletion drivers/fpga/Kconfig
Expand Up @@ -296,7 +296,7 @@ config FPGA_M10_BMC_SEC_UPDATE

config FPGA_DFL_CXL_CACHE
tristate "Intel CXL cache driver"
depends on FPGA_DFL
depends on DRM && FPGA_DFL
help
This is the driver for CXL cache Accelerated Function Unit
(AFU) which provides interfaces to MMIO region and dma buffers.
Expand Down

0 comments on commit ba2f178

Please sign in to comment.