vga_switcheroo.h: fix pci_dev warning
authorRandy Dunlap <rdunlap@xenotime.net>
Fri, 15 Jun 2012 19:46:17 +0000 (12:46 -0700)
committerDave Airlie <airlied@redhat.com>
Sat, 16 Jun 2012 10:11:25 +0000 (11:11 +0100)
Fix warnings on some architectures/configs (not on x86):

include/linux/vga_switcheroo.h:28:30: warning: 'struct pci_dev' declared inside parameter list [enabled by default]
include/linux/vga_switcheroo.h:28:30: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Cc: Takashi Iwai <tiwai@suse.de>
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
include/linux/vga_switcheroo.h

index 60da41fe9dc2b4a7d0496c01ead943b0b75c9c3e..d844b7790ea6671e0801649b3f040a2900ef8448 100644 (file)
@@ -9,6 +9,8 @@
 
 #include <linux/fb.h>
 
+struct pci_dev;
+
 enum vga_switcheroo_state {
        VGA_SWITCHEROO_OFF,
        VGA_SWITCHEROO_ON,