From 28175bd6568e6ce686861eed1f0b706ccc3f7f9c Mon Sep 17 00:00:00 2001 From: Joe Hershberger Date: Tue, 5 Jun 2012 11:18:42 -0500 Subject: [PATCH] Xilinx: ARM: Fix build warnings in board.c I/O accessors should be inline anyway Change errant pointer into an int Signed-off-by: Joe Hershberger --- board/xilinx/zynq_common/board.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/board/xilinx/zynq_common/board.c b/board/xilinx/zynq_common/board.c index a85352beb93..f5b65b31278 100644 --- a/board/xilinx/zynq_common/board.c +++ b/board/xilinx/zynq_common/board.c @@ -40,12 +40,12 @@ static u32 In32(u32 InAddress) return temp; } -static void Out8(u32 OutAddress, u8 Value) +static inline void Out8(u32 OutAddress, u8 Value) { *(volatile u8 *) OutAddress = Value; } -static u8 In8(u32 InAddress) +static inline u8 In8(u32 InAddress) { return *(u8 *) InAddress; } @@ -63,7 +63,7 @@ void XIo_Out32(u32 OutAddress, u32 Value) u32 XIo_In32(u32 InAddress) { - volatile u32 * temp = *(volatile u32 *)InAddress; + volatile u32 temp = *(volatile u32 *)InAddress; SYNCHRONIZE_IO; return temp; } -- 2.47.3