1. 13 9月, 2011 2 次提交
  2. 12 9月, 2011 13 次提交
  3. 11 9月, 2011 1 次提交
    • W
      ARM: hawkboard: fix compilation of nand_spl · 3b717552
      Wolfgang Denk 提交于
      Fix build problem:
      
      nand_spl/board/davinci/da8xxevm/hawkboard_nand_spl.c: In function 'board_init_f':
      nand_spl/board/davinci/da8xxevm/hawkboard_nand_spl.c:132: warning: implicit declaration of function 'nand_boot'
      nand_spl/board/davinci/da8xxevm/hawkboard_nand_spl.c:133: warning: 'noreturn' function does return
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      Cc: Syed Mohammed Khasim <sm.khasim@gmail.com>
      Cc: Sughosh Ganu <urwithsughosh@gmail.com>
      Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
      3b717552
  4. 10 9月, 2011 24 次提交
    • W
      cm4008, cm41xx: fix build warnings · bd6ce9d1
      Wolfgang Denk 提交于
      Fix these:
      cm4008.c: In function 'board_eth_init':
      cm4008.c:79: warning: implicit declaration of function 'ks8695_eth_initialize'
      
      cm41xx.c: In function 'board_eth_init':
      cm41xx.c:79: warning: implicit declaration of function 'ks8695_eth_initialize'
      
      While we are at it, sort include list in netdev.h
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      Cc: Greg Ungerer <greg.ungerer@opengear.com>
      bd6ce9d1
    • W
      tegra2: fix warning: "assert" redefined · 3aa7782a
      Wolfgang Denk 提交于
      Commit 21726a7a "Add assert() for debug assertions" caused build
      warnings for all tegra2 based boards:
      
      clock.c:36:1: warning: "assert" redefined
      In file included from clock.c:29:
      include/common.h:144:1: warning: this is the location of the previous definition
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      Cc: Simon Glass <sjg@chromium.org>
      3aa7782a
    • S
      ARM: hawkboard_nand: fix compilation of nand_spl · 5fb5e8c5
      Stefano Babic 提交于
      get_ram_size() is called, but memsize.c is not compiled.
      Signed-off-by: NStefano Babic <sbabic@denx.de>
      5fb5e8c5
    • G
      KS8695: convert KS8695 eth driver to CONFIG_MULTI_ETH · 1e8ff714
      Greg Ungerer 提交于
      Trivial conversion of the ks8695eth driver to a CONFIG_MULTI_ETH type
      driver.
      Signed-off-by: NGreg Ungerer <greg.ungerer@opengear.com>
      1e8ff714
    • G
      CM41xx: fix signedness of env bootargs string pointer · a00e749d
      Greg Ungerer 提交于
      The pointer to the flash based bootargs should be a "char *", not unsigned.
      Fixes:
      
      cm41xx.c: In function ‘env_flash_cmdline’:
      cm41xx.c:67: warning: pointer targets in passing argument 2 of ‘setenv’ differ in signedness
      Signed-off-by: NGreg Ungerer <greg.ungerer@opengear.com>
      a00e749d
    • G
      CM4008: fix signedness of env bootargs string pointer · 61a1926a
      Greg Ungerer 提交于
      The pointer to the flash based bootargs should be a "char *", not unsigned.
      Fixes:
      
      cm4008.c: In function ‘env_flash_cmdline’:
      cm4008.c:67: warning: pointer targets in passing argument 2 of ‘setenv’ differ in signedness
      Signed-off-by: NGreg Ungerer <greg.ungerer@opengear.com>
      61a1926a
    • W
      utx8245: fix build breakage due to assert() · ea95cb73
      Wolfgang Denk 提交于
      Commit 21726a7a "Add assert() for debug assertions" broke building the
      utx8245 board:
      
      dlmalloc.c: In function 'do_check_chunk':
      dlmalloc.c:1660: error: 'sz' undeclared (first use in this function)
      dlmalloc.c:1660: error: (Each undeclared identifier is reported only once
      dlmalloc.c:1660: error: for each function it appears in.)
      dlmalloc.c: In function 'do_check_free_chunk':
      dlmalloc.c:1689: error: 'next' undeclared (first use in this function)
      dlmalloc.c: In function 'do_check_malloced_chunk':
      dlmalloc.c:1748: error: 'sz' undeclared (first use in this function)
      dlmalloc.c:1750: error: 'room' undeclared (first use in this function)
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      Cc: Simon Glass <sjg@chromium.org>
      ea95cb73
    • W
      UBIFS: fix warning: format '%lX' expects type 'long unsigned int' · aaf6935b
      Wolfgang Denk 提交于
      Commit 46d7274c "UBIFS: Change ubifsload to set the filesize variable"
      introduced the follwing compiler warning:
      
      ubifs.c: In function 'ubifs_load':
      ubifs.c:742: warning: format '%lX' expects type 'long unsigned int', but argument 3 has type 'u32'
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      Cc: Bastian Ruppert <Bastian.Ruppert@Sewerin.de>
      aaf6935b
    • W
      Fix warning: "assert" redefined · 5ae0dea3
      Wolfgang Denk 提交于
      Commit 21726a7a "Add assert() for debug assertions" caused build
      warnings for many systems:
      
      In file included from bedbug.c:6:
      /home/wd/git/u-boot/work/include/bedbug/bedbug.h:24:1: warning: "assert" redefined
      In file included from bedbug.c:3:
      /home/wd/git/u-boot/work/include/common.h:144:1: warning: this is the location of the previous definition
      In file included from cmd_bedbug.c:10:
      /home/wd/git/u-boot/work/include/bedbug/bedbug.h:24:1: warning: "assert" redefined
      In file included from cmd_bedbug.c:5:
      /home/wd/git/u-boot/work/include/common.h:144:1: warning: this is the location of the previous definition
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      Cc: Simon Glass <sjg@chromium.org>
      Acked-by: NSimon Glass <sjg@chromium.org>
      5ae0dea3
    • W
      Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx · d786882d
      Wolfgang Denk 提交于
      * 'master' of git://git.denx.de/u-boot-mpc85xx:
        powerpc/mpc8610hpcd: set pci1_hose.config_table after fsl_setup_hose
        powerpc/mpc8548cds: set pci1_hose.config_table after fsl_setup_hose
        powerpc/mpc8568mds: set pci1_hose.config_table after fsl_setup_hose
      d786882d
    • G
      CM4000: fix broken flash base for OpenGear boards · 297f18ac
      Greg Ungerer 提交于
      Use _bss_start_ofs as the size of the boot loader code+data that we want
      to protect in the flash. This replaces use of the no longer defined
      _armboot_start.
      
      Fixes:
      
      flash.c: In function ‘flash_init’:
      flash.c:75: error: ‘_bss_start’ undeclared (first use in this function)
      flash.c:75: error: (Each undeclared identifier is reported only once
      flash.c:75: error: for each function it appears in.)
      flash.c:75: error: ‘_armboot_start’ undeclared (first use in this function)
      
      Signed-off-by: <greg.ungerer@opengear.com>
      297f18ac
    • G
      CM4000: fix missing RAM definitions for OpenGear boards · a34ebbda
      Greg Ungerer 提交于
      The OpenGear boards CM4008, CM4116 and CM4148 need their DRAM base
      and RAM stack base addresses defined.
      
      Fixes:
      
      board.c: In function ‘__dram_init_banksize’:
      board.c:227: error: ‘CONFIG_SYS_SDRAM_BASE’ undeclared (first use in this function)
      board.c:227: error: (Each undeclared identifier is reported only once
      board.c:227: error: for each function it appears in.)
      board.c: In function ‘board_init_f’:
      board.c:270: error: ‘CONFIG_SYS_INIT_SP_ADDR’ undeclared (first use in this function)
      board.c:303: error: ‘CONFIG_SYS_SDRAM_BASE’ undeclared (first use in this function)
      Signed-off-by: NGreg Ungerer <greg.ungerer@opengear.com>
      a34ebbda
    • G
      KS8695: move TIMER_ definitions before code use · 3a52cfa5
      Greg Ungerer 提交于
      Move the TIMER_ definitions before they are used in KS8695 timer.c code.
      Fixes:
      
      timer.c: In function ‘timer_init’:
      timer.c:37: error: ‘TIMER_COUNT’ undeclared (first use in this function)
      timer.c:37: error: (Each undeclared identifier is reported only once
      timer.c:37: error: for each function it appears in.)
      timer.c:38: error: ‘TIMER_PULSE’ undeclared (first use in this function)
      Signed-off-by: NGreg Ungerer <greg.ungerer@opengear.com>
      3a52cfa5
    • V
      phylib: remove a couple of redundant code lines · 041c5422
      Vladimir Zapolskiy 提交于
      This change slightly improves readability of the phydev speed/duplex
      assignment logic.
      Signed-off-by: NVladimir Zapolskiy <vz@mleia.com>
      Acked-by: NDetlev Zundel <dzu@denx.de>
      041c5422
    • V
      phylib: reset mii bus only if reset handler is registered · e3a77218
      Vladimir Zapolskiy 提交于
      This change allows to cope with a mii bus device registered using
      miiphy_register(), which doesn't assign a default reset handler.
      Signed-off-by: NVladimir Zapolskiy <vz@mleia.com>
      Acked-by: NDetlev Zundel <dzu@denx.de>
      e3a77218
    • B
      UBIFS: Change ubifsload to set the filesize variable · 46d7274c
      Bastian Ruppert 提交于
      This is the same behaviour like tftp or fatload command.
      Signed-off-by: NBastian Ruppert <Bastian.Ruppert@Sewerin.de>
      CC: kmpark@infradead.org
      Acked-by: NDetlev Zundel <dzu@denx.de>
      46d7274c
    • S
      Add assert() for debug assertions · 21726a7a
      Simon Glass 提交于
      assert() is like BUG_ON() but compiles to nothing unless DEBUG is defined.
      This is useful when a condition is an error but a board reset is unlikely
      to fix it, so it is better to soldier on in hope. Assertion failures should
      be caught during development/test.
      
      It turns out that assert() is defined separately in a few places in U-Boot
      with various meanings. This patch cleans up some of these.
      
      Build errors exposed by this change (and defining DEBUG) are also fixed in
      this patch.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      21726a7a
    • W
      MAKEALL: drop boards listed in boards.cfg · 6a8760d7
      Wolfgang Denk 提交于
      Pick them up automatically using $(boards_by_arch ...)
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      6a8760d7
    • W
      MAKEALL: drop non-existent "versatile" configuration · 1b347fd6
      Wolfgang Denk 提交于
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
      1b347fd6
    • W
      YAFFS2: fs/yaffs2/yaffs_guts.c - fix build warnings · 068d6f9a
      Wolfgang Denk 提交于
      Fix these:
      yaffs_guts.c: In function 'yaffs_ReadDataFromFile':
      yaffs_guts.c:4622: warning: pointer targets in passing argument 3 of 'yaffs_AddrToChunk' differ in signedness
      yaffs_guts.c:4622: warning: pointer targets in passing argument 4 of 'yaffs_AddrToChunk' differ in signedness
      yaffs_guts.c: In function 'yaffs_WriteDataToFile':
      yaffs_guts.c:4745: warning: pointer targets in passing argument 3 of 'yaffs_AddrToChunk' differ in signedness
      yaffs_guts.c:4745: warning: pointer targets in passing argument 4 of 'yaffs_AddrToChunk' differ in signedness
      yaffs_guts.c: In function 'yaffs_ResizeFile':
      yaffs_guts.c:4968: warning: pointer targets in passing argument 3 of 'yaffs_AddrToChunk' differ in signedness
      yaffs_guts.c:4968: warning: pointer targets in passing argument 4 of 'yaffs_AddrToChunk' differ in signedness
      yaffs_guts.c: In function 'yaffs_GutsInitialise':
      yaffs_guts.c:7235: warning: assignment from incompatible pointer type
      yaffs_guts.c: In function 'yaffs_CreateNewObject':
      yaffs_guts.c:2143: warning: 'tn' may be used uninitialized in this function
      yaffs_guts.c: In function 'yaffs_MknodObject':
      yaffs_guts.c:2258: warning: 'str' may be used uninitialized in this function
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      068d6f9a
    • W
      YAFFS2: fs/yaffs2/yaffs_guts.c - fix build warnings · 3da04743
      Wolfgang Denk 提交于
      Fix these:
      yaffs_guts.c: At top level:
      yaffs_guts.c:400: warning: 'yaffs_SkipFullVerification' defined but not used
      
      Testing shows no changes of the image sizes.
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      3da04743
    • W
      YAFFS2: fs/yaffs2/yaffs_nand.[hc] - fix build warnings · fa00e032
      Wolfgang Denk 提交于
      Fix these:
      yaffs_guts.c: In function 'yaffs_Scan':
      yaffs_guts.c:5436: warning: pointer targets in passing argument 4 of 'yaffs_QueryInitialBlockState' differ in signedness
      yaffs_guts.c: In function 'yaffs_ScanBackwards':
      yaffs_guts.c:6017: warning: pointer targets in passing argument 4 of 'yaffs_QueryInitialBlockState' differ in signedness
      yaffs_nand.c: In function 'yaffs_QueryInitialBlockState':
      yaffs_nand.c:109: warning: pointer targets in passing argument 4 of 'dev->queryNANDBlock' differ in signedness
      yaffs_nand.c:113: warning: pointer targets in passing argument 4 of 'yaffs_TagsCompatabilityQueryNANDBlock' differ in signedness
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      fa00e032
    • W
      YAFFS2: fs/yaffs2/Makefile - fix build warnings · 9d0265e9
      Wolfgang Denk 提交于
      Drop the "-DNO_Y_INLINE" setting to fix these:
      yaffs_guts.h:806: warning: 'yaffs_GetBlockInfo' defined but not used
      
      Impact on image size is negligible - for the VCMA9 board the text
      segment size grew from 496353 to 496357 bytes (i. e. 0.0008%);
      total image size even remained constant.
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      9d0265e9
    • W
      YAFFS2: fs/yaffs2/yaffscfg.c - fix build warnings · 6ac360c4
      Wolfgang Denk 提交于
      Fix these:
      yaffscfg.c: In function 'cmd_yaffs_mread_file':
      yaffscfg.c:316: warning: format '%08x' expects type 'unsigned int', but argument 3 has type 'char *'
      yaffscfg.c: In function 'cmd_yaffs_ls': yaffscfg.c:371: warning: format '%7d' expects type 'int', but argument 3 has type 'off_t'
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      6ac360c4