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

Remove <common.h> from all "boot/" 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:02 -06:00
parent c93cc8ed41
commit c4b646d436
43 changed files with 6 additions and 43 deletions

View file

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

View file

@ -7,7 +7,6 @@
*/ */
#include <boot_fit.h> #include <boot_fit.h>
#include <common.h>
#include <errno.h> #include <errno.h>
#include <image.h> #include <image.h>
#include <log.h> #include <log.h>

View file

@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_BOOTSTD #define LOG_CATEGORY UCLASS_BOOTSTD
#include <common.h>
#include <dm.h> #include <dm.h>
#include <bootdev.h> #include <bootdev.h>
#include <bootflow.h> #include <bootflow.h>

View file

@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_BOOTSTD #define LOG_CATEGORY UCLASS_BOOTSTD
#include <common.h>
#include <bootdev.h> #include <bootdev.h>
#include <bootflow.h> #include <bootflow.h>
#include <bootmeth.h> #include <bootmeth.h>

View file

@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_BOOTSTD #define LOG_CATEGORY UCLASS_BOOTSTD
#include <common.h>
#include <bootflow.h> #include <bootflow.h>
#include <bootstd.h> #include <bootstd.h>
#include <cli.h> #include <cli.h>

View file

@ -5,7 +5,6 @@
*/ */
#ifndef USE_HOSTCC #ifndef USE_HOSTCC
#include <common.h>
#include <bootm.h> #include <bootm.h>
#include <bootstage.h> #include <bootstage.h>
#include <cli.h> #include <cli.h>

View file

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

View file

@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_BOOTSTD #define LOG_CATEGORY UCLASS_BOOTSTD
#include <common.h>
#include <blk.h> #include <blk.h>
#include <bootflow.h> #include <bootflow.h>
#include <bootmeth.h> #include <bootmeth.h>

View file

@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_BOOTSTD #define LOG_CATEGORY UCLASS_BOOTSTD
#include <common.h>
#include <blk.h> #include <blk.h>
#include <bootdev.h> #include <bootdev.h>
#include <bootflow.h> #include <bootflow.h>

View file

@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_BOOTSTD #define LOG_CATEGORY UCLASS_BOOTSTD
#include <common.h>
#include <bootdev.h> #include <bootdev.h>
#include <bootflow.h> #include <bootflow.h>
#include <bootmeth.h> #include <bootmeth.h>

View file

@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_BOOTSTD #define LOG_CATEGORY UCLASS_BOOTSTD
#include <common.h>
#include <bootdev.h> #include <bootdev.h>
#include <bootflow.h> #include <bootflow.h>
#include <bootmeth.h> #include <bootmeth.h>

View file

@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_BOOTSTD #define LOG_CATEGORY UCLASS_BOOTSTD
#include <common.h>
#include <bootdev.h> #include <bootdev.h>
#include <bootflow.h> #include <bootflow.h>
#include <bootmeth.h> #include <bootmeth.h>

View file

@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_BOOTSTD #define LOG_CATEGORY UCLASS_BOOTSTD
#include <common.h>
#include <bootdev.h> #include <bootdev.h>
#include <bootflow.h> #include <bootflow.h>
#include <bootmeth.h> #include <bootmeth.h>

View file

@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_BOOTSTD #define LOG_CATEGORY UCLASS_BOOTSTD
#include <common.h>
#include <command.h> #include <command.h>
#include <bootdev.h> #include <bootdev.h>
#include <bootflow.h> #include <bootflow.h>

View file

@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_BOOTSTD #define LOG_CATEGORY UCLASS_BOOTSTD
#include <common.h>
#include <bootdev.h> #include <bootdev.h>
#include <bootflow.h> #include <bootflow.h>
#include <bootmeth.h> #include <bootmeth.h>

View file

@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_BOOTSTD #define LOG_CATEGORY UCLASS_BOOTSTD
#include <common.h>
#include <blk.h> #include <blk.h>
#include <bootflow.h> #include <bootflow.h>
#include <bootmeth.h> #include <bootmeth.h>

View file

@ -4,12 +4,13 @@
* Wolfgang Denk, DENX Software Engineering, wd@denx.de. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/ */
#include <common.h> #include <stdio.h>
#include <bootretry.h> #include <bootretry.h>
#include <cli.h> #include <cli.h>
#include <env.h> #include <env.h>
#include <errno.h> #include <errno.h>
#include <time.h> #include <time.h>
#include <vsprintf.h>
#include <watchdog.h> #include <watchdog.h>
static uint64_t endtime; /* must be set, default is instant timeout */ static uint64_t endtime; /* must be set, default is instant timeout */

View file

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

View file

@ -8,7 +8,6 @@
#define LOG_CATEGORY LOGC_EXPO #define LOG_CATEGORY LOGC_EXPO
#include <common.h>
#include <abuf.h> #include <abuf.h>
#include <cedit.h> #include <cedit.h>
#include <cli.h> #include <cli.h>

View file

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

View file

@ -8,7 +8,6 @@
#define LOG_CATEGORY LOGC_EXPO #define LOG_CATEGORY LOGC_EXPO
#include <common.h>
#include <dm.h> #include <dm.h>
#include <expo.h> #include <expo.h>
#include <malloc.h> #include <malloc.h>

View file

@ -8,7 +8,6 @@
#define LOG_CATEGORY LOGC_EXPO #define LOG_CATEGORY LOGC_EXPO
#include <common.h>
#include <expo.h> #include <expo.h>
#include <fdtdec.h> #include <fdtdec.h>
#include <log.h> #include <log.h>

View file

@ -6,7 +6,6 @@
* Stephen Warren <swarren@wwwdotorg.org> * Stephen Warren <swarren@wwwdotorg.org>
*/ */
#include <common.h>
#include <dm.h> #include <dm.h>
#include <fdt_support.h> #include <fdt_support.h>
#include <asm/global_data.h> #include <asm/global_data.h>

View file

@ -6,7 +6,6 @@
* Copyright 2010-2011 Freescale Semiconductor, Inc. * Copyright 2010-2011 Freescale Semiconductor, Inc.
*/ */
#include <common.h>
#include <abuf.h> #include <abuf.h>
#include <env.h> #include <env.h>
#include <log.h> #include <log.h>

View file

@ -6,7 +6,6 @@
#include <image-android-dt.h> #include <image-android-dt.h>
#include <dt_table.h> #include <dt_table.h>
#include <common.h>
#include <linux/libfdt.h> #include <linux/libfdt.h>
#include <mapmem.h> #include <mapmem.h>

View file

@ -3,7 +3,6 @@
* Copyright (c) 2011 Sebastian Andrzej Siewior <bigeasy@linutronix.de> * Copyright (c) 2011 Sebastian Andrzej Siewior <bigeasy@linutronix.de>
*/ */
#include <common.h>
#include <env.h> #include <env.h>
#include <image.h> #include <image.h>
#include <image-android-dt.h> #include <image-android-dt.h>

View file

@ -8,7 +8,7 @@
* Wolfgang Denk, DENX Software Engineering, wd@denx.de. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/ */
#include <common.h> #include <config.h>
#include <bootstage.h> #include <bootstage.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <display_options.h> #include <display_options.h>

View file

@ -7,7 +7,6 @@
#include "mkimage.h" #include "mkimage.h"
#include <time.h> #include <time.h>
#else #else
#include <common.h>
#include <malloc.h> #include <malloc.h>
#include <asm/global_data.h> #include <asm/global_data.h>
DECLARE_GLOBAL_DATA_PTR; DECLARE_GLOBAL_DATA_PTR;

View file

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

View file

@ -7,7 +7,6 @@
#include "mkimage.h" #include "mkimage.h"
#include <time.h> #include <time.h>
#else #else
#include <common.h>
#include <log.h> #include <log.h>
#include <malloc.h> #include <malloc.h>
#include <asm/global_data.h> #include <asm/global_data.h>

View file

@ -19,7 +19,6 @@
#else #else
#include <linux/compiler.h> #include <linux/compiler.h>
#include <linux/sizes.h> #include <linux/sizes.h>
#include <common.h>
#include <errno.h> #include <errno.h>
#include <log.h> #include <log.h>
#include <mapmem.h> #include <mapmem.h>

View file

@ -3,7 +3,6 @@
* Copyright (C) 2021 Philippe Reynes <philippe.reynes@softathome.com> * Copyright (C) 2021 Philippe Reynes <philippe.reynes@softathome.com>
*/ */
#include <common.h>
#include <asm/global_data.h> #include <asm/global_data.h>
DECLARE_GLOBAL_DATA_PTR; DECLARE_GLOBAL_DATA_PTR;
#include <image.h> #include <image.h>

View file

@ -3,7 +3,6 @@
* Copyright (c) 2013, Google Inc. * Copyright (c) 2013, Google Inc.
*/ */
#include <common.h>
#include <log.h> #include <log.h>
#include <malloc.h> #include <malloc.h>
#include <asm/global_data.h> #include <asm/global_data.h>

View file

@ -7,7 +7,6 @@
*/ */
#ifndef USE_HOSTCC #ifndef USE_HOSTCC
#include <common.h>
#include <env.h> #include <env.h>
#include <display_options.h> #include <display_options.h>
#include <init.h> #include <init.h>

View file

@ -4,7 +4,6 @@
* Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
*/ */
#include <common.h>
#include <command.h> #include <command.h>
#include <dm.h> #include <dm.h>
#include <env.h> #include <env.h>

View file

@ -8,7 +8,6 @@
#define LOG_CATEGORY LOGC_EXPO #define LOG_CATEGORY LOGC_EXPO
#include <common.h>
#include <dm.h> #include <dm.h>
#include <expo.h> #include <expo.h>
#include <malloc.h> #include <malloc.h>

View file

@ -8,7 +8,6 @@
#define LOG_CATEGORY LOGC_EXPO #define LOG_CATEGORY LOGC_EXPO
#include <common.h>
#include <dm.h> #include <dm.h>
#include <expo.h> #include <expo.h>
#include <malloc.h> #include <malloc.h>

View file

@ -8,10 +8,12 @@
#define LOG_CATEGORY LOGC_EXPO #define LOG_CATEGORY LOGC_EXPO
#include <common.h>
#include <expo.h> #include <expo.h>
#include <menu.h> #include <menu.h>
#include <log.h>
#include <video_console.h> #include <video_console.h>
#include <linux/errno.h>
#include <linux/string.h>
#include "scene_internal.h" #include "scene_internal.h"
int scene_textline(struct scene *scn, const char *name, uint id, uint max_chars, int scene_textline(struct scene *scn, const char *name, uint id, uint max_chars,

View file

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

View file

@ -8,7 +8,6 @@
#define LOG_CATEGORY LOGC_BOOT #define LOG_CATEGORY LOGC_BOOT
#include <common.h>
#include <dm.h> #include <dm.h>
#include <event.h> #include <event.h>
#include <image.h> #include <image.h>

View file

@ -8,7 +8,6 @@
#define LOG_CATEGORY LOGC_BOOT #define LOG_CATEGORY LOGC_BOOT
#include <common.h>
#include <bootdev.h> #include <bootdev.h>
#include <bootflow.h> #include <bootflow.h>
#include <bootmeth.h> #include <bootmeth.h>

View file

@ -8,7 +8,6 @@
#define LOG_CATEGORY LOGC_BOOT #define LOG_CATEGORY LOGC_BOOT
#include <common.h>
#include <bloblist.h> #include <bloblist.h>
#include <bootdev.h> #include <bootdev.h>
#include <bootflow.h> #include <bootflow.h>

View file

@ -8,7 +8,6 @@
#define LOG_CATEGORY LOGC_BOOT #define LOG_CATEGORY LOGC_BOOT
#include <common.h>
#include <dm.h> #include <dm.h>
#include <bootflow.h> #include <bootflow.h>
#include <vbe.h> #include <vbe.h>