The patch titled gpio.h: fix warning for GENERIC_GPIO=n has been removed from the -mm tree. Its filename was gpiolib-allow-exported-gpio-nodes-to-be-named-using-sysfs-links-update-fix.patch This patch was dropped because it was folded into gpiolib-allow-exported-gpio-nodes-to-be-named-using-sysfs-links.patch The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: gpio.h: fix warning for GENERIC_GPIO=n From: Randy Dunlap <randy.dunlap@xxxxxxxxxx> 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@xxxxxxxxxx> Cc: Jani Nikula <ext-jani.1.nikula@xxxxxxxxx> Cc: David Brownell <david-b@xxxxxxxxxxx> Cc: Daniel Silverstone <dsilvers@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/gpio.h | 2 ++ 1 file changed, 2 insertions(+) diff -puN include/linux/gpio.h~gpiolib-allow-exported-gpio-nodes-to-be-named-using-sysfs-links-update-fix include/linux/gpio.h --- a/include/linux/gpio.h~gpiolib-allow-exported-gpio-nodes-to-be-named-using-sysfs-links-update-fix +++ a/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. * _ Patches currently in -mm which might be from randy.dunlap@xxxxxxxxxx are origin.patch procfs-provide-stack-information-for-threads-v08.patch kcore-register-vmemmap-range.patch spih-add-missing-kernel-doc-for-struct-spi_master.patch gpiolib-allow-exported-gpio-nodes-to-be-named-using-sysfs-links.patch gpiolib-allow-exported-gpio-nodes-to-be-named-using-sysfs-links-update-fix.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html