From: Randy Dunlap Date: Fri, 15 Jun 2012 19:46:17 +0000 (-0700) Subject: vga_switcheroo.h: fix pci_dev warning X-Git-Tag: accepted/tizen/common/20141203.182822~4359^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f8fee8f5acb5c3f82e02f2ae139a6f1e7b4eb583;p=platform%2Fkernel%2Flinux-arm64.git vga_switcheroo.h: fix pci_dev warning 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 Cc: Takashi Iwai Reported-by: Geert Uytterhoeven Signed-off-by: Dave Airlie --- diff --git a/include/linux/vga_switcheroo.h b/include/linux/vga_switcheroo.h index 60da41f..d844b779 100644 --- a/include/linux/vga_switcheroo.h +++ b/include/linux/vga_switcheroo.h @@ -9,6 +9,8 @@ #include +struct pci_dev; + enum vga_switcheroo_state { VGA_SWITCHEROO_OFF, VGA_SWITCHEROO_ON,