drm/panel: select DRM_KMS_HELPER
Subsystems (3)
PATCH 1/1 drm/panel: select DRM_KMS_HELPER
Since the panel_bridge code moved into drm_panel.c, any config with DRM built in but without the KMS helpers fails to link, for example arc haps_hs_smp_defconfig with allnoconfig and the kselftest fragment:
arc-elf32-ld: drivers/gpu/drm/drm_panel.o:(.rodata+0x28): undefined reference to `drm_atomic_helper_bridge_duplicate_state'
arc-elf32-ld: drivers/gpu/drm/drm_panel.o:(.rodata+0x2c): undefined reference to `drm_atomic_helper_bridge_destroy_state'
...
With DRM=m, modpost fails the same way:
ERROR: modpost: drivers/gpu/drm/drm_panel.ko: symbol 'drm_atomic_helper_bridge_duplicate_state' undefined!
The panel_bridge used to live in bridge/panel.c, which was part of drm_kms_helper and was therefore only built when DRM_KMS_HELPER was enabled. drm_panel.c is built for DRM_PANEL instead, which DRM_PANEL_BRIDGE selects whenever DRM_BRIDGE is set, and DRM_BRIDGE is enabled for every DRM config. Nothing on that path selects DRM_KMS_HELPER, so the bridge and connector helpers used by the moved code can be missing.
The panel_bridge code in drm_panel.c is built unconditionally, so make DRM_PANEL select DRM_KMS_HELPER.
--- drivers/gpu/drm/panel/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/panel/Kconfig +1 -0
@@ -2,6 +2,7 @@ config DRM_PANEL tristate depends on DRM + select DRM_KMS_HELPER help Panel registration and lookup framework.
Signature · 1 line
2.53.0
Quoted 23 lines · Sasha Levin
Since the
panel_bridgecode moved intodrm_panel.c, any config with DRM built in but without the KMS helpers fails to link, for example archaps_hs_smp_defconfigwith allnoconfig and the kselftest fragment:arc-elf32-ld: drivers/gpu/drm/drm_panel.o:(.rodata+0x28): undefined reference to `drm_atomic_helper_bridge_duplicate_state'
arc-elf32-ld: drivers/gpu/drm/drm_panel.o:(.rodata+0x2c): undefined reference to `drm_atomic_helper_bridge_destroy_state'
...With DRM=m, modpost fails the same way:
ERROR: modpost:
drivers/gpu/drm/drm_panel.ko: symbol 'drm_atomic_helper_bridge_duplicate_state' undefined!The
panel_bridgeused to live inbridge/panel.c, which was part ofdrm_kms_helperand was therefore only built whenDRM_KMS_HELPERwas enabled.drm_panel.cis built forDRM_PANELinstead, whichDRM_PANEL_BRIDGEselects wheneverDRM_BRIDGEis set, andDRM_BRIDGEis enabled for every DRM config. Nothing on that path selectsDRM_KMS_HELPER, so the bridge and connector helpers used by the moved code can be missing.
Quoted 8 lines
The
panel_bridgecode indrm_panel.cis built unconditionally, so makeDRM_PANELselectDRM_KMS_HELPER.Reported-by kernelci.org bot <[email protected]>Fixes aa8a8c7e4641 ("drm/bridge: panel: move all code to drm_panel.c")Assisted-by LLMSigned-off-by Sasha Levin <[email protected]>
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Luca Ceresoli
AppliedQuoted 11 lines · Sasha Levin
Since the
panel_bridgecode moved intodrm_panel.c, any config with DRM built in but without the KMS helpers fails to link, for example archaps_hs_smp_defconfigwith allnoconfig and the kselftest fragment:arc-elf32-ld: drivers/gpu/drm/drm_panel.o:(.rodata+0x28): undefined reference to `drm_atomic_helper_bridge_duplicate_state'
arc-elf32-ld: drivers/gpu/drm/drm_panel.o:(.rodata+0x2c): undefined reference to `drm_atomic_helper_bridge_destroy_state'
...[...]
Applied, thanks!
[1/1] drm/panel: select DRM_KMS_HELPER
commit: 82e81301ef3b2c7345702c9d5e7374492680df20
Best regards,
Signature · 3 lines
Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com