Skip to content

Commit b750f5a

Browse files
lc-wangtdz
authored andcommitted
drm/tiny: pixpaper: add explicit dependency on MMU
The DRM_GEM_SHMEM_HELPER helper requires MMU enabled because it uses vmf_insert_pfn() in its mmap implementation. On NOMMU configurations (e.g. some RISC-V randconfig builds), this symbol is unavailable and selecting DRM_GEM_SHMEM_HELPER causes a modpost undefined reference: ERROR: modpost: "vmf_insert_pfn" [drivers/gpu/drm/drm_shmem_helper.ko] undefined! Normally, Kconfig prevents this helper from being selected when CONFIG_MMU=n. However, in some randconfig builds (such as those used by 0day CI), select statements can override unmet dependencies, triggering the issue. Add an explicit dependency on MMU to DRM_PIXPAPER to prevent this. Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Fixes: 0c4932f ("drm/tiny: pixpaper: Fix missing dependency on DRM_GEM_SHMEM_HELPER") Acked-by: Thomas Zimmermann <[email protected]> Signed-off-by: LiangCheng Wang <[email protected]> Signed-off-by: Thomas Zimmermann <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent 664ce10 commit b750f5a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/gpu/drm/tiny/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ config DRM_PANEL_MIPI_DBI
8585
config DRM_PIXPAPER
8686
tristate "DRM support for PIXPAPER display panels"
8787
depends on DRM && SPI
88+
depends on MMU
8889
select DRM_CLIENT_SELECTION
8990
select DRM_GEM_SHMEM_HELPER
9091
select DRM_KMS_HELPER

0 commit comments

Comments
 (0)