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

Remove <common.h> from all "env/" 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:11:03 -06:00
parent c4b646d436
commit 0f92fa4560
20 changed files with 10 additions and 19 deletions

4
env/attr.c vendored
View file

@ -4,13 +4,13 @@
* Joe Hershberger, National Instruments, joe.hershberger@ni.com
*/
#include <stdio.h>
#ifdef USE_HOSTCC /* Eliminate "ANSI does not permit..." warnings */
#include <stdint.h>
#include <stdio.h>
#include <linux/linux_string.h>
#else
#include <common.h>
#include <slre.h>
#include <vsprintf.h>
#endif
#include <env_attr.h>

1
env/callback.c vendored
View file

@ -4,7 +4,6 @@
* Joe Hershberger, National Instruments, joe.hershberger@ni.com
*/
#include <common.h>
#include <env.h>
#include <env_internal.h>
#include <asm/global_data.h>

1
env/common.c vendored
View file

@ -7,7 +7,6 @@
* Andreas Heppel <aheppel@sysgo.de>
*/
#include <common.h>
#include <bootstage.h>
#include <command.h>
#include <env.h>

1
env/eeprom.c vendored
View file

@ -7,7 +7,6 @@
* Andreas Heppel <aheppel@sysgo.de>
*/
#include <common.h>
#include <command.h>
#include <eeprom.h>
#include <env.h>

2
env/env.c vendored
View file

@ -4,13 +4,13 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <env.h>
#include <env_internal.h>
#include <log.h>
#include <asm/global_data.h>
#include <linux/bitops.h>
#include <linux/bug.h>
#include <linux/errno.h>
DECLARE_GLOBAL_DATA_PTR;

1
env/ext4.c vendored
View file

@ -18,7 +18,6 @@
* Manjunatha C Achar <a.manjunatha@samsung.com>
*/
#include <common.h>
#include <part.h>
#include <command.h>

1
env/fat.c vendored
View file

@ -6,7 +6,6 @@
* Maximilian Schwerin <mvs@tigris.de>
*/
#include <common.h>
#include <command.h>
#include <env.h>
#include <env_internal.h>

4
env/flags.c vendored
View file

@ -8,9 +8,9 @@
#include <linux/string.h>
#include <linux/ctype.h>
#include <stdio.h>
#ifdef USE_HOSTCC /* Eliminate "ANSI does not permit..." warnings */
#include <stdint.h>
#include <stdio.h>
#include "fw_env_private.h"
#include "fw_env.h"
#include <env_attr.h>
@ -18,7 +18,7 @@
#define env_get fw_getenv
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#else
#include <common.h>
#include <linux/kernel.h>
#include <env_internal.h>
#endif

1
env/flash.c vendored
View file

@ -9,7 +9,6 @@
/* #define DEBUG */
#include <common.h>
#include <command.h>
#include <env.h>
#include <env_internal.h>

1
env/mmc.c vendored
View file

@ -5,7 +5,6 @@
/* #define DEBUG */
#include <common.h>
#include <asm/global_data.h>
#include <command.h>

1
env/nand.c vendored
View file

@ -13,7 +13,6 @@
* Andreas Heppel <aheppel@sysgo.de>
*/
#include <common.h>
#include <command.h>
#include <env.h>
#include <env_internal.h>

1
env/nowhere.c vendored
View file

@ -7,7 +7,6 @@
* Andreas Heppel <aheppel@sysgo.de>
*/
#include <common.h>
#include <command.h>
#include <env.h>
#include <env_internal.h>

1
env/nvram.c vendored
View file

@ -7,7 +7,6 @@
* Andreas Heppel <aheppel@sysgo.de>
*/
#include <common.h>
#include <command.h>
#include <env.h>
#include <env_internal.h>

1
env/onenand.c vendored
View file

@ -7,7 +7,6 @@
* Kyungmin Park <kyungmin.park@samsung.com>
*/
#include <common.h>
#include <command.h>
#include <env_internal.h>
#include <asm/global_data.h>

2
env/remote.c vendored
View file

@ -5,10 +5,10 @@
/* #define DEBUG */
#include <common.h>
#include <command.h>
#include <env_internal.h>
#include <asm/global_data.h>
#include <linux/errno.h>
#include <linux/stddef.h>
#include <u-boot/crc.h>

1
env/sf.c vendored
View file

@ -8,7 +8,6 @@
*
* (C) Copyright 2008 Atmel Corporation
*/
#include <common.h>
#include <dm.h>
#include <env.h>
#include <env_internal.h>

1
env/ubi.c vendored
View file

@ -4,7 +4,6 @@
* Joe Hershberger <joe.hershberger@ni.com>
*/
#include <common.h>
#include <asm/global_data.h>
#include <command.h>

View file

@ -7,6 +7,7 @@
#ifndef __ENV_CALLBACK_H__
#define __ENV_CALLBACK_H__
#include <config.h>
#include <env_flags.h>
#include <linker_lists.h>
#include <search.h>

View file

@ -7,6 +7,7 @@
* Andreas Heppel <aheppel@sysgo.de>
*/
#include <config.h>
#include <env_callback.h>
#include <linux/stringify.h>

View file

@ -7,6 +7,8 @@
#ifndef __ENV_FLAGS_H__
#define __ENV_FLAGS_H__
#include <config.h>
enum env_flags_vartype {
env_flags_vartype_string,
env_flags_vartype_decimal,