From 00785f2c596aeac68ac94783fb3007763e26abab Mon Sep 17 00:00:00 2001 From: Randy Dunlap Date: Tue, 5 Nov 2013 16:54:52 +1100 Subject: [PATCH] nouveau: fix build eror when VGA_SWITCHEROO is not enabled 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 Cc: Ben Skeggs Cc: Jeff Mahoney Cc: Jiri Slaby Cc: David Airlie Signed-off-by: Andrew Morton --- drivers/gpu/drm/nouveau/nouveau_acpi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/nouveau/nouveau_acpi.c b/drivers/gpu/drm/nouveau/nouveau_acpi.c index 7fe98195d6a2..145bdac13a37 100644 --- a/drivers/gpu/drm/nouveau/nouveau_acpi.c +++ b/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 */ -- 2.39.5