[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20090703104640.07b26b28.randy.dunlap@oracle.com>
Date: Fri, 3 Jul 2009 10:46:40 -0700
From: Randy Dunlap <randy.dunlap@...cle.com>
To: linux-kernel@...r.kernel.org
Cc: akpm@...ux-foundation.org
Subject: [PATCH -mmotm] gpio.h: fix warning for GENERIC_GPIO=n
From: Randy Dunlap <randy.dunlap@...cle.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@...cle.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/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists