[PATCH] ARM: imx: fix missing include of common.h

Subsystems: arm port, the rest

STALE3735d

2 messages, 2 authors, 2016-06-11 · open the first message on its own page

[PATCH] ARM: imx: fix missing include of common.h

From: Ben Dooks <hidden>
Date: 2016-06-08 17:26:17

Fix the following warning by including ../common.h to provide
the protoype for mxc_register_gpio() :

arch/arm/mach-imx/devices/platform-gpio-mxc.c:11:24: warning: symbol 'mxc_register_gpio' was not declared. Should it be static?

Signed-off-by: Ben Dooks <redacted>
---
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Sascha Hauer <kernel@pengutronix.de>
Cc: linux-arm-kernel at lists.infradead.org
---
 arch/arm/mach-imx/devices/platform-gpio-mxc.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-imx/devices/platform-gpio-mxc.c b/arch/arm/mach-imx/devices/platform-gpio-mxc.c
index 26483fa..cd1fe69 100644
--- a/arch/arm/mach-imx/devices/platform-gpio-mxc.c
+++ b/arch/arm/mach-imx/devices/platform-gpio-mxc.c
@@ -7,6 +7,7 @@
  * Free Software Foundation.
  */
 #include "devices-common.h"
+#include "../common.h"
 
 struct platform_device *__init mxc_register_gpio(char *name, int id,
 	resource_size_t iobase, resource_size_t iosize, int irq, int irq_high)
-- 
2.8.1

[PATCH] ARM: imx: fix missing include of common.h

From: shawnguo@kernel.org (Shawn Guo)
Date: 2016-06-11 14:01:07

On Wed, Jun 08, 2016 at 06:26:17PM +0100, Ben Dooks wrote:
Fix the following warning by including ../common.h to provide
the protoype for mxc_register_gpio() :

arch/arm/mach-imx/devices/platform-gpio-mxc.c:11:24: warning: symbol 'mxc_register_gpio' was not declared. Should it be static?

Signed-off-by: Ben Dooks <redacted>
Applied, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help