George Spelvin
2017-Jan-12 07:55 UTC
[Nouveau] nouveau_drm.c: undefined reference to `nouveau_led_init'
If CONFIG_DRM_NOUVEAU=y and CONFIG_LEDS_CLASS=m, then nouveau_led.o is neither stubbed out nor compiled in and the compile fails with undefined symbols in nouveau_drm.c. I'm guessing it's commit 8d021d71b324. (Thanks for the cool hack, BTW, even if I don't have such a card and am complaining about the patch.) Worked around by setting CONFIG_NEW_LEDS=n (it had been forced on by CONFIG_HID_WACOM=m, but I don't have a Wacom tablet) and recompiling.
Martin Peres
2017-Jan-12 15:01 UTC
[Nouveau] nouveau_drm.c: undefined reference to `nouveau_led_init'
On 12/01/17 09:55, George Spelvin wrote:> If CONFIG_DRM_NOUVEAU=y and CONFIG_LEDS_CLASS=m, then nouveau_led.o is > neither stubbed out nor compiled in and the compile fails with undefined > symbols in nouveau_drm.c. > > I'm guessing it's commit 8d021d71b324. (Thanks for the cool hack, BTW, > even if I don't have such a card and am complaining about the patch.) > > Worked around by setting CONFIG_NEW_LEDS=n (it had been forced on by > CONFIG_HID_WACOM=m, but I don't have a Wacom tablet) and recompiling.Hey! Yes, this is known. The fix is waiting in Ben's tree for it to land in 4.10-rcX. Hopefully, we can all forget about this bug soon :) Sorry for the annoyance, Martin
Reasonably Related Threads
- nouveau_drm.c: undefined reference to `nouveau_led_init'
- [PATCH] drm/nouveau: fix LEDS_CLASS=m configuration
- [PATCH] drm/nouveau: fix LEDS_CLASS=m configuration
- [PATCH] nouveau/led: introduce CONFIG_DRM_NOUVEAU_LEDS
- [PATCH v2] drm/nouveau: add a LED driver for the NVIDIA logo