Skip to contentSkip to conversation

Build failure: shmobile drm driver references backlight symbols

PATCH New Russell King - ARM Linux 3 participants 3 messages Oct 29, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw

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 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'

Quoted 4 lines

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.

Thank you for the report. I'll send a fix.

Signature · 3 lines
Regards,

Laurent Pinchart
#2 lore raw

PATCH 1/1 drm: shmobile: Add dependency on BACKLIGHT_CLASS_DEVICE

In reply to Russell King - ARM Linux

From: 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
index ca498d1..5240690 100644
@@ -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