]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Fix compiler warnings for ARM systems.
authorWolfgang Denk <wd@denx.de>
Sun, 18 Nov 2007 16:11:09 +0000 (17:11 +0100)
committerWolfgang Denk <wd@denx.de>
Sun, 18 Nov 2007 16:11:09 +0000 (17:11 +0100)
Signed-off-by: Wolfgang Denk <wd@denx.de>
board/mpl/vcma9/flash.c
board/mpl/vcma9/vcma9.h
board/pleb2/flash.c
board/sbc2410x/flash.c
board/smdk2410/flash.c
board/wepep250/flash.c
cpu/pxa/i2c.c
drivers/s3c4510b_eth.c

index ccfe1768f63617d3a814c90339a720b8f782dcab..d15a19115e511e47860d3f5656a097af453cf36d 100644 (file)
@@ -290,7 +290,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
  * Copy memory to flash
  */
 
-volatile static int write_hword (flash_info_t * info, ulong dest, ushort data)
+static int write_hword (flash_info_t * info, ulong dest, ushort data)
 {
        vu_short *addr = (vu_short *) dest;
        ushort result;
index 7a32343748dd467b956d3df19e096eeefb37cf11..220b7053babe39b207e3ba5c3789f0f8fdf41e90 100644 (file)
@@ -128,7 +128,7 @@ typedef struct {
 } /*__attribute__((__packed__))*/ VCMA9_PLD;
 
 #define VCMA9_PLD_BASE 0x2C000100
-static inline VCMA9_PLD * const VCMA9_GetBase_PLD(void)
+static inline VCMA9_PLD * VCMA9_GetBase_PLD(void)
 {
        return (VCMA9_PLD * const)VCMA9_PLD_BASE;
 }
index 97271d921e49e71f567615e46967cb68c7622e25..5a1eba6b3f7eb050095705c8c1de1094672b216d 100644 (file)
@@ -196,7 +196,7 @@ void flash_print_info (flash_info_t * info)
        int i;
        uchar *boottype;
        uchar *bootletter;
-       uchar *fmt;
+       char *fmt;
        uchar botbootletter[] = "B";
        uchar topbootletter[] = "T";
        uchar botboottype[] = "bottom boot sector";
index f2718f256ff6ca91165231e8318373f72e29f6b0..0c669e4d76c23f02a4db9044a4958f94ff85c5c3 100644 (file)
@@ -288,7 +288,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
  * Copy memory to flash
  */
 
-volatile static int write_hword (flash_info_t * info, ulong dest, ushort data)
+static int write_hword (flash_info_t * info, ulong dest, ushort data)
 {
        vu_short *addr = (vu_short *) dest;
        ushort result;
index 993946be93b8510a280bb0d380161d2835909562..376930bd3cbf4b448fe5dd6b261c06b6fa7b4c34 100644 (file)
@@ -290,7 +290,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
  * Copy memory to flash
  */
 
-volatile static int write_hword (flash_info_t * info, ulong dest, ushort data)
+static int write_hword (flash_info_t * info, ulong dest, ushort data)
 {
        vu_short *addr = (vu_short *) dest;
        ushort result;
index 2a322903d5f9427d4797b7de8a64b277f522f95c..e2e08f742d07c19265a2ff2ff8679afba4cad741 100644 (file)
@@ -44,6 +44,7 @@
 
 #if ( WEP_FLASH_BUS_WIDTH == 1 )
 #  define FLASH_BUS vu_char
+#  define FLASH_BUS_RET u_char
 #  if ( WEP_FLASH_INTERLEAVE == 1 )
 #    define FLASH_CMD( x ) x
 #  else
@@ -53,6 +54,7 @@
 
 #elif ( WEP_FLASH_BUS_WIDTH == 2 )
 #  define FLASH_BUS vu_short
+#  define FLASH_BUS_RET u_short
 #  if ( WEP_FLASH_INTERLEAVE == 1 )
 #    define FLASH_CMD( x ) x
 #  elif ( WEP_FLASH_INTERLEAVE == 2 )
@@ -64,6 +66,7 @@
 
 #elif ( WEP_FLASH_BUS_WIDTH == 4 )
 #  define FLASH_BUS vu_long
+#  define FLASH_BUS_RET u_long
 #  if ( WEP_FLASH_INTERLEAVE == 1 )
 #    define FLASH_CMD( x ) x
 #  elif ( WEP_FLASH_INTERLEAVE == 2 )
@@ -81,7 +84,7 @@
 
 flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
 
-static FLASH_BUS flash_status_reg (void)
+static FLASH_BUS_RET flash_status_reg (void)
 {
 
        FLASH_BUS *addr = (FLASH_BUS *) 0;
index 722d949473f5a81bc3796bf682306665d48303f9..92dd19f95f22f0b703c343761a1d5ae94600cb8b 100644 (file)
@@ -457,7 +457,7 @@ int i2c_write(uchar chip, uint addr, int alen, uchar *buffer, int len)
 
 uchar i2c_reg_read (uchar chip, uchar reg)
 {
-       char buf;
+       uchar buf;
 
        PRINTD(("i2c_reg_read(chip=0x%02x, reg=0x%02x)\n",chip,reg));
        i2c_read(chip, reg, 1, &buf, 1);
index 48901aa12fe18c3ee9df34dd92f6584a43391448..3d9066abeaf781812934a04350c3fb8c31bf0b64 100644 (file)
@@ -175,7 +175,7 @@ s32 eth_send(volatile void *packet, s32 length)
        }
 
        /* copy user data into frame data pointer */
-       memcpy((void *)(eth->m_curTX_FD->m_frameDataPtr.bf.dataPtr),
+       memcpy((void *)((u32)(eth->m_curTX_FD->m_frameDataPtr.bf.dataPtr)),
               (void *)packet,
               length);