Skip to content

Commit

Permalink
vgaarb.h: fix build warnings
Browse files Browse the repository at this point in the history
Fix build warnings by providing a struct stub since no fields of
the struct are used:

include/linux/vgaarb.h:66:9: warning: 'struct pci_dev' declared inside parameter list
include/linux/vgaarb.h:66:9: warning: its scope is only this definition or declaration, which is probably not what you want
include/linux/vgaarb.h:99:34: warning: 'struct pci_dev' declared inside parameter list
include/linux/vgaarb.h:109:6: warning: 'struct pci_dev' declared inside parameter list
include/linux/vgaarb.h:121:8: warning: 'struct pci_dev' declared inside parameter list
include/linux/vgaarb.h:140:37: warning: 'struct pci_dev' declared inside parameter list

Signed-off-by: Randy Dunlap <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
  • Loading branch information
rddunlap authored and airlied committed Apr 11, 2012
1 parent afceb93 commit 6069a4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/linux/vgaarb.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
*/
#define VGA_DEFAULT_DEVICE (NULL)

struct pci_dev;

/* For use by clients */

/**
Expand Down

0 comments on commit 6069a4c

Please sign in to comment.