public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nouveau: fix build eror when VGA_SWITCHEROO is not enabled
@ 2013-09-11 16:39 Randy Dunlap
  0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2013-09-11 16:39 UTC (permalink / raw)
  To: dri-devel, David Airlie, Dave Airlie
  Cc: LKML, Andrew Morton, airlied, bskeggs

From: Randy Dunlap <rdunlap@infradead.org>

Fix nouveau build error on x86, when ACPI is enabled but
VGA_SWITCHEROO is not enabled, by providing a stub function.

drivers/built-in.o: In function `nouveau_pmops_runtime_suspend':
nouveau_drm.c:(.text+0x3aac89): undefined reference to `nouveau_switcheroo_optimus_dsm'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
 drivers/gpu/drm/nouveau/nouveau_acpi.c |    1 +
 1 file changed, 1 insertion(+)

--- linux-next-20130911.orig/drivers/gpu/drm/nouveau/nouveau_acpi.c
+++ linux-next-20130911/drivers/gpu/drm/nouveau/nouveau_acpi.c
@@ -373,6 +373,7 @@ void nouveau_unregister_dsm_handler(void
 #else
 void nouveau_register_dsm_handler(void) {}
 void nouveau_unregister_dsm_handler(void) {}
+void nouveau_switcheroo_optimus_dsm(void) {}
 #endif
 
 /* retrieve the ROM in 4k blocks */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-09-11 16:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-11 16:39 [PATCH] nouveau: fix build eror when VGA_SWITCHEROO is not enabled Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox