mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
71be3423a6
commit
0ea18b40cd
|
@ -65,8 +65,13 @@ struct pci_dev;
|
||||||
* out of the arbitration process (and can be safe to take
|
* out of the arbitration process (and can be safe to take
|
||||||
* interrupts at any time.
|
* interrupts at any time.
|
||||||
*/
|
*/
|
||||||
|
#if defined(CONFIG_VGA_ARB)
|
||||||
extern void vga_set_legacy_decoding(struct pci_dev *pdev,
|
extern void vga_set_legacy_decoding(struct pci_dev *pdev,
|
||||||
unsigned int decodes);
|
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
|
* vga_get - acquire & locks VGA resources
|
||||||
|
|
Loading…
Reference in New Issue