1
0
Fork 0
mirror of https://github.com/u-boot/u-boot.git synced 2025-04-27 16:01:27 +00:00

cmd: Remove <common.h> and add needed includes

Remove <common.h> from all "cmd/" files and when needed add
missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Tom Rini 2024-04-27 08:10:59 -06:00
parent 752ed08675
commit 301bac6047
205 changed files with 65 additions and 205 deletions

View file

@ -3,10 +3,10 @@
/* Console version of the game "2048" for GNU/Linux */
#include <common.h>
#include <cli.h>
#include <command.h>
#include <rand.h>
#include <vsprintf.h>
#include <linux/delay.h>
#define SIZE 4

View file

@ -3,7 +3,6 @@
* Copyright (C) 2017 The Android Open Source Project
*/
#include <common.h>
#include <android_ab.h>
#include <command.h>
#include <env.h>

View file

@ -5,7 +5,6 @@
*/
#include <android_image.h>
#include <common.h>
#include <command.h>
#include <image.h>
#include <mapmem.h>

View file

@ -3,7 +3,6 @@
* Copyright 2019 Google LLC
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <command.h>
#include <display_options.h>
#include <log.h>
@ -11,6 +10,7 @@
#include <acpi/acpi_table.h>
#include <asm/acpi_table.h>
#include <asm/global_data.h>
#include <linux/errno.h>
#include <dm/acpi.h>
DECLARE_GLOBAL_DATA_PTR;

View file

@ -3,7 +3,6 @@
* Copyright (C) 2018 BayLibre, SAS
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
#include <common.h>
#include <command.h>
#include <dm.h>
#include <adc.h>

View file

@ -3,7 +3,6 @@
* Copyright (C) 2021, Bin Meng <bmeng.cn@gmail.com>
*/
#include <common.h>
#include <command.h>
#include <addr_map.h>

View file

@ -7,8 +7,8 @@
#include <command.h>
#include <env.h>
#include <vsprintf.h>
#include <image-android-dt.h>
#include <common.h>
#define OPT_INDEX "--index"

View file

@ -5,13 +5,13 @@
* Command for en/de-crypting block of memory with AES-[128/192/256]-CBC cipher.
*/
#include <common.h>
#include <command.h>
#include <uboot_aes.h>
#include <malloc.h>
#include <asm/byteorder.h>
#include <linux/compiler.h>
#include <mapmem.h>
#include <vsprintf.h>
u32 aes_get_key_len(char *command)
{

View file

@ -5,7 +5,6 @@
* Copyright (c) 2018, Heinrich Schuchardt <xypron.glpk@gmx.de>
*/
#include <common.h>
#include <command.h>
#include <linux/bitops.h>

View file

@ -5,7 +5,6 @@
* Authors:
* Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
*/
#include <common.h>
#include <arm_ffa.h>
#include <command.h>
#include <dm.h>

View file

@ -5,10 +5,10 @@
*
* Support for ARM Flash Partitions
*/
#include <common.h>
#include <command.h>
#include <console.h>
#include <flash.h>
#include <vsprintf.h>
#include <asm/io.h>
#define MAX_REGIONS 4

View file

@ -9,7 +9,6 @@
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <axi.h>
#include <command.h>
#include <console.h>

View file

@ -8,12 +8,12 @@
#include <android_bootloader_message.h>
#include <bcb.h>
#include <command.h>
#include <common.h>
#include <display_options.h>
#include <log.h>
#include <part.h>
#include <malloc.h>
#include <memalign.h>
#include <vsprintf.h>
#include <linux/err.h>
enum bcb_cmd {

View file

@ -6,7 +6,6 @@
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
#include <common.h>
#include <command.h>
#include <dm.h>
#include <env.h>

View file

@ -3,7 +3,6 @@
* Copyright (c) 2018 JJ Hiblot <jjhiblot@ti.com>
*/
#include <common.h>
#include <command.h>
#include <dm.h>
#include <dm/device-internal.h>

View file

@ -1,11 +1,11 @@
// SPDX-License-Identifier: GPL-2.0+
#include <common.h>
#include <command.h>
#include <env.h>
#include <hexdump.h>
#include <malloc.h>
#include <mapmem.h>
#include <vsprintf.h>
#include <linux/ctype.h>
enum {

View file

@ -8,10 +8,10 @@
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
#include <common.h>
#include <blk.h>
#include <command.h>
#include <mapmem.h>
#include <vsprintf.h>
int blk_common_cmd(int argc, char *const argv[], enum uclass_id uclass_id,
int *cur_devnump)

View file

@ -6,9 +6,9 @@
*/
#include <command.h>
#include <config.h>
#include <common.h>
#include <malloc.h>
#include <part.h>
#include <vsprintf.h>
static int blkc_show(struct cmd_tbl *cmdtp, int flag,
int argc, char *const argv[])

View file

@ -6,7 +6,6 @@
#include <blk.h>
#include <blkmap.h>
#include <common.h>
#include <command.h>
#include <malloc.h>
#include <dm/device.h>

View file

@ -4,9 +4,9 @@
* Command for encapsulating/decapsulating blob of memory.
*/
#include <common.h>
#include <command.h>
#include <malloc.h>
#include <vsprintf.h>
#include <asm/byteorder.h>
#include <linux/compiler.h>
#if defined(CONFIG_ARCH_MX6) || defined(CONFIG_ARCH_MX7) || \

View file

@ -6,7 +6,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <bloblist.h>
#include <command.h>
#include <asm/global_data.h>

View file

@ -8,7 +8,6 @@
* BMP handling routines
*/
#include <common.h>
#include <command.h>
#include <image.h>
#include <mapmem.h>

View file

@ -7,9 +7,9 @@
/*
* Misc boot support
*/
#include <common.h>
#include <command.h>
#include <net.h>
#include <vsprintf.h>
#ifdef CONFIG_CMD_GO

View file

@ -1,6 +1,5 @@
// SPDX-License-Identifier: GPL-2.0+
#include <common.h>
#include <command.h>
#include <bootcount.h>

View file

@ -6,7 +6,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <bootdev.h>
#include <bootflow.h>
#include <bootstd.h>

View file

@ -6,7 +6,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <bootdev.h>
#include <bootflow.h>
#include <bootm.h>

View file

@ -4,7 +4,6 @@
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
#include <common.h>
#include <bootm.h>
#include <command.h>
#include <image.h>

View file

@ -7,7 +7,6 @@
/*
* Boot support
*/
#include <common.h>
#include <bootm.h>
#include <command.h>
#include <env.h>

View file

@ -5,7 +5,6 @@
#include <charset.h>
#include <cli.h>
#include <common.h>
#include <command.h>
#include <ansi.h>
#include <efi_config.h>

View file

@ -6,7 +6,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <bootdev.h>
#include <bootmeth.h>
#include <bootstd.h>

View file

@ -3,9 +3,9 @@
* Copyright (c) 2012, Google Inc. All rights reserved.
*/
#include <common.h>
#include <bootstage.h>
#include <command.h>
#include <vsprintf.h>
static int do_bootstage_report(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[])

View file

@ -4,7 +4,6 @@
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
#include <common.h>
#include <bootm.h>
#include <command.h>
#include <image.h>

View file

@ -3,7 +3,6 @@
* Copyright 2020 Broadcom
*/
#include <common.h>
#include <command.h>
#include <broadcom/chimp.h>

View file

@ -3,7 +3,6 @@
* Copyright 2020 Broadcom
*/
#include <common.h>
#include <command.h>
#include <broadcom/chimp.h>

View file

@ -3,8 +3,8 @@
* Copyright 2020 Broadcom
*/
#include <common.h>
#include <command.h>
#include <vsprintf.h>
#define FW_IMAGE_SIG 0xff123456
#define CFG_IMAGE_SIG 0xcf54321a

View file

@ -3,7 +3,6 @@
* 2017 by Marek Behún <kabel@kernel.org>
*/
#include <common.h>
#include <command.h>
#include <btrfs.h>
#include <fs.h>

View file

@ -5,7 +5,6 @@
* Based on led.c
*/
#include <common.h>
#include <command.h>
#include <dm.h>
#include <button.h>

View file

@ -7,7 +7,6 @@
/*
* Cache support: switch on or off, get status
*/
#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <linux/compiler.h>

View file

@ -4,7 +4,6 @@
* Roger Knecht <rknecht@pm.de>
*/
#include <common.h>
#include <command.h>
#include <fs.h>
#include <malloc.h>

View file

@ -6,10 +6,10 @@
/*
* CBFS commands
*/
#include <common.h>
#include <command.h>
#include <env.h>
#include <cbfs.h>
#include <vsprintf.h>
static int do_cbfs_init(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[])

View file

@ -6,7 +6,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <abuf.h>
#include <cedit.h>
#include <command.h>

View file

@ -2,7 +2,6 @@
/*
* Copyright (C) 2013 Xilinx, Inc.
*/
#include <common.h>
#include <command.h>
#include <clk.h>
#if defined(CONFIG_DM) && defined(CONFIG_CLK)

View file

@ -4,11 +4,11 @@
*
*/
#include <common.h>
#include <command.h>
#include <malloc.h>
#include <part.h>
#include <blk.h>
#include <time.h>
#include <vsprintf.h>
#define BUFSIZE (1 * 1024 * 1024)

View file

@ -5,7 +5,6 @@
*
* cls - clear screen command
*/
#include <common.h>
#include <command.h>
#include <console.h>
#include <dm.h>

View file

@ -3,7 +3,6 @@
* Copyright (C) 2017 Masahiro Yamada <yamada.masahiro@socionext.com>
*/
#include <common.h>
#include <command.h>
#include <gzip.h>
#include <malloc.h>

View file

@ -5,7 +5,6 @@
*
* Copyright (c) 2018, Heinrich Schuchardt <xypron.glpk@gmx.de>
*/
#include <common.h>
#include <command.h>
#include <linux/delay.h>

View file

@ -7,7 +7,6 @@
/*
* Boot support
*/
#include <common.h>
#include <command.h>
#include <iomux.h>
#include <stdio_dev.h>

View file

@ -5,7 +5,6 @@
* Copyright (c) 2017 Álvaro Fernández Rojas <noltari@gmail.com>
*/
#include <common.h>
#include <command.h>
#include <cpu.h>
#include <display_options.h>

View file

@ -10,7 +10,6 @@
/*
* CRAMFS support
*/
#include <common.h>
#include <command.h>
#include <env.h>
#include <image.h>

View file

@ -6,7 +6,6 @@
* Copyright (c) 2016 National Instruments Corp
*/
#include <common.h>
#include <command.h>
#include <cros_ec.h>
#include <dm.h>

View file

@ -8,11 +8,12 @@
* Copyright (C) 2022 Stefan Roese <sr@denx.de>
*/
#include <common.h>
#include <command.h>
#include <cyclic.h>
#include <div64.h>
#include <malloc.h>
#include <time.h>
#include <vsprintf.h>
#include <linux/delay.h>
struct cyclic_demo_info {

View file

@ -7,7 +7,6 @@
/*
* RTC, Date & Time support: get and set date & time
*/
#include <common.h>
#include <command.h>
#include <dm.h>
#include <rtc.h>

View file

@ -6,7 +6,6 @@
* Pavel Herrmann <morpheus.ibis@gmail.com>
*/
#include <common.h>
#include <command.h>
#include <dm.h>
#include <dm-demo.h>

View file

@ -10,7 +10,6 @@
* Lukasz Majewski <l.majewski@samsung.com>
*/
#include <common.h>
#include <command.h>
#include <watchdog.h>
#include <dfu.h>

View file

@ -7,7 +7,6 @@
/*
* Diagnostics support
*/
#include <common.h>
#include <command.h>
#include <post.h>

View file

@ -3,7 +3,6 @@
* (C) Copyright 2000-2011
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
#include <common.h>
#include <bootstage.h>
#include <command.h>
#include <cpu_func.h>

View file

@ -6,7 +6,6 @@
* Marek Vasut <marex@denx.de>
*/
#include <common.h>
#include <command.h>
#include <dm/root.h>
#include <dm/util.h>

View file

@ -4,7 +4,6 @@
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
#include <common.h>
#include <command.h>
static int do_echo(struct cmd_tbl *cmdtp, int flag, int argc,

View file

@ -19,12 +19,12 @@
*
*/
#include <common.h>
#include <config.h>
#include <command.h>
#include <eeprom.h>
#include <i2c.h>
#include <eeprom_layout.h>
#include <vsprintf.h>
#include <linux/delay.h>
#ifndef I2C_RXTX_LEN

View file

@ -4,7 +4,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <command.h>
#include <efi.h>
#include <efi_api.h>

View file

@ -6,7 +6,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <efi.h>
#include <efi_api.h>
#include <uuid.h>

View file

@ -7,7 +7,6 @@
#include <ansi.h>
#include <cli.h>
#include <common.h>
#include <charset.h>
#include <efi_loader.h>
#include <efi_load_initrd.h>

View file

@ -6,7 +6,6 @@
*/
#include <ansi.h>
#include <common.h>
#include <charset.h>
#include <hexdump.h>
#include <log.h>

View file

@ -6,7 +6,6 @@
*/
#include <charset.h>
#include <common.h>
#include <command.h>
#include <dm/device.h>
#include <efi_dt_fixup.h>

View file

@ -4,7 +4,6 @@
* All rights reserved.
*/
#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <elf.h>

View file

@ -5,13 +5,13 @@
* Ethernet Switch commands
*/
#include <common.h>
#include <command.h>
#include <env.h>
#include <errno.h>
#include <env_flags.h>
#include <ethsw.h>
#include <net.h>
#include <vsprintf.h>
static const char *ethsw_name;

View file

@ -6,7 +6,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <command.h>
#include <event.h>

View file

@ -4,8 +4,8 @@
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
#include <common.h>
#include <command.h>
#include <vsprintf.h>
static int do_exit(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[])

View file

@ -19,7 +19,6 @@
/*
* Ext2fs support
*/
#include <common.h>
#include <command.h>
#include <fs.h>

View file

@ -25,7 +25,6 @@
* file in uboot. Added ext4fs ls load and write support.
*/
#include <common.h>
#include <part.h>
#include <config.h>
#include <command.h>

View file

@ -4,7 +4,6 @@
* Köry Maincent, Bootlin, <kory.maincent@bootlin.com>
*/
#include <common.h>
#include <bootdev.h>
#include <command.h>
#include <dm.h>

View file

@ -6,7 +6,6 @@
* (C) Copyright 2014 Linaro, Ltd.
* Rob Herring <robh@kernel.org>
*/
#include <common.h>
#include <command.h>
#include <console.h>
#include <g_dnl.h>

View file

@ -7,7 +7,6 @@
/*
* Boot support
*/
#include <common.h>
#include <command.h>
#include <mapmem.h>
#include <fat.h>

View file

@ -7,7 +7,6 @@
* Matthew McClintock <msm@freescale.com>
*/
#include <common.h>
#include <command.h>
#include <env.h>
#include <image.h>

View file

@ -7,9 +7,9 @@
/*
* FLASH support
*/
#include <common.h>
#include <command.h>
#include <log.h>
#include <vsprintf.h>
#include <uuid.h>
#if defined(CONFIG_CMD_MTDPARTS)

View file

@ -6,7 +6,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <command.h>
#include <dm.h>
#include <video.h>

View file

@ -7,7 +7,6 @@
/*
* FPGA support
*/
#include <common.h>
#include <command.h>
#include <env.h>
#include <fpga.h>

View file

@ -8,10 +8,10 @@
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
#include <common.h>
#include <command.h>
#include <console.h>
#include <display_options.h>
#include <vsprintf.h>
#include <gdsys_fpga.h>

View file

@ -5,7 +5,6 @@
* Inspired by cmd_ext_common.c, cmd_fat.c.
*/
#include <common.h>
#include <command.h>
#include <fs.h>

View file

@ -5,7 +5,6 @@
* Copyright (C) 2014, Bachmann electronic GmbH
*/
#include <common.h>
#include <command.h>
#include <fs.h>

View file

@ -8,11 +8,11 @@
* Martha Marx <mmarx@silicontkx.com>
*/
#include <common.h>
#include <command.h>
#include <console.h>
#include <fuse.h>
#include <mapmem.h>
#include <vsprintf.h>
#include <linux/errno.h>
static int strtou32(const char *str, unsigned int base, u32 *result)

View file

@ -11,8 +11,8 @@
/*
* Get Timer overflows after 2^32 / CONFIG_SYS_HZ (32Khz) = 131072 sec
*/
#include <common.h>
#include <command.h>
#include <time.h>
static int do_gettime(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[])

View file

@ -6,7 +6,6 @@
* Licensed under the GPL-2 or later.
*/
#include <common.h>
#include <command.h>
#include <errno.h>
#include <dm.h>

View file

@ -10,7 +10,6 @@
* author: Piotr Wilczek <p.wilczek@samsung.com>
*/
#include <common.h>
#include <blk.h>
#include <env.h>
#include <log.h>

View file

@ -9,7 +9,6 @@
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
#include <common.h>
#include <command.h>
#include <hash.h>
#include <linux/ctype.h>

View file

@ -4,7 +4,6 @@
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
#include <common.h>
#include <command.h>
static int do_help(struct cmd_tbl *cmdtp, int flag, int argc,

View file

@ -4,7 +4,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <command.h>
#include <cli.h>

View file

@ -3,7 +3,6 @@
* Copyright (c) 2012, Google Inc.
*/
#include <common.h>
#include <command.h>
#include <dm.h>
#include <fs.h>

View file

@ -64,7 +64,6 @@
* Adapted from cmd_mem.c which is copyright Wolfgang Denk (wd@denx.de).
*/
#include <common.h>
#include <bootretry.h>
#include <cli.h>
#include <command.h>

View file

@ -8,7 +8,6 @@
* IDE support
*/
#include <common.h>
#include <blk.h>
#include <dm.h>
#include <config.h>

View file

@ -11,9 +11,9 @@
* http://code.google.com/p/inih/
*/
#include <common.h>
#include <command.h>
#include <env.h>
#include <vsprintf.h>
#include <linux/ctype.h>
#include <linux/string.h>

View file

@ -7,9 +7,9 @@
* IO space access commands.
*/
#include <common.h>
#include <command.h>
#include <display_options.h>
#include <vsprintf.h>
#include <asm/io.h>
/* Display values from last command */

View file

@ -3,9 +3,9 @@
* Copyright (c) 2014 Google, Inc
*/
#include <common.h>
#include <command.h>
#include <iotrace.h>
#include <vsprintf.h>
static void do_print_stats(void)
{

View file

@ -3,7 +3,6 @@
* Copyright 2008 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <config.h>
#include <command.h>
#include <irq_func.h>

View file

@ -11,11 +11,11 @@
* A few parts were lifted from bash 'test' command
*/
#include <common.h>
#include <config.h>
#include <command.h>
#include <env.h>
#include <mapmem.h>
#include <vsprintf.h>
#include <asm/io.h>

View file

@ -70,7 +70,6 @@
/*
* JFFS2/CRAMFS support
*/
#include <common.h>
#include <command.h>
#include <env.h>
#if defined(CONFIG_CMD_FLASH)

View file

@ -6,7 +6,6 @@
* Copyright (c) 2021, Chris Morgan <macromorgan@hotmail.com>
*/
#include <common.h>
#include <command.h>
#include <dm.h>
#include <hexdump.h>

View file

@ -4,7 +4,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <command.h>
#include <dm.h>
#include <led.h>

View file

@ -1,6 +1,5 @@
// SPDX-License-Identifier: GPL-2.0+
#include <common.h>
#include <jffs2/jffs2.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>

View file

@ -9,10 +9,9 @@
* Ulf Samuelsson <ulf.samuelsson@atmel.com>
*/
#include <common.h>
#include <config.h>
#include <command.h>
#include <status_led.h>
#include <vsprintf.h>
struct led_tbl_s {
char *string; /* String for use in the command */

Some files were not shown because too many files have changed in this diff Show more