lkml.org 
[lkml]   [2009]   [Jul]   [3]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateFri, 3 Jul 2009 10:46:40 -0700
FromRandy Dunlap <>
Subject[PATCH -mmotm] gpio.h: fix warning for GENERIC_GPIO=n
From: Randy Dunlap <randy.dunlap@oracle.com>

Fix build for CONFIG_GENERIC_GPIO=n, which causes this warning:

include/linux/gpio.h:93: warning: 'struct device' declared inside parameter list
include/linux/gpio.h:93: warning: its scope is only this definition or declaration, which is probably not what you want

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
include/linux/gpio.h | 2 ++
1 file changed, 2 insertions(+)
--- mmotm-2009-0702-1957.orig/include/linux/gpio.h
+++ mmotm-2009-0702-1957/include/linux/gpio.h
@@ -12,6 +12,8 @@
#include <linux/types.h>
#include <linux/errno.h>

+struct device;
+
/*
* Some platforms don't support the GPIO programming interface.
*

---
~Randy
LPC 2009, Sept. 23-25, Portland, Oregon
http://linuxplumbersconf.org/2009/

\
 
 \ /
  Last update: 2009-07-03 19:49    [from the cache]
©2003-2009