Commit 8412d814ce8bf5570a2b747f1e7fd321097fe987
1 parent
409ecdc0bb
Exists in
master
and in
55 other branches
Fix compiler warnings for ARM systems.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Showing 8 changed files with 11 additions and 8 deletions Side-by-side Diff
board/mpl/vcma9/flash.c
... | ... | @@ -290,7 +290,7 @@ |
290 | 290 | * Copy memory to flash |
291 | 291 | */ |
292 | 292 | |
293 | -volatile static int write_hword (flash_info_t * info, ulong dest, ushort data) | |
293 | +static int write_hword (flash_info_t * info, ulong dest, ushort data) | |
294 | 294 | { |
295 | 295 | vu_short *addr = (vu_short *) dest; |
296 | 296 | ushort result; |
board/mpl/vcma9/vcma9.h
... | ... | @@ -128,7 +128,7 @@ |
128 | 128 | } /*__attribute__((__packed__))*/ VCMA9_PLD; |
129 | 129 | |
130 | 130 | #define VCMA9_PLD_BASE 0x2C000100 |
131 | -static inline VCMA9_PLD * const VCMA9_GetBase_PLD(void) | |
131 | +static inline VCMA9_PLD * VCMA9_GetBase_PLD(void) | |
132 | 132 | { |
133 | 133 | return (VCMA9_PLD * const)VCMA9_PLD_BASE; |
134 | 134 | } |
board/pleb2/flash.c
board/sbc2410x/flash.c
... | ... | @@ -288,7 +288,7 @@ |
288 | 288 | * Copy memory to flash |
289 | 289 | */ |
290 | 290 | |
291 | -volatile static int write_hword (flash_info_t * info, ulong dest, ushort data) | |
291 | +static int write_hword (flash_info_t * info, ulong dest, ushort data) | |
292 | 292 | { |
293 | 293 | vu_short *addr = (vu_short *) dest; |
294 | 294 | ushort result; |
board/smdk2410/flash.c
... | ... | @@ -290,7 +290,7 @@ |
290 | 290 | * Copy memory to flash |
291 | 291 | */ |
292 | 292 | |
293 | -volatile static int write_hword (flash_info_t * info, ulong dest, ushort data) | |
293 | +static int write_hword (flash_info_t * info, ulong dest, ushort data) | |
294 | 294 | { |
295 | 295 | vu_short *addr = (vu_short *) dest; |
296 | 296 | ushort result; |
board/wepep250/flash.c
... | ... | @@ -44,6 +44,7 @@ |
44 | 44 | |
45 | 45 | #if ( WEP_FLASH_BUS_WIDTH == 1 ) |
46 | 46 | # define FLASH_BUS vu_char |
47 | +# define FLASH_BUS_RET u_char | |
47 | 48 | # if ( WEP_FLASH_INTERLEAVE == 1 ) |
48 | 49 | # define FLASH_CMD( x ) x |
49 | 50 | # else |
... | ... | @@ -53,6 +54,7 @@ |
53 | 54 | |
54 | 55 | #elif ( WEP_FLASH_BUS_WIDTH == 2 ) |
55 | 56 | # define FLASH_BUS vu_short |
57 | +# define FLASH_BUS_RET u_short | |
56 | 58 | # if ( WEP_FLASH_INTERLEAVE == 1 ) |
57 | 59 | # define FLASH_CMD( x ) x |
58 | 60 | # elif ( WEP_FLASH_INTERLEAVE == 2 ) |
... | ... | @@ -64,6 +66,7 @@ |
64 | 66 | |
65 | 67 | #elif ( WEP_FLASH_BUS_WIDTH == 4 ) |
66 | 68 | # define FLASH_BUS vu_long |
69 | +# define FLASH_BUS_RET u_long | |
67 | 70 | # if ( WEP_FLASH_INTERLEAVE == 1 ) |
68 | 71 | # define FLASH_CMD( x ) x |
69 | 72 | # elif ( WEP_FLASH_INTERLEAVE == 2 ) |
... | ... | @@ -81,7 +84,7 @@ |
81 | 84 | |
82 | 85 | flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; |
83 | 86 | |
84 | -static FLASH_BUS flash_status_reg (void) | |
87 | +static FLASH_BUS_RET flash_status_reg (void) | |
85 | 88 | { |
86 | 89 | |
87 | 90 | FLASH_BUS *addr = (FLASH_BUS *) 0; |
cpu/pxa/i2c.c
drivers/s3c4510b_eth.c