lkml.org 
[lkml]   [2012]   [Jun]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] vga_switcheroo.h: fix pci_dev warning
From: Randy Dunlap <rdunlap@xenotime.net>

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>
Cc: David Airlie <airlied@linux.ie>
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
include/linux/vga_switcheroo.h | 2 ++
1 file changed, 2 insertions(+)

--- lnx-35-rc2.orig/include/linux/vga_switcheroo.h
+++ lnx-35-rc2/include/linux/vga_switcheroo.h
@@ -9,6 +9,8 @@

#include <linux/fb.h>

+struct pci_dev;
+
enum vga_switcheroo_state {
VGA_SWITCHEROO_OFF,
VGA_SWITCHEROO_ON,

\
 
 \ /
  Last update: 2012-06-15 22:21    [W:0.050 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site