Thread (4 messages) 4 messages, 4 authors, 2013-07-23
STALE4703d

[PATCH linux-next] arm: zynq: fix compilation warning

From: Vincent Stehlé <hidden>
Date: 2013-06-27 12:43:13
Also in: linux-next, lkml
Subsystem: arm port, arm/zynq architecture, the rest · Maintainers: Russell King, Michal Simek, Linus Torvalds

Fix the following compilation warning:

  arch/arm/mach-zynq/common.c:110:2: warning: initialization from incompatible pointer type [enabled by default]
  arch/arm/mach-zynq/common.c:110:2: warning: (near initialization for ?__mach_desc_XILINX_EP107.restart?) [enabled by default]

Signed-off-by: Vincent Stehl? <redacted>
Cc: Robin Holt <redacted>
Cc: Michal Simek <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-zynq/common.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-zynq/common.c b/arch/arm/mach-zynq/common.c
index 4130e65..8ea5f11 100644
--- a/arch/arm/mach-zynq/common.c
+++ b/arch/arm/mach-zynq/common.c
@@ -91,7 +91,7 @@ static void __init zynq_map_io(void)
 	zynq_scu_map_io();
 }
 
-static void zynq_system_reset(char mode, const char *cmd)
+static void zynq_system_reset(enum reboot_mode mode, const char *cmd)
 {
 	zynq_slcr_system_reset();
 }
-- 
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