All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm: nouveau: fix build when LEDS_CLASS=m
@ 2017-01-02  0:20 Randy Dunlap
  2017-01-04  8:45   ` Daniel Vetter
  0 siblings, 1 reply; 18+ messages in thread
From: Randy Dunlap @ 2017-01-02  0:20 UTC (permalink / raw)
  To: dri-devel, LKML; +Cc: kbuild test robot, Martin Peres, Ben Skeggs

From: Randy Dunlap <rdunlap@infradead.org>

Fix build errors in nouveau driver when CONFIG_LEDS_CLASS=m and
CONFIG_DRM_NOUVEAU=y.
If LEDS_CLASS is enabled, DRM_NOUVEAU is restricted to the same
kconfig value as LEDS_CLASS.

drivers/built-in.o: In function `nouveau_do_suspend':
nouveau_drm.c:(.text+0x2030b1): undefined reference to `nouveau_led_suspend'
drivers/built-in.o: In function `nouveau_do_resume':
nouveau_drm.c:(.text+0x2034ca): undefined reference to `nouveau_led_resume'
drivers/built-in.o: In function `nouveau_drm_unload':
nouveau_drm.c:(.text+0x203a15): undefined reference to `nouveau_led_fini'
drivers/built-in.o: In function `nouveau_drm_load':
nouveau_drm.c:(.text+0x204423): undefined reference to `nouveau_led_init'

BTW, this line in Kbuild:
nouveau-$(CONFIG_LEDS_CLASS) += nouveau_led.o
does nothing when CONFIG_LEDS_CLASS=m and CONFIG_DRM_NOUVEAU=y.

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Cc: Martin Peres <martin.peres@free.fr>
Cc: Ben Skeggs <bskeggs@redhat.com>
---
 drivers/gpu/drm/nouveau/Kconfig |    1 +
 1 file changed, 1 insertion(+)

--- lnx-410-rc2.orig/drivers/gpu/drm/nouveau/Kconfig
+++ lnx-410-rc2/drivers/gpu/drm/nouveau/Kconfig
@@ -1,6 +1,7 @@
 config DRM_NOUVEAU
 	tristate "Nouveau (NVIDIA) cards"
 	depends on DRM && PCI
+	depends on LEDS_CLASS || LEDS_CLASS=n
         select FW_LOADER
 	select DRM_KMS_HELPER
 	select DRM_TTM

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2017-01-09 10:59 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-02  0:20 [PATCH] drm: nouveau: fix build when LEDS_CLASS=m Randy Dunlap
2017-01-04  8:45 ` Daniel Vetter
2017-01-04  8:45   ` Daniel Vetter
2017-01-04 14:25   ` Ilia Mirkin
2017-01-04 14:25     ` Ilia Mirkin
2017-01-05  2:52     ` Randy Dunlap
2017-01-05  3:09       ` Ilia Mirkin
2017-01-05  3:09         ` Ilia Mirkin
2017-01-05  3:17         ` Randy Dunlap
2017-01-05  3:23           ` Ilia Mirkin
2017-01-05  3:23             ` Ilia Mirkin
2017-01-04 19:29   ` Jani Nikula
2017-01-04 19:29     ` Jani Nikula
2017-01-04 22:24     ` Randy Dunlap
2017-01-05  8:01       ` Daniel Vetter
2017-01-05 16:08         ` Randy Dunlap
2017-01-09 10:59           ` Jani Nikula
2017-01-09 10:59             ` Jani Nikula

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.