Thread (3 messages) 3 messages, 2 authors, 2013-06-28
STALE4730d

[PATCH linux-next] ARM: keystone: fix compilation warning

From: Vincent Stehlé <hidden>
Date: 2013-06-27 12:49:45
Also in: linux-next, lkml
Subsystem: arm port, arm/texas instrument keystone architecture, the rest · Maintainers: Russell King, Nishanth Menon, Santosh Shilimkar, Linus Torvalds

Fix the following compilation warning:

  arch/arm/mach-keystone/keystone.c:74:2: warning: initialization from incompatible pointer type [enabled by default]
  arch/arm/mach-keystone/keystone.c:74:2: warning: (near initialization for ?__mach_desc_KEYSTONE.restart?) [enabled by default]

Signed-off-by: Vincent Stehl? <redacted>
Cc: Robin Holt <redacted>
Cc: Russell King <redacted>
Cc: trivial at kernel.org
---


Hi,

This warning was seen on linux-next tag next-20130627, with config ARM
multi_v7_defconfig.

Best regards,

V.


 arch/arm/mach-keystone/keystone.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-keystone/keystone.c b/arch/arm/mach-keystone/keystone.c
index fe4d9ff..b661c5c 100644
--- a/arch/arm/mach-keystone/keystone.c
+++ b/arch/arm/mach-keystone/keystone.c
@@ -49,7 +49,7 @@ static const char *keystone_match[] __initconst = {
 	NULL,
 };
 
-void keystone_restart(char mode, const char *cmd)
+void keystone_restart(enum reboot_mode mode, const char *cmd)
 {
 	u32 val;
 
-- 
1.7.10.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help