Skip to contentSkip to conversation

BACKLIGHT_CLASS_DEVICE=y, SYSFS=n compile error

DISCUSSION Adrian Bunk 2 participants 3 messages Feb 20, 2007 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

CONFIG_BACKLIGHT_CLASS_DEVICE=y, CONFIG_SYSFS=n results int he following compile error:

<-- snip -->

...
LD .tmp_vmlinux1
drivers/built-in.o: In function `nvidia_bl_exit':
(.text+0x27d01): undefined reference to backlight_device_unregister' drivers/built-in.o: In function nvidia_bl_init':
(.text+0x27e3c): undefined reference to backlight_device_register' drivers/built-in.o: In function radeonfb_bl_exit':
(.text+0x3b64e): undefined reference to backlight_device_unregister' drivers/built-in.o: In function radeonfb_bl_init':
(.text+0x3b6d1): undefined reference to backlight_device_register' drivers/built-in.o: In function acpi_video_bus_put_devices':
video.c:(.text+0x9a798): undefined reference to backlight_device_unregister' drivers/built-in.o: In function brightness_exit':
ibm_acpi.c:(.text+0xa393f): undefined reference to backlight_device_unregister' drivers/built-in.o: In function brightness_init':
ibm_acpi.c:(.text+0xa569c): undefined reference to backlight_device_register' drivers/built-in.o: In function sony_acpi_add':
sony-laptop.c:(.text+0x183c4e): undefined reference to backlight_device_register' sony-laptop.c:(.text+0x183da1): undefined reference to backlight_device_unregister' drivers/built-in.o: In function `sony_acpi_remove':
sony-laptop.c:(.text+0x183de5): undefined reference to backlight_device_unregister' drivers/built-in.o: In function appledisplay_disconnect':
appledisplay.c:(.text+0x6a4d18): undefined reference to backlight_device_unregister' drivers/built-in.o: In function appledisplay_probe':
appledisplay.c:(.text+0x6a4f17): undefined reference to backlight_device_register' appledisplay.c:(.text+0x6a4f88): undefined reference to backlight_device_unregister' drivers/built-in.o: In function `rivafb_probe':
fbdev.c:(.init.text+0x4e23): undefined reference to backlight_device_register' drivers/built-in.o: In function atyfb_pci_probe':
atyfb_base.c:(.init.text+0x6eb2): undefined reference to backlight_device_register' drivers/built-in.o: In function aty128_probe':
aty128fb.c:(.init.text+0x7f57): undefined reference to backlight_device_register' drivers/built-in.o: In function toshiba_acpi_init':
toshiba_acpi.c:(.init.text+0x1b315): undefined reference to backlight_device_register' drivers/built-in.o: In function msi_init':
msi-laptop.c:(.init.text+0x34c67): undefined reference to backlight_device_register' msi-laptop.c:(.init.text+0x34ce1): undefined reference to backlight_device_unregister' drivers/built-in.o: In function `rivafb_remove':
fbdev.c:(.exit.text+0x18d): undefined reference to backlight_device_unregister' drivers/built-in.o: In function atyfb_remove':
atyfb_base.c:(.exit.text+0x2e0): undefined reference to backlight_device_unregister' drivers/built-in.o: In function aty128_remove':
aty128fb.c:(.exit.text+0x3eb): undefined reference to backlight_device_unregister' drivers/built-in.o: In function asus_acpi_exit':
asus_acpi.c:(.exit.text+0x109b): undefined reference to backlight_device_unregister' drivers/built-in.o:toshiba_acpi.c:(.exit.text+0x10cc): more undefined references to backlight_device_unregister' follow
make[1]: *** [.tmp_vmlinux1] Error 1

<-- snip -->

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed
#1 lore raw
Quoted 8 lines · Adrian Bunk

CONFIG_BACKLIGHT_CLASS_DEVICE=y, CONFIG_SYSFS=n results int he following compile error:
...
LD .tmp_vmlinux1
drivers/built-in.o: In function `nvidia_bl_exit':
(.text+0x27d01): undefined reference to backlight_device_unregister' drivers/built-in.o: In function nvidia_bl_init':
(.text+0x27e3c): undefined reference to `backlight_device_register'

I've added the patch below to the git backlight tree to resolve this.

Cheers,

Richard

backlight: Remove bogus SYSFS dependency

Remove a bogus SYSFS dependency from the backlight class

drivers/video/Kconfig +1 -3
index cd2ef0a..f8bc43c 100644
@@ -4,9 +4,7 @@
 
 menu "Graphics support"
 
-if SYSFS
-	source "drivers/video/backlight/Kconfig"
-endif
+source "drivers/video/backlight/Kconfig"
 
 config FB
 	tristate "Support for frame buffer devices"
drivers/video/Makefile +1 -1
index 6801edf..1b79a6f 100644
@@ -12,7 +12,7 @@ fb-objs                           := $(fb-y)
 
 obj-$(CONFIG_VT)		  += console/
 obj-$(CONFIG_LOGO)		  += logo/
-obj-$(CONFIG_SYSFS)		  += backlight/
+obj-y				  += backlight/
 
 obj-$(CONFIG_FB_CFB_FILLRECT)  += cfbfillrect.o
 obj-$(CONFIG_FB_CFB_COPYAREA)  += cfbcopyarea.o
#2 lore raw
Quoted 11 lines · Richard Purdie
Quoted 8 lines · Adrian Bunk

CONFIG_BACKLIGHT_CLASS_DEVICE=y, CONFIG_SYSFS=n results int he following compile error:
...
LD .tmp_vmlinux1
drivers/built-in.o: In function `nvidia_bl_exit':
(.text+0x27d01): undefined reference to backlight_device_unregister' drivers/built-in.o: In function nvidia_bl_init':
(.text+0x27e3c): undefined reference to `backlight_device_register'

I've added the patch below to the git backlight tree to resolve this.

Thanks, I can confirm this fixes it.

Quoted 4 lines

Cheers,

Richard
...

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed