global: Add <linux/string.h> instead of long indirect include path
In a number of cases we have C files which rely on a chain of indirect include paths to get <linux/string.h> to be included via <command.h>. To facilitate cleaning up <command.h> make this code directly include <linux/string.h>. Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include <log.h>
|
||||
#include <asm/io.h>
|
||||
#include <linux/errno.h>
|
||||
#include <linux/string.h>
|
||||
#include <asm/arch/imx-regs.h>
|
||||
#include <asm/arch/crm_regs.h>
|
||||
#include <asm/arch/clock.h>
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
#include <vsprintf.h>
|
||||
#include <command.h>
|
||||
#include <linux/string.h>
|
||||
#include <asm/arch/hardware.h>
|
||||
#include <asm/arch/clock.h>
|
||||
#include <asm/arch/psc_defs.h>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include <command.h>
|
||||
#include <log.h>
|
||||
#include <vsprintf.h>
|
||||
#include <linux/string.h>
|
||||
#include <asm/arch-tegra/crypto.h>
|
||||
#include "bct.h"
|
||||
#include "uboot_aes.h"
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include <command.h>
|
||||
#include <log.h>
|
||||
#include <vsprintf.h>
|
||||
#include <linux/string.h>
|
||||
#include <asm/arch-tegra/crypto.h>
|
||||
#include "bct.h"
|
||||
#include "uboot_aes.h"
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include <command.h>
|
||||
#include <log.h>
|
||||
#include <vsprintf.h>
|
||||
#include <linux/string.h>
|
||||
#include <asm/arch-tegra/crypto.h>
|
||||
#include "bct.h"
|
||||
#include "uboot_aes.h"
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include <linux/io.h>
|
||||
#include <linux/printk.h>
|
||||
#include <linux/sizes.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
#include "../soc-info.h"
|
||||
#include "ddrmphy-regs.h"
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include <linux/io.h>
|
||||
#include <linux/printk.h>
|
||||
#include <linux/sizes.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
#include "../soc-info.h"
|
||||
#include "ddrphy-regs.h"
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include <asm/io.h>
|
||||
#include <linux/compiler.h>
|
||||
#include <linux/time.h>
|
||||
#include <linux/string.h>
|
||||
#include <i2c.h>
|
||||
#include "qixis.h"
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
#include <config.h>
|
||||
#include <command.h>
|
||||
#include <linux/string.h>
|
||||
#include <asm/io.h>
|
||||
#include "cpld.h"
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
#include <config.h>
|
||||
#include <command.h>
|
||||
#include <linux/string.h>
|
||||
#include <asm/io.h>
|
||||
#include "cpld.h"
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
*/
|
||||
|
||||
#include <command.h>
|
||||
#include <linux/string.h>
|
||||
#include <asm/io.h>
|
||||
|
||||
#include "cpld.h"
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include <config.h>
|
||||
#include <command.h>
|
||||
#include <linux/string.h>
|
||||
#include <asm/io.h>
|
||||
#include "cpld.h"
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
|
||||
#include <config.h>
|
||||
#include <command.h>
|
||||
#include <linux/string.h>
|
||||
#include <asm/io.h>
|
||||
|
||||
#include "cpld.h"
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
#include <config.h>
|
||||
#include <command.h>
|
||||
#include <linux/string.h>
|
||||
#include <asm/io.h>
|
||||
#include "cpld.h"
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
#include <config.h>
|
||||
#include <command.h>
|
||||
#include <linux/string.h>
|
||||
#include <asm/io.h>
|
||||
|
||||
#include "cpld.h"
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include <command.h>
|
||||
#include <console.h>
|
||||
#include <fuse.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
static int mfgr_fuse(void)
|
||||
{
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include <command.h>
|
||||
#include <console.h>
|
||||
#include <fuse.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
static int mfgr_fuse(void)
|
||||
{
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include "mkimage.h"
|
||||
#else
|
||||
#include <asm/global_data.h>
|
||||
#include <env.h>
|
||||
#include <mapmem.h>
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
#endif /* !USE_HOSTCC*/
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include <rand.h>
|
||||
#include <vsprintf.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
#define SIZE 4
|
||||
static uint score;
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include <console.h>
|
||||
#include <flash.h>
|
||||
#include <vsprintf.h>
|
||||
#include <linux/string.h>
|
||||
#include <asm/io.h>
|
||||
|
||||
#define MAX_REGIONS 4
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include <bootstage.h>
|
||||
#include <command.h>
|
||||
#include <vsprintf.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
static int do_bootstage_report(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include <command.h>
|
||||
#include <cpu_func.h>
|
||||
#include <linux/compiler.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
static int parse_argv(const char *);
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
*/
|
||||
#include <command.h>
|
||||
#include <post.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
int do_diag(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
|
||||
1
cmd/dm.c
1
cmd/dm.c
@@ -9,6 +9,7 @@
|
||||
#include <command.h>
|
||||
#include <dm/root.h>
|
||||
#include <dm/util.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
static int do_dm_dump_driver_compat(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#include <command.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
static int do_echo(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include <command.h>
|
||||
#include <log.h>
|
||||
#include <vsprintf.h>
|
||||
#include <linux/string.h>
|
||||
#include <u-boot/uuid.h>
|
||||
|
||||
#if defined(CONFIG_CMD_MTDPARTS)
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include <mapmem.h>
|
||||
#include <vsprintf.h>
|
||||
#include <linux/errno.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
static int confirm_prog(void)
|
||||
{
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include <config.h>
|
||||
#include <command.h>
|
||||
#include <irq_func.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
static int do_interrupts(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include <command.h>
|
||||
#include <status_led.h>
|
||||
#include <vsprintf.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
struct led_tbl_s {
|
||||
char *string; /* String for use in the command */
|
||||
|
||||
1
cmd/mp.c
1
cmd/mp.c
@@ -6,6 +6,7 @@
|
||||
#include <command.h>
|
||||
#include <cpu_func.h>
|
||||
#include <vsprintf.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
static int cpu_status_all(void)
|
||||
{
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include <errno.h>
|
||||
#include <tee.h>
|
||||
#include <vsprintf.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
#define TA_HELLO_WORLD_CMD_INC_VALUE 0
|
||||
/* This needs to match the UUID of the Hello World TA. */
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include <command.h>
|
||||
#include <hash.h>
|
||||
#include <linux/string.h>
|
||||
#include <u-boot/sha1.h>
|
||||
|
||||
int do_sha1sum(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include <time.h>
|
||||
#include <vsprintf.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
static int do_sleep(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include <linux/arm-smccc.h>
|
||||
#include <linux/compiler.h>
|
||||
#include <linux/psci.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
static int do_call(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include <command.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
static int do_test_stackprot_fail(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include <config.h>
|
||||
#include <command.h>
|
||||
#include <vsprintf.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
static char *start_addr, *last_addr;
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include <fs.h>
|
||||
#include <log.h>
|
||||
#include <vsprintf.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
#define OP_INVALID 0
|
||||
#define OP_NOT 1
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
#include <command.h>
|
||||
#include <time.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
static int do_timer(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include <command.h>
|
||||
#include <ufs.h>
|
||||
#include <vsprintf.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
static int do_ufs(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include <command.h>
|
||||
#include <log.h>
|
||||
#include <vsprintf.h>
|
||||
#include <linux/string.h>
|
||||
#include <asm/msr.h>
|
||||
#include <asm/mp.h>
|
||||
#include <asm/mtrr.h>
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include <tpm-v1.h>
|
||||
#include <tpm-v2.h>
|
||||
#include <linux/string.h>
|
||||
#include <asm/unaligned.h>
|
||||
#include "sandbox_common.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user