1. 14 11月, 2012 17 次提交
  2. 07 11月, 2012 1 次提交
  3. 06 11月, 2012 1 次提交
  4. 05 11月, 2012 21 次提交
    • T
      Merge branch 'master' of git://git.denx.de/u-boot-arm · 6acc7c3c
      Tom Rini 提交于
      6acc7c3c
    • W
      Makefile: use EXTRAVERSION for -rc? tag · a6e8dcaf
      Wolfgang Denk 提交于
      When using SUBLEVEL for the -rc? tag, this results in an ugly version
      string like "2013.01.-rc1" - let's use EXTRAVERSION instead to get the
      simple "2013.01-rc1"
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      Signed-off-by: NTom Rini <trini@ti.com>
      a6e8dcaf
    • T
      Prepare v2013.01-rc1 · 3ae7b240
      Tom Rini 提交于
      Signed-off-by: NTom Rini <trini@ti.com>
      3ae7b240
    • S
      patman: Add additional tags to ignore · 619dd5de
      Simon Glass 提交于
      The BRANCH= tag can be used to indicate the destination branch for a
      commit. Ignore this tag.
      
      Also ignore the gerrit 'Commit-Ready:' tag.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      619dd5de
    • T
      usb gadget ether: Fix warning in is_eth_addr_valid() · 57a87a25
      Tom Rini 提交于
      The gadget ethernet driver needs to keep copies of the MAC address (at
      both endpoints) as strings so it needs a custom function for validation
      of the MAC.  It was not however performing a totally correct check and
      also was emitting a warning about a set but unused variable.  The
      solution to both is that after checking the string contents we use the
      standard test for a valid MAC.
      
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Cc: Marek Vasut <marex@denx.de>
      Signed-off-by: NTom Rini <trini@ti.com>
      Acked-by: NJoe Hershberger <joe.hershberger@ni.com>
      57a87a25
    • K
      ac63f2a2
    • K
      drivers/mtd/nand: sparse fixes · 7d2ab9ae
      Kim Phillips 提交于
      nand_ecc.c:82:5: warning: symbol 'nand_calculate_ecc' was not declared. Should it be static?
      nand_ecc.c:155:5: warning: symbol 'nand_correct_data' was not declared. Should it be static?
      nand_base.c:2854:1: error: directive in argument list
      nand_base.c:2856:1: error: directive in argument list
      Signed-off-by: NKim Phillips <kim.phillips@freescale.com>
      Acked-by: NScott Wood <scottwood@freescale.com>
      7d2ab9ae
    • K
      drivers/mtd/cfi_flash.c: sparse fixes · 11dc4010
      Kim Phillips 提交于
      cfi_flash.c:756:43: warning: Using plain integer as NULL pointer
      cfi_flash.c:1150:52: warning: cast to non-scalar
      cfi_flash.c:1433:46: warning: cast truncates bits from constant value (890089 becomes 89)
      cfi_flash.c:1490:61: warning: cast truncates bits from constant value (1f001f becomes 1f)
      cfi_flash.c:1508:61: warning: cast truncates bits from constant value (10001 becomes 1)
      cfi_flash.c:1738:63: warning: cast truncates bits from constant value (10001 becomes 1)
      cfi_flash.c:1857:6: warning: symbol '__flash_cmd_reset' was not declared. Should it be static?
      Signed-off-by: NKim Phillips <kim.phillips@freescale.com>
      11dc4010
    • K
      drivers/mmc/fsl_esdhc.c: sparse fixes · eafa90a1
      Kim Phillips 提交于
      fsl_esdhc.c:71:6: warning: symbol 'esdhc_xfertyp' was not declared. Should it be static?
      fsl_esdhc.c:413:6: warning: symbol 'set_sysctl' was not declared. Should it be st
      Signed-off-by: NKim Phillips <kim.phillips@freescale.com>
      eafa90a1
    • K
      drivers/mmc/mmc.c: sparse fixes · fdbb873e
      Kim Phillips 提交于
      mmc.c:137:5: warning: symbol 'mmc_send_cmd' was not declared. Should it be static?
      mmc.c:203:5: warning: symbol 'mmc_send_status' was not declared. Should it be static?
      mmc.c:247:5: warning: symbol 'mmc_set_blocklen' was not declared. Should it be static?
      mmc.c:440:5: warning: symbol 'mmc_read_blocks' was not declared. Should it be static?
      mmc.c:510:5: warning: symbol 'mmc_go_idle' was not declared. Should it be static?
      mmc.c:532:1: warning: symbol 'sd_send_op_cond' was not declared. Should it be static?
      mmc.c:597:5: warning: symbol 'mmc_send_op_cond' was not declared. Should it be static?
      mmc.c:661:5: warning: symbol 'mmc_send_ext_csd' was not declared. Should it be static?
      mmc.c:683:5: warning: symbol 'mmc_switch' was not declared. Should it be static?
      mmc.c:705:5: warning: symbol 'mmc_change_freq' was not declared. Should it be static?
      mmc.c:775:5: warning: symbol 'sd_switch' was not declared. Should it be static?
      mmc.c:796:5: warning: symbol 'sd_change_freq' was not declared. Should it be static?
      mmc.c:935:6: warning: symbol 'mmc_set_ios' was not declared. Should it be static?
      mmc.c:953:6: warning: symbol 'mmc_set_bus_width' was not declared. Should it be static?
      mmc.c:1108:26: warning: dubious: !x & y
      mmc.c:960:5: warning: symbol 'mmc_startup' was not declared. Should it be static?
      mmc.c:1243:5: warning: symbol 'mmc_send_if_cond' was not declared. Should it be s
      Signed-off-by: NKim Phillips <kim.phillips@freescale.com>
      fdbb873e
    • K
      drivers/input/input.c: sparse fix · c14e94e5
      Kim Phillips 提交于
      input.c:97:5: warning: symbol 'input_queue_ascii' was not declared. Should it be
      Signed-off-by: NKim Phillips <kim.phillips@freescale.com>
      Acked-by: NSimon Glass <sjg@chromium.org>
      c14e94e5
    • K
      drivers/gpio/mpc83xx_gpio.c: sparse fixes · 8121d3c5
      Kim Phillips 提交于
      mpc83xx_gpio.c:166:26: warning: non-ANSI function declaration of function 'mpc83xx_gpio_init_f'
      mpc83xx_gpio.c:190:26: warning: non-ANSI function declaration of function 'mpc83xx_gpio_init_r'
      Signed-off-by: NKim Phillips <kim.phillips@freescale.com>
      8121d3c5
    • K
      drivers/block/: sparse fixes · 00caa7f5
      Kim Phillips 提交于
      sata_sil.c:371:7: warning: symbol 'sil_sata_rw_lba28' was not declared. Should it be static?
      sata_sil.c:399:7: warning: symbol 'sil_sata_rw_lba48' was not declared. Should it be static?
      sata_sil.c:429:6: warning: symbol 'sil_sata_cmd_flush_cache' was not declared. Should it be static?
      sata_sil.c:441:6: warning: symbol 'sil_sata_cmd_flush_cache_ext' was not declared. Should it be static?
      sata_sil.c:489:7: warning: symbol 'sata_read' was not declared. Should it be static?
      sata_sil.c:505:7: warning: symbol 'sata_write' was not declared. Should it be static?
      sata_sil.c:526:5: warning: symbol 'init_sata' was not declared. Should it be static?
      sata_sil.c:588:5: warning: symbol 'scan_sata' was not declared. Should it be static?
      fsl_sata.c:59:6: warning: symbol 'dprint_buffer' was not declared. Should it be static?
      fsl_sata.c:187:42: warning: incorrect type in assignment (different base types)
      fsl_sata.c:187:42:    expected unsigned int [unsigned] [usertype] cda
      fsl_sata.c:187:42:    got restricted __le32 [usertype] <noident>
      fsl_sata.c:291:6: warning: symbol 'fsl_sata_hardware_reset' was not declared. Should it be static?
      fsl_sata.c:418:27: warning: incorrect type in assignment (different base types)
      fsl_sata.c:418:27:    expected unsigned int [unsigned] [usertype] dba
      fsl_sata.c:418:27:    got restricted __le32 [usertype] <noident>
      fsl_sata.c:424:41: warning: incorrect type in assignment (different base types)
      fsl_sata.c:424:41:    expected unsigned int [unsigned] [usertype] ext_c_ddc
      fsl_sata.c:424:41:    got restricted __le32 [usertype] <noident>
      fsl_sata.c:431:41: warning: incorrect type in assignment (different base types)
      fsl_sata.c:431:41:    expected unsigned int [unsigned] [usertype] ext_c_ddc
      fsl_sata.c:431:41:    got restricted __le32 [usertype] <noident>
      fsl_sata.c:442:22: warning: incorrect type in assignment (different base types)
      fsl_sata.c:442:22:    expected unsigned int [unsigned] [usertype] cda
      fsl_sata.c:442:22:    got restricted __le32 [usertype] <noident>
      fsl_sata.c:446:31: warning: incorrect type in assignment (different base types)
      fsl_sata.c:446:31:    expected unsigned int [unsigned] [usertype] prde_fis_len
      fsl_sata.c:446:31:    got restricted __le32 [usertype] <noident>
      fsl_sata.c:448:22: warning: incorrect type in assignment (different base types)
      fsl_sata.c:448:22:    expected unsigned int [unsigned] [usertype] ttl
      fsl_sata.c:448:22:    got restricted __le32 [usertype] <noident>
      fsl_sata.c:460:28: warning: incorrect type in assignment (different base types)
      fsl_sata.c:460:28:    expected unsigned int [unsigned] [usertype] attribute
      fsl_sata.c:460:28:    got restricted __le32 [usertype] <noident>
      fsl_sata.c:623:6: warning: symbol 'fsl_sata_flush_cache' was not declared. Should it be static?
      fsl_sata.c:667:5: warning: symbol 'fsl_sata_rw_ncq_cmd' was not declared. Should it be static?
      fsl_sata.c:710:6: warning: symbol 'fsl_sata_flush_cache_ext' was not declared. Should it be static?
      fsl_sata.c:725:6: warning: symbol 'fsl_sata_software_reset' was not declared. Should it be static?
      fsl_sata.c:760:5: warning: symbol 'ata_low_level_rw_lba48' was not declared. Should it be static?
      fsl_sata.c:795:5: warning: symbol 'ata_low_level_rw_lba28' was not declared. Should it be static?
      
      the following compiler warnings show up after fixing the above, so
      remove those three functions:
      
      fsl_sata.c:59:13: warning: 'dprint_buffer' defined but not used [-Wunused-function]
      fsl_sata.c:291:13: warning: 'fsl_sata_hardware_reset' defined but not used [-Wunused-function]
      fsl_sata.c:726:13: warning: 'fsl_sata_software_reset' defined but not used [-Wunused-function]
      
      Other than that, the following are fixed by __iomem annotation:
      
      fsl_sata.c:84:39: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:84:39:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:84:39:    got unsigned int volatile *addr
      fsl_sata.c:172:26: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:172:26:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:172:26:    got unsigned int *<noident>
      fsl_sata.c:175:19: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:175:19:    expected unsigned int volatile [noderef] <asn:2>*addr
      fsl_sata.c:175:19:    got unsigned int *<noident>
      fsl_sata.c:181:19: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:181:19:    expected unsigned int volatile [noderef] <asn:2>*addr
      fsl_sata.c:181:19:    got unsigned int *<noident>
      fsl_sata.c:184:26: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:184:26:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:184:26:    got unsigned int *<noident>
      fsl_sata.c:186:19: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:186:19:    expected unsigned int volatile [noderef] <asn:2>*addr
      fsl_sata.c:186:19:    got unsigned int *<noident>
      fsl_sata.c:189:26: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:189:26:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:189:26:    got unsigned int *<noident>
      fsl_sata.c:191:19: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:191:19:    expected unsigned int volatile [noderef] <asn:2>*addr
      fsl_sata.c:191:19:    got unsigned int *<noident>
      fsl_sata.c:194:26: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:194:26:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:194:26:    got unsigned int *<noident>
      fsl_sata.c:195:19: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:195:19:    expected unsigned int volatile [noderef] <asn:2>*addr
      fsl_sata.c:195:19:    got unsigned int *<noident>
      fsl_sata.c:198:19: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:198:19:    expected unsigned int volatile [noderef] <asn:2>*addr
      fsl_sata.c:198:19:    got unsigned int *<noident>
      fsl_sata.c:201:19: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:201:19:    expected unsigned int volatile [noderef] <asn:2>*addr
      fsl_sata.c:201:19:    got unsigned int *<noident>
      fsl_sata.c:204:26: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:204:26:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:204:26:    got unsigned int *<noident>
      fsl_sata.c:205:19: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:205:19:    expected unsigned int volatile [noderef] <asn:2>*addr
      fsl_sata.c:205:19:    got unsigned int *<noident>
      fsl_sata.c:208:26: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:208:26:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:208:26:    got unsigned int *<noident>
      fsl_sata.c:209:19: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:209:19:    expected unsigned int volatile [noderef] <asn:2>*addr
      fsl_sata.c:209:19:    got unsigned int *<noident>
      fsl_sata.c:212:26: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:212:26:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:212:26:    got unsigned int *<noident>
      fsl_sata.c:213:19: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:213:19:    expected unsigned int volatile [noderef] <asn:2>*addr
      fsl_sata.c:213:19:    got unsigned int *<noident>
      fsl_sata.c:216:19: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:216:19:    expected unsigned int volatile [noderef] <asn:2>*addr
      fsl_sata.c:216:19:    got unsigned int *<noident>
      fsl_sata.c:219:19: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:219:19:    expected unsigned int volatile [noderef] <asn:2>*addr
      fsl_sata.c:219:19:    got unsigned int *<noident>
      fsl_sata.c:222:19: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:222:19:    expected unsigned int volatile [noderef] <asn:2>*addr
      fsl_sata.c:222:19:    got unsigned int *<noident>
      fsl_sata.c:225:26: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:225:26:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:225:26:    got unsigned int *<noident>
      fsl_sata.c:227:19: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:227:19:    expected unsigned int volatile [noderef] <asn:2>*addr
      fsl_sata.c:227:19:    got unsigned int *<noident>
      fsl_sata.c:242:26: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:242:26:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:242:26:    got unsigned int *<noident>
      fsl_sata.c:256:32: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:256:32:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:256:32:    got unsigned int *<noident>
      fsl_sata.c:262:26: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:262:26:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:262:26:    got unsigned int *<noident>
      fsl_sata.c:274:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:274:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:274:53:    got unsigned int *<noident>
      fsl_sata.c:275:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:275:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:275:53:    got unsigned int *<noident>
      fsl_sata.c:276:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:276:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:276:53:    got unsigned int *<noident>
      fsl_sata.c:277:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:277:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:277:53:    got unsigned int *<noident>
      fsl_sata.c:278:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:278:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:278:53:    got unsigned int *<noident>
      fsl_sata.c:279:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:279:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:279:53:    got unsigned int *<noident>
      fsl_sata.c:280:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:280:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:280:53:    got unsigned int *<noident>
      fsl_sata.c:281:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:281:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:281:53:    got unsigned int *<noident>
      fsl_sata.c:282:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:282:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:282:53:    got unsigned int *<noident>
      fsl_sata.c:283:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:283:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:283:53:    got unsigned int *<noident>
      fsl_sata.c:284:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:284:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:284:53:    got unsigned int *<noident>
      fsl_sata.c:285:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:285:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:285:53:    got unsigned int *<noident>
      fsl_sata.c:286:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:286:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:286:53:    got unsigned int *<noident>
      fsl_sata.c:287:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:287:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:287:53:    got unsigned int *<noident>
      fsl_sata.c:288:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:288:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:288:53:    got unsigned int *<noident>
      fsl_sata.c:289:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:289:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:289:53:    got unsigned int *<noident>
      fsl_sata.c:290:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:290:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:290:53:    got unsigned int *<noident>
      fsl_sata.c:291:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:291:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:291:53:    got unsigned int *<noident>
      fsl_sata.c:292:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:292:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:292:53:    got unsigned int *<noident>
      fsl_sata.c:293:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:293:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:293:53:    got unsigned int *<noident>
      fsl_sata.c:294:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:294:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:294:53:    got unsigned int *<noident>
      fsl_sata.c:295:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:295:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:295:53:    got unsigned int *<noident>
      fsl_sata.c:296:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:296:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:296:53:    got unsigned int *<noident>
      fsl_sata.c:297:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:297:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:297:53:    got unsigned int *<noident>
      fsl_sata.c:298:53: warning: incorrect type in argument 1 (different address spaces)
      fsl_sata.c:298:53:    expected unsigned int const volatile [noderef] <asn:2>*addr
      fsl_sata.c:298:53:    got unsigned int *<noident>
      Signed-off-by: NKim Phillips <kim.phillips@freescale.com>
      00caa7f5
    • K
      powerpc/mpc83xx: sparse fixes · a2873bde
      Kim Phillips 提交于
      fdt.c:91:78: warning: Using plain integer as NULL pointer
      fdt.c:103:78: warning: Using plain integer as NULL pointer
      speed.c:55:11: warning: symbol 'corecnf_tab' was not declared. Should it be static?
      speed.c:519:5: warning: symbol 'do_clocks' was not declared. Should it be static?
      mpc8313erdb.c:73:17: warning: obsolete struct initializer, use C99 syntax
      mpc8313erdb.c:74:17: warning: obsolete struct initializer, use C99 syntax
      mpc8313erdb.c:75:17: warning: obsolete struct initializer, use C99 syntax
      mpc8313erdb.c:76:17: warning: obsolete struct initializer, use C99 syntax
      mpc8313erdb.c:79:17: warning: obsolete struct initializer, use C99 syntax
      mpc8313erdb.c:80:17: warning: obsolete struct initializer, use C99 syntax
      mpc8313erdb.c:81:17: warning: obsolete struct initializer, use C99 syntax
      mpc8313erdb.c:82:17: warning: obsolete struct initializer, use C99 syntax
      mpc8313erdb.c:85:17: warning: obsolete struct initializer, use C99 syntax
      mpc8313erdb.c:86:17: warning: obsolete struct initializer, use C99 syntax
      mpc8313erdb.c:87:17: warning: obsolete struct initializer, use C99 syntax
      mpc8313erdb.c:88:17: warning: obsolete struct initializer, use C99 syntax
      Signed-off-by: NKim Phillips <kim.phillips@freescale.com>
      a2873bde
    • K
      powerpc/mpc85xx: sparse fixes · e56143e5
      Kim Phillips 提交于
      fsl_corenet_serdes.c:485:6: warning: symbol '__soc_serdes_init' was not declared. Should it be static?
      cpu_init.c:185:6: warning: symbol 'invalidate_cpc' was not declared. Should it be static?
      bcsr.c:28:27: warning: non-ANSI function declaration of function 'enable_8568mds_duart'
      bcsr.c:39:33: warning: non-ANSI function declaration of function 'enable_8568mds_flash_write'
      bcsr.c:46:34: warning: non-ANSI function declaration of function 'disable_8568mds_flash_write'
      bcsr.c:53:29: warning: non-ANSI function declaration of function 'enable_8568mds_qe_mdio'
      bcsr.c:28:33: warning: non-ANSI function declaration of function 'enable_8569mds_flash_write'
      bcsr.c:33:34: warning: non-ANSI function declaration of function 'disable_8569mds_flash_write'
      bcsr.c:38:28: warning: non-ANSI function declaration of function 'enable_8569mds_qe_uec'
      bcsr.c:63:47: warning: non-ANSI function declaration of function 'disable_8569mds_brd_eeprom_write_protect'
      ngpixis.c:245:1: error: directive in argument list
      ngpixis.c:247:1: error: directive in argument list
      Signed-off-by: NKim Phillips <kim.phillips@freescale.com>
      e56143e5
    • K
      arch/powerpc/cpu/mpc8xxx/: sparse fixes · 2ed2e912
      Kim Phillips 提交于
      ctrl_regs.c:31:5: warning: symbol 'fsl_ddr_get_version' was not declared. Should it be static?
      cpu.c:135:14: warning: non-ANSI function declaration of function 'cpu_mask'
      cpu.c:154:18: warning: non-ANSI function declaration of function 'cpu_numcores'
      cpu.c:37:17: warning: symbol 'cpu_type_list' was not declared. Should it be static?
      cpu.c:117:17: warning: symbol 'cpu_type_unknown' was not declared. Should it be static?
      fsl_lbc.c:14:6: warning: symbol '__lbc_sdram_init' was not declared. Should it be static?
      
      and:
      
      lc_common_dimm_params.c:15:1: warning: symbol 'compute_cas_latency_ddr3' was not declared. Should it be static?
      
      making it static produces the following compiler warning:
      
      lc_common_dimm_params.c:15:1: warning: 'compute_cas_latency_ddr3' defined but not used [-Wunused-function]
      
      so we protect it with the preprocessor.
      Signed-off-by: NKim Phillips <kim.phillips@freescale.com>
      2ed2e912
    • K
      lib/vsprintf.c: sparse fixes · 0eb25768
      Kim Phillips 提交于
      vsprintf.c:31:12: warning: symbol 'hex_asc' was not declared. Should it be static?
      vsprintf.c:398:18: warning: Using plain integer as NULL pointer
      Signed-off-by: NKim Phillips <kim.phillips@freescale.com>
      0eb25768
    • K
      lib/zlib: sparse fixes · ee820b5e
      Kim Phillips 提交于
      define Z_NULL to (void *)0 include/u-boot/zlib.h to get rid of most of
      the NULL pointer warnings.
      
      inflate.c:942:1: warning: non-ANSI definition of function 'inflateEnd'
      inflate.c:9:1: warning: non-ANSI definition of function 'inflateReset'
      inflate.c:12:17: warning: Using plain integer as NULL pointer
      inflate.c:12:42: warning: Using plain integer as NULL pointer
      inflate.c:15:17: warning: Using plain integer as NULL pointer
      inflate.c:21:19: warning: Using plain integer as NULL pointer
      inflate.c:35:1: warning: non-ANSI definition of function 'inflateInit2_'
      inflate.c:38:20: warning: Using plain integer as NULL pointer
      inflate.c:41:17: warning: Using plain integer as NULL pointer
      inflate.c:42:17: warning: Using plain integer as NULL pointer
      inflate.c:50:18: warning: Using plain integer as NULL pointer
      inflate.c:65:23: warning: Using plain integer as NULL pointer
      inflate.c:69:21: warning: Using plain integer as NULL pointer
      inflate.c:78:1: warning: non-ANSI definition of function 'inflateInit_'
      inflate.c:86:1: warning: non-ANSI definition of function 'fixedtables'
      inflate.c:108:26: warning: Using plain integer as NULL pointer
      inflate.c:109:1: warning: non-ANSI definition of function 'updatewindow'
      inflate.c:112:30: warning: Using plain integer as NULL pointer
      inflate.c:339:1: warning: non-ANSI definition of function 'inflate'
      inflate.c:349:17: warning: Using plain integer as NULL pointer
      inflate.c:349:42: warning: Using plain integer as NULL pointer
      inflate.c:350:27: warning: Using plain integer as NULL pointer
      inflate.c:369:42: warning: Using plain integer as NULL pointer
      inflate.c:376:32: warning: Using plain integer as NULL pointer
      inflate.c:401:54: warning: Using plain integer as NULL pointer
      inflate.c:419:32: warning: Using plain integer as NULL pointer
      inflate.c:426:32: warning: Using plain integer as NULL pointer
      inflate.c:433:32: warning: Using plain integer as NULL pointer
      inflate.c:444:36: warning: Using plain integer as NULL pointer
      inflate.c:449:37: warning: Using plain integer as NULL pointer
      inflate.c:450:38: warning: Using plain integer as NULL pointer
      inflate.c:457:40: warning: Using plain integer as NULL pointer
      inflate.c:458:47: warning: Using plain integer as NULL pointer
      inflate.c:480:40: warning: Using plain integer as NULL pointer
      inflate.c:481:50: warning: Using plain integer as NULL pointer
      inflate.c:491:37: warning: Using plain integer as NULL pointer
      inflate.c:492:37: warning: Using plain integer as NULL pointer
      inflate.c:501:40: warning: Using plain integer as NULL pointer
      inflate.c:502:53: warning: Using plain integer as NULL pointer
      inflate.c:512:37: warning: Using plain integer as NULL pointer
      inflate.c:513:40: warning: Using plain integer as NULL pointer
      inflate.c:525:32: warning: Using plain integer as NULL pointer
      inflate.c:529:52: warning: Using plain integer as NULL pointer
      inflate.c:543:54: warning: Using plain integer as NULL pointer
      inflate.c:932:17: warning: Using plain integer as NULL pointer
      inflate.c:932:42: warning: Using plain integer as NULL pointer
      inflate.c:935:26: warning: Using plain integer as NULL pointer
      inflate.c:940:19: warning: Using plain integer as NULL pointer
      adler32.c:58:5: warning: non-ANSI definition of function 'adler32'
      adler32.c:81:16: warning: Using plain integer as NULL pointer
      zutil.c:53:9: warning: non-ANSI definition of function 'zcalloc'
      zutil.c:64:9: warning: non-ANSI definition of function 'zcfree'
      inffast.c:70:1: warning: non-ANSI definition of function 'inflate_fast'
      inftrees.c:33:1: warning: non-ANSI definition of function 'inflate_table'
      Signed-off-by: NKim Phillips <kim.phillips@freescale.com>
      ee820b5e
    • K
      drivers/net/: sparse fixes · 960d70c6
      Kim Phillips 提交于
      phy.c:46:5: warning: symbol 'genphy_config_advert' was not declared. Should it be static?
      phy.c:121:5: warning: symbol 'genphy_setup_forced' was not declared. Should it be static?
      phy.c:468:5: warning: symbol 'phy_probe' was not declared. Should it be static?
      phy.c:491:19: warning: symbol 'get_phy_driver' was not declared. Should it be static?
      phy.c:508:19: warning: symbol 'phy_device_create' was not declared. Should it be static?
      phy.c:552:5: warning: symbol 'get_phy_id' was not declared. Should it be static?
      phy.c:584:19: warning: symbol 'get_phy_device' was not declared. Should it be sta
      vitesse.c:126:5: warning: symbol 'vsc8601_config' was not declared. Should it be static?
      vsc7385.c:33:5: warning: symbol 'vsc7385_upload_firmware' was not declared. Should it be static?
      tgec_phy.c:33:5: warning: symbol 'tgec_mdio_write' was not declared. Should it be static?
      tgec_phy.c:75:5: warning: symbol 'tgec_mdio_read' was not declared. Should it be static?
      tgec_phy.c:117:5: warning: symbol 'tgec_mdio_reset' was not declared. Should it be static?
      eth.c:48:6: warning: symbol 'dtsec_configure_serdes' was not declared. Should it be static?
      p4080.c:26:5: warning: symbol 'port_to_devdisr' was not declared. Should it be static?
      Signed-off-by: NKim Phillips <kim.phillips@freescale.com>
      960d70c6
    • K
      net/: sparse fixes · 06370590
      Kim Phillips 提交于
      bootp.c:44:14: warning: symbol 'dhcp_state' was not declared. Should it be static?
      bootp.c:45:15: warning: symbol 'dhcp_leasetime' was not declared. Should it be static?
      bootp.c:46:10: warning: symbol 'NetDHCPServerIP' was not declared. Should it be static?
      arp.c:30:17: warning: symbol 'NetArpWaitReplyIP' was not declared. Should it be static?
      arp.c:37:16: warning: symbol 'NetArpTxPacket' was not declared. Should it be static?
      arp.c:38:17: warning: symbol 'NetArpPacketBuf' was not declared. Should it be static?
      atheros.c:33:19: warning: symbol 'AR8021_driver' was not declared. Should it be static?
      net.c:183:7: warning: symbol 'PktBuf' was not declared. Should it be static?
      net.c:159:21: warning: symbol 'net_state' was not declared. Should it be static?
      ping.c:73:6: warning: symbol 'ping_start' was not declared. Should it be static?
      ping.c:82:13: warning: symbol 'ping_receive' was not declared. Should it be static?
      tftp.c:53:7: warning: symbol 'TftpRRQTimeoutMSecs' was not declared. Should it be static?
      tftp.c:54:5: warning: symbol 'TftpRRQTimeoutCountMax' was not declared. Should it be static?
      eth.c:125:19: warning: symbol 'eth_current' was not declared. Should it be static?
      
      Note: in the ping.c fix, commit a36b12f9
      "net: Move PING out of net.c" mistakenly carried the ifdef CMD_PING
      clause from when it was necessary to avoid warnings when it was embedded
      in net.c.
      Signed-off-by: NKim Phillips <kim.phillips@freescale.com>
      06370590
    • K
      common/misc: sparse fixes · 199adb60
      Kim Phillips 提交于
      command.c:44:38: error: bad constant expression
      dlmalloc.c:1468:2: warning: Using plain integer as NULL pointer
      dlmalloc.c:1468:5: warning: Using plain integer as NULL pointer
      dlmalloc.c:2176:12: warning: Using plain integer as NULL pointer
      dlmalloc.c:2179:31: warning: Using plain integer as NULL pointer
      dlmalloc.c:2382:14: warning: Using plain integer as NULL pointer
      dlmalloc.c:2436:14: warning: Using plain integer as NULL pointer
      dlmalloc.c:2582:31: warning: Using plain integer as NULL pointer
      dlmalloc.c:2585:17: warning: Using plain integer as NULL pointer
      dlmalloc.c:2646:14: warning: Using plain integer as NULL pointer
      dlmalloc.c:2659:19: warning: Using plain integer as NULL pointer
      dlmalloc.c:2692:19: warning: Using plain integer as NULL pointer
      dlmalloc.c:2707:19: warning: Using plain integer as NULL pointer
      dlmalloc.c:2708:14: warning: Using plain integer as NULL pointer
      dlmalloc.c:2786:31: warning: Using plain integer as NULL pointer
      dlmalloc.c:2801:12: warning: Using plain integer as NULL pointer
      dlmalloc.c:2801:22: warning: Using plain integer as NULL pointer
      dlmalloc.c:2926:27: warning: Using plain integer as NULL pointer
      dlmalloc.c:2928:14: warning: Using plain integer as NULL pointer
      dlmalloc.c:2929:12: warning: Using plain integer as NULL pointer
      dlmalloc.c:3075:14: warning: Using plain integer as NULL pointer
      hush.c:292:14: warning: symbol 'last_return_code' was not declared. Should it be static?
      hush.c:293:5: warning: symbol 'nesting_level' was not declared. Should it be static?
      hush.c:2175:20: warning: Using plain integer as NULL pointer
      hush.c:2175:34: warning: Using plain integer as NULL pointer
      hush.c:2210:41: warning: Using plain integer as NULL pointer
      hush.c:2216:45: warning: Using plain integer as NULL pointer
      hush.c:2249:25: warning: Using plain integer as NULL pointer
      hush.c:2332:13: warning: symbol 'new_pipe' was not declared. Should it be static?
      hush.c:2390:5: warning: symbol 'reserved_word' was not declared. Should it be static?
      hush.c:2927:5: warning: symbol 'parse_stream' was not declared. Should it be static?
      hush.c:3127:6: warning: symbol 'mapset' was not declared. Should it be static?
      hush.c:3133:6: warning: symbol 'update_ifs_map' was not declared. Should it be static?
      hush.c:3161:5: warning: symbol 'parse_stream_outer' was not declared. Should it be static?
      hush.c:3295:34: warning: Using plain integer as NULL pointer
      hush.c:3631:5: warning: symbol 'do_showvar' was not declared. Should it be static
      image.c:1282:29: warning: Using plain integer as NULL pointer
      image.c:1315:41: warning: Using plain integer as NULL pointer
      image.c:1330:25: warning: Using plain integer as NULL pointer
      image.c:1706:25: warning: Using plain integer as NULL pointer
      main.c:510:10: warning: symbol 'hist_num' was not declared. Should it be static?
      main.c:512:5: warning: symbol 'hist_list' was not declared. Should it be static?
      main.c:513:6: warning: symbol 'hist_lines' was not declared. Should it be static?
      usb_storage.c:195:6: warning: symbol 'usb_show_progress' was not declared. Should it be static?
      usb_storage.c:440:48: warning: Using plain integer as NULL pointer
      usb_storage.c:503:5: warning: symbol 'usb_stor_BBB_comdat' was not declared. Should it be static?
      usb_storage.c:551:5: warning: symbol 'usb_stor_CB_comdat' was not declared. Should it be static?
      usb_storage.c:629:55: warning: Using plain integer as NULL pointer
      usb_storage.c:620:5: warning: symbol 'usb_stor_CBI_get_status' was not declared. Should it be static?
      usb_storage.c:675:43: warning: Using plain integer as NULL pointer
      usb_storage.c:668:5: warning: symbol 'usb_stor_BBB_clear_endpt_stall' was not declared. Should it be static?
      usb_storage.c:679:5: warning: symbol 'usb_stor_BBB_transport' was not declared. Should it be static?
      usb_storage.c:801:5: warning: symbol 'usb_stor_CB_transport' was not declared. Sh
      xyzModem.c:104:1: warning: symbol 'CYGACC_COMM_IF_GETC_TIMEOUT' was not declared. Should it be static?
      xyzModem.c:122:1: warning: symbol 'CYGACC_COMM_IF_PUTC' was not declared. Should it be static?
      xyzModem.c:169:1: warning: symbol 'parse_num' was not declared. Should it be stat
      
      note: hush.c's nesting_level deleted because not used.
      Signed-off-by: NKim Phillips <kim.phillips@freescale.com>
      199adb60