mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-26 21:54:37 +08:00
8aa5ec6e16
trivial: fdt_support.c:89:64: warning: Using plain integer as NULL pointer fdt_support.c:325:65: warning: Using plain integer as NULL pointer fdt_support.c:352:65: warning: Using plain integer as NULL pointer For the following bad constant expression, We hardcode the max. number of memory banks to four for the foreseeable future, and add an error with instructions on what to do once it's exceeded: fdt_support.c:397:22: error: bad constant expression For the rest below, sparse found a couple of wrong endian conversions in of_bus_default_translate() and fdt_get_base_address(), but otherwise the rest is mostly annotation fixes: fdt_support.c:64:24: warning: cast to restricted __be32 fdt_support.c:192:21: warning: incorrect type in assignment (different base types) fdt_support.c:192:21: expected unsigned int [unsigned] [usertype] tmp fdt_support.c:192:21: got restricted __be32 [usertype] <noident> fdt_support.c:201:21: warning: incorrect type in assignment (different base types) fdt_support.c:201:21: expected unsigned int [unsigned] [addressable] [usertype] tmp fdt_support.c:201:21: got restricted __be32 [usertype] <noident> fdt_support.c:304:13: warning: incorrect type in assignment (different base types) fdt_support.c:304:13: expected unsigned int [unsigned] [usertype] val fdt_support.c:304:13: got restricted __be32 [usertype] <noident> fdt_support.c:333:13: warning: incorrect type in assignment (different base types) fdt_support.c:333:13: expected unsigned int [unsigned] [usertype] val fdt_support.c:333:13: got restricted __be32 [usertype] <noident> fdt_support.c:359:13: warning: incorrect type in assignment (different base types) fdt_support.c:359:13: expected unsigned int [unsigned] [usertype] val fdt_support.c:359:13: got restricted __be32 [usertype] <noident> fdt_support.c:373:21: warning: cast to restricted __be32 fdt_support.c:963:48: warning: incorrect type in argument 1 (different base types) fdt_support.c:963:48: expected restricted __be32 const [usertype] *p fdt_support.c:963:48: got unsigned int [usertype] *<noident> fdt_support.c:971:48: warning: incorrect type in argument 1 (different base types) fdt_support.c:971:48: expected restricted __be32 const [usertype] *p fdt_support.c:971:48: got unsigned int [usertype] *<noident> fdt_support.c:984:29: warning: incorrect type in argument 1 (different base types) fdt_support.c:984:29: expected restricted __be32 const [usertype] *cell fdt_support.c:984:29: got unsigned int [usertype] *addr fdt_support.c:996:32: warning: incorrect type in argument 1 (different base types) fdt_support.c:996:32: expected restricted __be32 const [usertype] *cell fdt_support.c:996:32: got unsigned int [usertype] *addr fdt_support.c:1041:41: warning: incorrect type in argument 1 (different base types) fdt_support.c:1041:41: expected restricted __be32 const [usertype] *cell fdt_support.c:1041:41: got unsigned int [usertype] *addr fdt_support.c:1053:41: warning: incorrect type in argument 2 (different base types) fdt_support.c:1053:41: expected restricted __be32 const [usertype] *range fdt_support.c:1053:41: got unsigned int const [usertype] *[assigned] ranges fdt_support.c:1064:53: warning: incorrect type in argument 2 (different base types) fdt_support.c:1064:53: expected restricted __be32 const [usertype] *addr fdt_support.c:1064:53: got unsigned int [usertype] *addr fdt_support.c:1110:50: warning: incorrect type in argument 2 (different base types) fdt_support.c:1110:50: expected restricted __be32 const [usertype] *addr fdt_support.c:1110:50: got unsigned int *<noident> fdt_support.c:1121:49: warning: incorrect type in argument 1 (different base types) fdt_support.c:1121:49: expected restricted __be32 const [usertype] *cell fdt_support.c:1121:49: got unsigned int *<noident> fdt_support.c:1147:60: warning: incorrect type in argument 2 (different base types) fdt_support.c:1147:60: expected restricted __be32 const [usertype] *addr fdt_support.c:1147:60: got unsigned int *<noident> fdt_support.c:1081:5: warning: symbol '__of_translate_address' was not declared. Should it be static? fdt_support.c:1154:5: error: symbol 'fdt_translate_address' redeclared with different type (originally declared at include/fdt_support.h:95) - incompatible argument 3 (different base types) fdt_support.c: In function 'fdt_node_offset_by_compat_reg': fdt_support.c:1173:17: warning: initialization discards 'const' qualifier from pointer target type [enabled by default] See also linux kernel commit 0131d897 "of/address: use proper endianess in get_flags". Signed-off-by: Kim Phillips <kim.phillips@freescale.com> Cc: Jerry Van Baren <gvb.uboot@gmail.com> |
||
---|---|---|
.. | ||
spl | ||
bedbug.c | ||
bootstage.c | ||
bouncebuf.c | ||
cmd_ambapp.c | ||
cmd_bdinfo.c | ||
cmd_bedbug.c | ||
cmd_bmp.c | ||
cmd_boot.c | ||
cmd_bootldr.c | ||
cmd_bootm.c | ||
cmd_bootstage.c | ||
cmd_cache.c | ||
cmd_cbfs.c | ||
cmd_console.c | ||
cmd_cplbinfo.c | ||
cmd_cramfs.c | ||
cmd_dataflash_mmc_mux.c | ||
cmd_date.c | ||
cmd_dcr.c | ||
cmd_df.c | ||
cmd_dfu.c | ||
cmd_diag.c | ||
cmd_disk.c | ||
cmd_display.c | ||
cmd_dtt.c | ||
cmd_echo.c | ||
cmd_eeprom.c | ||
cmd_elf.c | ||
cmd_exit.c | ||
cmd_ext2.c | ||
cmd_ext4.c | ||
cmd_fat.c | ||
cmd_fdc.c | ||
cmd_fdos.c | ||
cmd_fdt.c | ||
cmd_fitupd.c | ||
cmd_flash.c | ||
cmd_fpga.c | ||
cmd_fs.c | ||
cmd_gettime.c | ||
cmd_gpio.c | ||
cmd_gpt.c | ||
cmd_hash.c | ||
cmd_help.c | ||
cmd_i2c.c | ||
cmd_ide.c | ||
cmd_immap.c | ||
cmd_ini.c | ||
cmd_io.c | ||
cmd_irq.c | ||
cmd_itest.c | ||
cmd_jffs2.c | ||
cmd_ldrinfo.c | ||
cmd_led.c | ||
cmd_license.c | ||
cmd_load.c | ||
cmd_log.c | ||
cmd_mac.c | ||
cmd_md5sum.c | ||
cmd_mdio.c | ||
cmd_mem.c | ||
cmd_mfsl.c | ||
cmd_mii.c | ||
cmd_misc.c | ||
cmd_mmc_spi.c | ||
cmd_mmc.c | ||
cmd_mp.c | ||
cmd_mtdparts.c | ||
cmd_nand.c | ||
cmd_net.c | ||
cmd_nvedit.c | ||
cmd_onenand.c | ||
cmd_otp.c | ||
cmd_part.c | ||
cmd_pci.c | ||
cmd_pcmcia.c | ||
cmd_portio.c | ||
cmd_pxe.c | ||
cmd_read.c | ||
cmd_reginfo.c | ||
cmd_reiser.c | ||
cmd_sata.c | ||
cmd_scsi.c | ||
cmd_setexpr.c | ||
cmd_sf.c | ||
cmd_sha1sum.c | ||
cmd_sound.c | ||
cmd_source.c | ||
cmd_spi.c | ||
cmd_spibootldr.c | ||
cmd_spl.c | ||
cmd_strings.c | ||
cmd_terminal.c | ||
cmd_test.c | ||
cmd_time.c | ||
cmd_tpm.c | ||
cmd_tsi148.c | ||
cmd_ubi.c | ||
cmd_ubifs.c | ||
cmd_universe.c | ||
cmd_unzip.c | ||
cmd_usb.c | ||
cmd_version.c | ||
cmd_ximg.c | ||
cmd_yaffs2.c | ||
cmd_zfs.c | ||
cmd_zip.c | ||
command.c | ||
console.c | ||
ddr_spd.c | ||
dlmalloc.c | ||
dlmalloc.src | ||
edid.c | ||
env_attr.c | ||
env_callback.c | ||
env_common.c | ||
env_dataflash.c | ||
env_eeprom.c | ||
env_embedded.c | ||
env_fat.c | ||
env_flags.c | ||
env_flash.c | ||
env_mmc.c | ||
env_nand.c | ||
env_nowhere.c | ||
env_nvram.c | ||
env_onenand.c | ||
env_remote.c | ||
env_sf.c | ||
exports.c | ||
fdt_support.c | ||
flash.c | ||
hash.c | ||
hush.c | ||
hwconfig.c | ||
image.c | ||
iomux.c | ||
kallsyms.c | ||
kgdb_stubs.c | ||
kgdb.c | ||
lcd.c | ||
lynxkdi.c | ||
main.c | ||
Makefile | ||
memsize.c | ||
menu.c | ||
miiphyutil.c | ||
modem.c | ||
s_record.c | ||
stdio.c | ||
system_map.c | ||
update.c | ||
usb_hub.c | ||
usb_kbd.c | ||
usb_storage.c | ||
usb.c | ||
xyzModem.c |