Build failure: shmobile drm driver references backlight symbols
Subsystems (2)
My build system picked up on this failure:
drivers/built-in.o: In function `shmob_drm_backlight_init':
fmc-chardev.c:(.text+0x9f2d0): undefined reference to backlight_device_register' drivers/built-in.o: In function shmob_drm_backlight_exit':
fmc-chardev.c:(.text+0x9f370): undefined reference to `backlight_device_unregister'
which is cuased by drivers/gpu/drm/shmobile/shmob_drm_backlight.c being built without the backlight dependency being enabled. It looks like the backlight dependency is a hard requirement, so needs ot be added to the Kconfig entry for this driver in some way.
Hi Russell,
Quoted 9 lines · On Tuesday 29 October 2013 10:04:13 Russell King - ARM Linux wrote:
My build system picked up on this failure:
drivers/built-in.o: In function `shmob_drm_backlight_init':
fmc-chardev.c:(.text+0x9f2d0): undefined reference tobacklight_device_register' drivers/built-in.o: In functionshmob_drm_backlight_exit':
fmc-chardev.c:(.text+0x9f370): undefined reference to `backlight_device_unregister'
Quoted 4 lines
which is cuased by
drivers/gpu/drm/shmobile/shmob_drm_backlight.cbeing built without the backlight dependency being enabled. It looks like the backlight dependency is a hard requirement, so needs ot be added to theKconfigentry for this driver in some way.
Thank you for the report. I'll send a fix.
Signature · 3 lines
Regards, Laurent Pinchart
PATCH 1/1 drm: shmobile: Add dependency on BACKLIGHT_CLASS_DEVICE
In reply to Russell King - ARM LinuxFrom: Laurent Pinchart <[email protected]>
The driver registers a backlight device and thus requires BACKLIGHT_CLASS_DEVICE to be selected to avoid compilation breakages.
--- drivers/gpu/drm/shmobile/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/shmobile/Kconfig +1 -0
@@ -1,6 +1,7 @@ config DRM_SHMOBILE tristate "DRM Support for SH Mobile" depends on DRM && (ARM || SUPERH) + select BACKLIGHT_CLASS_DEVICE select DRM_KMS_HELPER select DRM_KMS_CMA_HELPER select DRM_GEM_CMA_HELPER
Signature · 3 lines
Regards, Laurent Pinchart