Skip to content
Snippets Groups Projects
  1. Sep 09, 2011
    • Simon Glass's avatar
      Add assert() for debug assertions · 21726a7a
      Simon Glass authored
      
      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: default avatarSimon Glass <sjg@chromium.org>
      21726a7a
    • Wolfgang Denk's avatar
      MAKEALL: drop boards listed in boards.cfg · 6a8760d7
      Wolfgang Denk authored
      
      Pick them up automatically using $(boards_by_arch ...)
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      6a8760d7
    • Wolfgang Denk's avatar
      MAKEALL: drop non-existent "versatile" configuration · 1b347fd6
      Wolfgang Denk authored
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
      1b347fd6
    • Wolfgang Denk's avatar
      YAFFS2: fs/yaffs2/yaffs_guts.c - fix build warnings · 068d6f9a
      Wolfgang Denk authored
      
      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: default avatarWolfgang Denk <wd@denx.de>
      068d6f9a
    • Wolfgang Denk's avatar
      YAFFS2: fs/yaffs2/yaffs_guts.c - fix build warnings · 3da04743
      Wolfgang Denk authored
      
      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: default avatarWolfgang Denk <wd@denx.de>
      3da04743
    • Wolfgang Denk's avatar
      YAFFS2: fs/yaffs2/yaffs_nand.[hc] - fix build warnings · fa00e032
      Wolfgang Denk authored
      
      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: default avatarWolfgang Denk <wd@denx.de>
      fa00e032
    • Wolfgang Denk's avatar
      YAFFS2: fs/yaffs2/Makefile - fix build warnings · 9d0265e9
      Wolfgang Denk authored
      
      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: default avatarWolfgang Denk <wd@denx.de>
      9d0265e9
    • Wolfgang Denk's avatar
      YAFFS2: fs/yaffs2/yaffscfg.c - fix build warnings · 6ac360c4
      Wolfgang Denk authored
      
      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: default avatarWolfgang Denk <wd@denx.de>
      6ac360c4
    • Wolfgang Denk's avatar
      YAFFS2: cmd_yaffs2.c - fix build warnings · d1f7a899
      Wolfgang Denk authored
      
      Fix these:
      cmd_yaffs2.c: In function 'do_ywr':
      cmd_yaffs2.c:69: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'ulong'
      cmd_yaffs2.c:69: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'ulong'
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      d1f7a899
    • Helmut Raiger's avatar
      net/eth.c: throw BUG for eth_get_dev_by_name(NULL) · 7e7f903f
      Helmut Raiger authored
      
      eth_get_dev_by_name() is not safe to use for devname being NULL
      as it uses strcmp. This patch makes it fail with a BUG().
      
      Signed-off-by: default avatarHelmut Raiger <helmut.raiger@hale.at>
      Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
      7e7f903f
    • Wolfgang Denk's avatar
      smc911x: Fix build warnings · 24e16644
      Wolfgang Denk authored
      
      Commit 6af1d41a "smc911x MII made available" was missing a few "const"
      qualifiers.  Fix the resulting in build warnings:
      
      smc911x.c: In function 'smc911x_initialize':
      smc911x.c:297: warning: passing argument 2 of 'miiphy_register' from incompatible pointer type
      smc911x.c:297: warning: passing argument 3 of 'miiphy_register' from incompatible pointer type
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Helmut Raiger <helmut.raiger@hale.at>
      24e16644
  2. Sep 07, 2011
  3. Sep 06, 2011
  4. Sep 05, 2011
Loading