diff options
Diffstat (limited to 'env')
-rw-r--r-- | env/common.c | 2 | ||||
-rw-r--r-- | env/env.c | 3 | ||||
-rw-r--r-- | env/ext4.c | 5 | ||||
-rw-r--r-- | env/fat.c | 9 | ||||
-rw-r--r-- | env/flash.c | 1 | ||||
-rw-r--r-- | env/mmc.c | 2 | ||||
-rw-r--r-- | env/sf.c | 3 |
7 files changed, 18 insertions, 7 deletions
diff --git a/env/common.c b/env/common.c index 1fd1bd01d3b..088b2aebb42 100644 --- a/env/common.c +++ b/env/common.c @@ -8,9 +8,11 @@ */ #include <common.h> +#include <bootstage.h> #include <command.h> #include <env.h> #include <env_internal.h> +#include <log.h> #include <sort.h> #include <linux/stddef.h> #include <search.h> diff --git a/env/env.c b/env/env.c index 9237bb9c742..dcc25c030b2 100644 --- a/env/env.c +++ b/env/env.c @@ -7,6 +7,9 @@ #include <common.h> #include <env.h> #include <env_internal.h> +#include <log.h> +#include <linux/bitops.h> +#include <linux/bug.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/env/ext4.c b/env/ext4.c index 911e19c6d3d..8e90bb71b75 100644 --- a/env/ext4.c +++ b/env/ext4.c @@ -19,6 +19,7 @@ */ #include <common.h> +#include <part.h> #include <command.h> #include <env.h> @@ -45,7 +46,7 @@ static int env_ext4_save(void) { env_t env_new; struct blk_desc *dev_desc = NULL; - disk_partition_t info; + struct disk_partition info; int dev, part; int err; const char *ifname = env_ext4_get_intf(); @@ -87,7 +88,7 @@ static int env_ext4_load(void) { ALLOC_CACHE_ALIGN_BUFFER(char, buf, CONFIG_ENV_SIZE); struct blk_desc *dev_desc = NULL; - disk_partition_t info; + struct disk_partition info; int dev, part; int err; loff_t off; diff --git a/env/fat.c b/env/fat.c index cf2e5e2b26e..35a1955e634 100644 --- a/env/fat.c +++ b/env/fat.c @@ -7,17 +7,18 @@ */ #include <common.h> - #include <command.h> #include <env.h> #include <env_internal.h> -#include <linux/stddef.h> +#include <part.h> #include <malloc.h> #include <memalign.h> #include <search.h> #include <errno.h> #include <fat.h> #include <mmc.h> +#include <asm/cache.h> +#include <linux/stddef.h> #ifdef CONFIG_SPL_BUILD /* TODO(sjg@chromium.org): Figure out why this is needed */ @@ -32,7 +33,7 @@ static int env_fat_save(void) { env_t __aligned(ARCH_DMA_MINALIGN) env_new; struct blk_desc *dev_desc = NULL; - disk_partition_t info; + struct disk_partition info; int dev, part; int err; loff_t size; @@ -78,7 +79,7 @@ static int env_fat_load(void) { ALLOC_CACHE_ALIGN_BUFFER(char, buf, CONFIG_ENV_SIZE); struct blk_desc *dev_desc = NULL; - disk_partition_t info; + struct disk_partition info; int dev, part; int err; diff --git a/env/flash.c b/env/flash.c index e05f7ef74b9..3198147c380 100644 --- a/env/flash.c +++ b/env/flash.c @@ -14,6 +14,7 @@ #include <env.h> #include <env_internal.h> #include <flash.h> +#include <log.h> #include <linux/stddef.h> #include <malloc.h> #include <search.h> diff --git a/env/mmc.c b/env/mmc.c index 251ad07d7c0..a8b661db80a 100644 --- a/env/mmc.c +++ b/env/mmc.c @@ -27,7 +27,7 @@ DECLARE_GLOBAL_DATA_PTR; #if CONFIG_IS_ENABLED(OF_CONTROL) static inline int mmc_offset_try_partition(const char *str, s64 *val) { - disk_partition_t info; + struct disk_partition info; struct blk_desc *desc; int len, i, ret; @@ -12,11 +12,14 @@ #include <dm.h> #include <env.h> #include <env_internal.h> +#include <flash.h> #include <malloc.h> #include <spi.h> #include <spi_flash.h> #include <search.h> #include <errno.h> +#include <uuid.h> +#include <asm/cache.h> #include <dm/device-internal.h> #include <u-boot/crc.h> |