Skip to contentSkip to conversation

ARM: imx: fix missing include of common.h

PATCH New Ben Dooks 2 participants 2 messages Jun 8, 2016 – Jun 11, 2016

Subsystems (3)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 ARM: imx: fix missing include of common.h

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?

---
Cc: Shawn Guo <[email protected]>
Cc: Sascha Hauer <[email protected]>
Cc: linux-arm-kernel at lists.infradead.org

---
 arch/arm/mach-imx/devices/platform-gpio-mxc.c | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-imx/devices/platform-gpio-mxc.c +1 -0
index 26483fa..cd1fe69 100644
@@ -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)
Signature · 1 line
2.8.1
Applied
#1 lore raw

PATCH 1/1 ARM: imx: fix missing include of common.h

Quoted 6 lines · Ben Dooks

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?

Applied, thanks.