Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

vgaarb: Stub vga_set_legacy_decoding()

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>

+5
+5
include/linux/vgaarb.h
··· 65 65 * out of the arbitration process (and can be safe to take 66 66 * interrupts at any time. 67 67 */ 68 + #if defined(CONFIG_VGA_ARB) 68 69 extern void vga_set_legacy_decoding(struct pci_dev *pdev, 69 70 unsigned int decodes); 71 + #else 72 + static inline void vga_set_legacy_decoding(struct pci_dev *pdev, 73 + unsigned int decodes) { }; 74 + #endif 70 75 71 76 /** 72 77 * vga_get - acquire & locks VGA resources