command: Remove the cmd_tbl_t typedef
authorSimon Glass <sjg@chromium.org>
Sun, 10 May 2020 17:40:03 +0000 (11:40 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 18 May 2020 22:36:55 +0000 (18:36 -0400)
commit09140113108541b95d340f3c7b6ee597d31ccc73
tree4b4241b799bbbb2eeef4164392442b193af1703f
parent691d719db7183dfb1d1360efed4c5e9f6899095f
command: Remove the cmd_tbl_t typedef

We should not use typedefs in U-Boot. They cannot be used as forward
declarations which means that header files must include the full header to
access them.

Drop the typedef and rename the struct to remove the _s suffix which is
now not useful.

This requires quite a few header-file additions.

Signed-off-by: Simon Glass <sjg@chromium.org>
465 files changed:
arch/arc/lib/bootm.c
arch/arc/lib/reset.c
arch/arm/cpu/arm1136/mx35/generic.c
arch/arm/cpu/arm926ejs/mxs/mxs.c
arch/arm/cpu/arm926ejs/spear/cpu.c
arch/arm/cpu/arm926ejs/spear/spr_misc.c
arch/arm/cpu/armv7/vf610/generic.c
arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c
arch/arm/cpu/armv8/fsl-layerscape/mp.c
arch/arm/include/asm/arch-mx6/clock.h
arch/arm/lib/bootm.c
arch/arm/lib/cmd_boot.c
arch/arm/lib/reset.c
arch/arm/lib/semihosting.c
arch/arm/mach-imx/cmd_bmode.c
arch/arm/mach-imx/cmd_dek.c
arch/arm/mach-imx/cmd_hdmidet.c
arch/arm/mach-imx/cmd_nandbcb.c
arch/arm/mach-imx/hab.c
arch/arm/mach-imx/imx8/ahab.c
arch/arm/mach-imx/imx8/snvs_security_sc.c
arch/arm/mach-imx/imx8m/clock_imx8mq.c
arch/arm/mach-imx/imx_bootaux.c
arch/arm/mach-imx/mx5/clock.c
arch/arm/mach-imx/mx6/clock.c
arch/arm/mach-imx/mx7/clock.c
arch/arm/mach-imx/mx7ulp/clock.c
arch/arm/mach-keystone/cmd_clock.c
arch/arm/mach-keystone/cmd_mon.c
arch/arm/mach-keystone/cmd_poweroff.c
arch/arm/mach-keystone/ddr3.c
arch/arm/mach-keystone/keystone.c
arch/arm/mach-meson/sm.c
arch/arm/mach-omap2/omap3/board.c
arch/arm/mach-omap2/sec-common.c
arch/arm/mach-rockchip/boot_mode.c
arch/arm/mach-rockchip/cpu-info.c
arch/arm/mach-rockchip/rk3288/rk3288.c
arch/arm/mach-socfpga/clock_manager.c
arch/arm/mach-socfpga/misc.c
arch/arm/mach-stm32mp/cmd_stm32key.c
arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c
arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c
arch/arm/mach-tegra/cmd_enterrcm.c
arch/arm/mach-uniphier/boot-device/boot-device.c
arch/arm/mach-uniphier/dram/cmd_ddrmphy.c
arch/arm/mach-uniphier/dram/cmd_ddrphy.c
arch/arm/mach-uniphier/mmc-first-dev.c
arch/arm/mach-zynqmp/mp.c
arch/m68k/cpu/mcf5227x/cpu.c
arch/m68k/cpu/mcf523x/cpu.c
arch/m68k/cpu/mcf52x2/cpu.c
arch/m68k/cpu/mcf530x/cpu.c
arch/m68k/cpu/mcf532x/cpu.c
arch/m68k/cpu/mcf5445x/cpu.c
arch/m68k/cpu/mcf547x_8x/cpu.c
arch/m68k/lib/bootm.c
arch/microblaze/cpu/interrupts.c
arch/microblaze/cpu/spl.c
arch/microblaze/lib/bootm.c
arch/mips/cpu/cpu.c
arch/mips/lib/bootm.c
arch/mips/mach-ath79/ar934x/clk.c
arch/nds32/cpu/n1213/ae3xx/cpu.c
arch/nds32/cpu/n1213/ag101/cpu.c
arch/nds32/lib/boot.c
arch/nios2/cpu/cpu.c
arch/nios2/cpu/interrupts.c
arch/nios2/lib/bootm.c
arch/powerpc/cpu/mpc83xx/cpu.c
arch/powerpc/cpu/mpc83xx/ecc.c
arch/powerpc/cpu/mpc83xx/interrupts.c
arch/powerpc/cpu/mpc83xx/speed.c
arch/powerpc/cpu/mpc85xx/cmd_errata.c
arch/powerpc/cpu/mpc85xx/cpu.c
arch/powerpc/cpu/mpc85xx/interrupts.c
arch/powerpc/cpu/mpc85xx/mp.c
arch/powerpc/cpu/mpc86xx/cpu.c
arch/powerpc/cpu/mpc86xx/interrupts.c
arch/powerpc/cpu/mpc86xx/mp.c
arch/powerpc/cpu/mpc8xx/cpu.c
arch/powerpc/cpu/mpc8xx/immap.c
arch/powerpc/lib/bootm.c
arch/powerpc/lib/kgdb.c
arch/riscv/lib/boot.c
arch/riscv/lib/bootm.c
arch/riscv/lib/reset.c
arch/sh/cpu/sh4/cpu.c
arch/sh/lib/bootm.c
arch/sh/lib/zimageboot.c
arch/x86/include/asm/arch-braswell/fsp/fsp_vpd.h
arch/x86/lib/bootm.c
arch/x86/lib/cmd_boot.c
arch/x86/lib/interrupts.c
arch/x86/lib/zimage.c
board/Arcturus/ucp1020/cmd_arc.c
board/BuS/eb_cpu5282/eb_cpu5282.c
board/LaCie/net2big_v2/net2big_v2.c
board/LaCie/netspace_v2/netspace_v2.c
board/Synology/ds414/cmd_syno.c
board/advantech/imx8qm_rom7720_a1/imx8qm_rom7720_a1.c
board/amlogic/sei510/sei510.c
board/amlogic/sei610/sei610.c
board/aristainetos/aristainetos.c
board/bosch/guardian/board.c
board/boundary/nitrogen6x/nitrogen6x.c
board/buffalo/lsxl/lsxl.c
board/cavium/thunderx/atf.c
board/corscience/tricorder/tricorder-eeprom.c
board/egnite/ethernut5/ethernut5_pwrman.c
board/esd/vme8349/caddy.c
board/freescale/c29xpcie/cpld.c
board/freescale/common/cmd_esbc_validate.c
board/freescale/common/ngpixis.c
board/freescale/common/pixis.c
board/freescale/common/qixis.c
board/freescale/common/sys_eeprom.c
board/freescale/common/vid.c
board/freescale/imx8mm_evk/imx8mm_evk.c
board/freescale/imx8mm_evk/spl.c
board/freescale/imx8mn_evk/imx8mn_evk.c
board/freescale/imx8mn_evk/spl.c
board/freescale/imx8mp_evk/imx8mp_evk.c
board/freescale/imx8mp_evk/spl.c
board/freescale/imxrt1020-evk/imxrt1020-evk.c
board/freescale/ls1012ardb/ls1012ardb.c
board/freescale/ls1021atwr/ls1021atwr.c
board/freescale/ls1043ardb/cpld.c
board/freescale/ls1046ardb/cpld.c
board/freescale/p1010rdb/p1010rdb.c
board/freescale/p2041rdb/cpld.c
board/freescale/t102xrdb/cpld.c
board/freescale/t102xrdb/t102xrdb.c
board/freescale/t104xrdb/cpld.c
board/freescale/t208xrdb/cpld.c
board/freescale/t4qds/t4240qds.c
board/freescale/t4rdb/cpld.c
board/gardena/smart-gateway-mt7688/board.c
board/gateworks/gw_ventana/eeprom.c
board/gateworks/gw_ventana/gsc.c
board/gdsys/a38x/controlcenterdc.c
board/gdsys/a38x/hydra.c
board/gdsys/common/cmd_ioloop.c
board/gdsys/common/osd.c
board/gdsys/common/osd_cmd.c
board/gdsys/mpc8308/gazerbeam.c
board/gdsys/p1022/controlcenterd.c
board/google/chromebook_coral/coral.c
board/keymile/common/common.c
board/mediatek/mt7622/mt7622_rfb.c
board/phytium/durian/durian.c
board/renesas/sh7752evb/sh7752evb.c
board/renesas/sh7753evb/sh7753evb.c
board/renesas/sh7757lcr/sh7757lcr.c
board/renesas/stout/cpld.c
board/renesas/ulcb/cpld.c
board/rockchip/kylin_rk3036/kylin_rk3036.c
board/samsung/common/board.c
board/samsung/common/misc.c
board/siemens/capricorn/board.c
board/siemens/common/board.c
board/siemens/draco/board.c
board/siemens/taurus/taurus.c
board/sifive/fu540/fu540.c
board/sks-kinkel/sksimx6/sksimx6.c
board/solidrun/clearfog/clearfog.c
board/st/common/cmd_stboard.c
board/st/stm32f429-discovery/stm32f429-discovery.c
board/st/stm32f429-evaluation/stm32f429-evaluation.c
board/st/stm32f469-discovery/stm32f469-discovery.c
board/synopsys/emsdp/emsdp.c
board/synopsys/hsdk/hsdk.c
board/syteco/zmx25/zmx25.c
board/technexion/pico-imx6/pico-imx6.c
board/theadorable/theadorable.c
board/ti/j721e/evm.c
board/ti/sdp4430/cmd_bat.c
board/toradex/apalis-tk1/apalis-tk1.c
board/toradex/apalis_imx6/do_fuse.c
board/toradex/apalis_imx6/pf0100.c
board/toradex/colibri_imx6/do_fuse.c
board/toradex/colibri_imx6/pf0100.c
board/toradex/common/tdx-cfg-block.c
board/toradex/verdin-imx8mm/spl.c
board/varisys/common/sys_eeprom.c
board/work-microwave/work_92105/work_92105_display.c
board/xilinx/common/board.c
board/xilinx/microblaze-generic/microblaze-generic.c
board/xilinx/versal/board.c
board/xilinx/zynq/cmds.c
board/xilinx/zynqmp/cmds.c
board/xilinx/zynqmp/zynqmp.c
cmd/ab_select.c
cmd/abootimg.c
cmd/acpi.c
cmd/adc.c
cmd/adtimg.c
cmd/aes.c
cmd/arm/exception.c
cmd/arm/exception64.c
cmd/armflash.c
cmd/avb.c
cmd/axi.c
cmd/bcb.c
cmd/bdinfo.c
cmd/bedbug.c
cmd/bind.c
cmd/binop.c
cmd/blk_common.c
cmd/blkcache.c
cmd/blob.c
cmd/bmp.c
cmd/boot.c
cmd/bootcount.c
cmd/bootefi.c
cmd/booti.c
cmd/bootm.c
cmd/bootmenu.c
cmd/bootstage.c
cmd/bootz.c
cmd/btrfs.c
cmd/cache.c
cmd/cbfs.c
cmd/clk.c
cmd/cls.c
cmd/config.c
cmd/conitrace.c
cmd/console.c
cmd/cpu.c
cmd/cramfs.c
cmd/cros_ec.c
cmd/dataflash_mmc_mux.c
cmd/date.c
cmd/demo.c
cmd/dfu.c
cmd/diag.c
cmd/disk.c
cmd/dm.c
cmd/echo.c
cmd/eeprom.c
cmd/efi.c
cmd/efidebug.c
cmd/elf.c
cmd/ethsw.c
cmd/exit.c
cmd/ext2.c
cmd/ext4.c
cmd/fastboot.c
cmd/fat.c
cmd/fdt.c
cmd/fitupd.c
cmd/flash.c
cmd/fpga.c
cmd/fpgad.c
cmd/fs.c
cmd/fs_uuid.c
cmd/fuse.c
cmd/gettime.c
cmd/gpio.c
cmd/gpt.c
cmd/hash.c
cmd/help.c
cmd/host.c
cmd/i2c.c
cmd/ide.c
cmd/ini.c
cmd/io.c
cmd/iotrace.c
cmd/irq.c
cmd/itest.c
cmd/jffs2.c
cmd/led.c
cmd/legacy_led.c
cmd/license.c
cmd/load.c
cmd/log.c
cmd/lzmadec.c
cmd/mac.c
cmd/md5sum.c
cmd/mdio.c
cmd/mem.c
cmd/mfsl.c
cmd/mii.c
cmd/misc.c
cmd/mmc.c
cmd/mp.c
cmd/mtd.c
cmd/mtdparts.c
cmd/mvebu/bubt.c
cmd/nand.c
cmd/net.c
cmd/nvedit.c
cmd/nvedit_efi.c
cmd/nvme.c
cmd/onenand.c
cmd/osd.c
cmd/part.c
cmd/pcap.c
cmd/pci.c
cmd/pinmux.c
cmd/pmc.c
cmd/pmic.c
cmd/pxe.c
cmd/pxe_utils.c
cmd/pxe_utils.h
cmd/qfw.c
cmd/read.c
cmd/reginfo.c
cmd/regulator.c
cmd/reiser.c
cmd/remoteproc.c
cmd/riscv/exception.c
cmd/rng.c
cmd/rockusb.c
cmd/sata.c
cmd/sb.c
cmd/scsi.c
cmd/setexpr.c
cmd/sf.c
cmd/sha1sum.c
cmd/smccc.c
cmd/sound.c
cmd/source.c
cmd/spi.c
cmd/spl.c
cmd/strings.c
cmd/sysboot.c
cmd/terminal.c
cmd/test.c
cmd/thordown.c
cmd/ti/ddr3.c
cmd/time.c
cmd/tlv_eeprom.c
cmd/tpm-common.c
cmd/tpm-user-utils.h
cmd/tpm-v1.c
cmd/tpm-v2.c
cmd/tpm_test.c
cmd/trace.c
cmd/tsi148.c
cmd/ubi.c
cmd/ubifs.c
cmd/ufs.c
cmd/universe.c
cmd/unlz4.c
cmd/unzip.c
cmd/usb.c
cmd/usb_gadget_sdp.c
cmd/usb_mass_storage.c
cmd/version.c
cmd/virtio.c
cmd/w1.c
cmd/wdt.c
cmd/wol.c
cmd/x86/exception.c
cmd/x86/fsp.c
cmd/x86/hob.c
cmd/x86/mtrr.c
cmd/ximg.c
cmd/yaffs2.c
cmd/zfs.c
cmd/zip.c
common/board_r.c
common/bootm.c
common/bootm_os.c
common/cli.c
common/cli_hush.c
common/cli_readline.c
common/command.c
common/dfu.c
common/exports.c
common/flash.c
common/hash.c
common/image-fdt.c
common/image.c
common/kgdb.c
common/lcd_console.c
doc/README.commands
doc/README.standalone
drivers/clk/mpc83xx_clk.c
drivers/ddr/fsl/interactive.c
drivers/firmware/psci.c
drivers/gpio/pca953x.c
drivers/gpio/tca642x.c
drivers/misc/altera_sysid.c
drivers/misc/ds4510.c
drivers/misc/rockchip-efuse.c
drivers/net/e1000.c
drivers/net/e1000.h
drivers/net/e1000_spi.c
drivers/net/fsl-mc/mc.c
drivers/net/pfe_eth/pfe_cmd.c
drivers/net/phy/b53.c
drivers/net/phy/mv88e6352.c
drivers/net/vsc9953.c
drivers/power/axp152.c
drivers/power/axp209.c
drivers/power/axp221.c
drivers/power/axp809.c
drivers/power/axp818.c
drivers/power/mt6323.c
drivers/power/power_core.c
drivers/power/twl4030.c
drivers/qe/qe.c
drivers/ram/stm32mp1/stm32mp1_interactive.c
drivers/sysreset/sysreset-uclass.c
drivers/sysreset/sysreset_mpc83xx.c
drivers/usb/gadget/f_fastboot.c
drivers/usb/gadget/f_rockusb.c
drivers/video/cfb_console.c
drivers/video/lg4573.c
drivers/video/vidconsole-uclass.c
examples/api/demo.c
examples/api/libgenwrap.c
examples/standalone/atmel_df_pow2.c
examples/standalone/hello_world.c
examples/standalone/smc91111_eeprom.c
examples/standalone/smc911x_eeprom.c
examples/standalone/stubs.c
fs/fs.c
include/_exports.h
include/bedbug/type.h
include/blk.h
include/bootm.h
include/command.h
include/cpu_func.h
include/exception.h
include/exports.h
include/ext_common.h
include/fs.h
include/fsl_ddr.h
include/fsl_validate.h
include/hash.h
include/image.h
include/kgdb.h
include/log.h
include/net.h
include/search.h
include/test/suites.h
include/test/ut.h
include/tpm-common.h
include/vxworks.h
lib/dhry/cmd_dhry.c
lib/efi_loader/efi_variable.c
lib/fdtdec_test.c
lib/hashtable.c
lib/uuid.c
net/arp.c
net/fastboot.c
test/bloblist.c
test/cmd_ut.c
test/command_ut.c
test/compression.c
test/dm/test-main.c
test/env/cmd_ut_env.c
test/lib/cmd_ut_lib.c
test/log/log_test.c
test/log/test-main.c
test/optee/cmd_ut_optee.c
test/overlay/cmd_ut_overlay.c
test/print_ut.c
test/str_ut.c
test/time_ut.c
test/unicode_ut.c
tools/proftool.c