]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
vgaarb: Stub vga_set_legacy_decoding()
authorAlex Williamson <alex.williamson@redhat.com>
Tue, 7 Apr 2015 17:14:38 +0000 (11:14 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 7 Apr 2015 17:14:38 +0000 (11:14 -0600)
vga_set_legacy_decoding() is defined in drivers/gpu/vga/vgaarb.c,
which is only compiled with CONFIG_VGA_ARB.  A caller would
therefore get an undefined symbol if the VGA arbiter is not
enabled.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Acked-by: Dave Airlie <airlied@redhat.com>
include/linux/vgaarb.h

index c37bd4d06739034cf9592305a152f9ed6eb35db3..8c3b412d84df38e37465e841996eee50ecfc50b7 100644 (file)
@@ -65,8 +65,13 @@ struct pci_dev;
  *     out of the arbitration process (and can be safe to take
  *     interrupts at any time.
  */
+#if defined(CONFIG_VGA_ARB)
 extern void vga_set_legacy_decoding(struct pci_dev *pdev,
                                    unsigned int decodes);
+#else
+static inline void vga_set_legacy_decoding(struct pci_dev *pdev,
+                                          unsigned int decodes) { };
+#endif
 
 /**
  *     vga_get         - acquire & locks VGA resources