From: Joe Hershberger Date: Tue, 5 Jun 2012 16:18:42 +0000 (-0500) Subject: Xilinx: ARM: Fix build warnings in board.c X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=28175bd6568e6ce686861eed1f0b706ccc3f7f9c;p=thirdparty%2Fu-boot.git 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 --- 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; }