Title: [7923] trunk/include/asm-generic/gpio.h: asm-generic/gpio.h: add some forward decls of the device struct
Revision
7923
Author
vapier
Date
2009-12-03 18:22:00 -0500 (Thu, 03 Dec 2009)

Log Message

asm-generic/gpio.h: add some forward decls of the device struct

  CC      arch/blackfin/kernel/bfin_gpio.o
In file included from /usr/local/src/linux/linux-2.6/arch/blackfin/include/asm/gpio.h:278,
                 from arch/blackfin/kernel/bfin_gpio.c:15:
include/asm-generic/gpio.h:193: warning: ?\226?\128?\152struct device?\226?\128?\153 declared inside parameter list
include/asm-generic/gpio.h:193: warning: its scope is only this definition or declaration, which is probably not what you want

Modified Paths

Diff

Modified: trunk/include/asm-generic/gpio.h (7922 => 7923)


--- trunk/include/asm-generic/gpio.h	2009-12-03 22:59:44 UTC (rev 7922)
+++ trunk/include/asm-generic/gpio.h	2009-12-03 23:22:00 UTC (rev 7923)
@@ -28,6 +28,7 @@
 	return ((unsigned)number) < ARCH_NR_GPIOS;
 }
 
+struct device;
 struct seq_file;
 struct module;
 
@@ -181,6 +182,8 @@
 
 #ifndef CONFIG_GPIO_SYSFS
 
+struct device;
+
 /* sysfs support is only available with gpiolib, where it's optional */
 
 static inline int gpio_export(unsigned gpio, bool direction_may_change)
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to