efi_loader: Remove <common.h>

We largely do not need <common.h> in these files, so drop it. The only
exception here is that efi_freestanding.c needs <linux/types.h> and had
been getting that via <common.h>.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Tom Rini 2023-12-14 13:16:55 -05:00
parent d1f072aa25
commit c38cb227d3
42 changed files with 1 additions and 42 deletions

View file

@ -6,7 +6,6 @@
* to a file.
*/
#include <common.h>
#include <efi_api.h>
#include <efi_dt_fixup.h>
#include <part.h>

View file

@ -5,7 +5,6 @@
* Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
*/
#include <common.h>
#include <efi_loader.h>
#include <log.h>
#include <mapmem.h>

View file

@ -11,7 +11,6 @@
#include <blk.h>
#include <blkmap.h>
#include <common.h>
#include <charset.h>
#include <dm.h>
#include <log.h>

View file

@ -5,7 +5,6 @@
* Copyright (c) 2016 Alexander Graf
*/
#include <common.h>
#include <bootm.h>
#include <div64.h>
#include <dm/device.h>

View file

@ -8,7 +8,6 @@
#define LOG_CATEGORY LOGC_EFI
#include <common.h>
#include <efi_loader.h>
#include <efi_variable.h>
#include <env.h>

View file

@ -5,7 +5,6 @@
* Copyright (C) 2022 Arm Ltd.
*/
#include <common.h>
#include <efi_loader.h>
#include <log.h>
#include <efi_api.h>

View file

@ -8,7 +8,6 @@
#define LOG_CATEGORY LOGC_EFI
#include <ansi.h>
#include <common.h>
#include <charset.h>
#include <malloc.h>
#include <time.h>

View file

@ -7,7 +7,6 @@
#define LOG_CATEGORY LOGC_EFI
#include <common.h>
#include <blk.h>
#include <dm.h>
#include <dm/root.h>

View file

@ -5,7 +5,6 @@
* Copyright (c) 2017 Heinrich Schuchardt
*/
#include <common.h>
#include <blk.h>
#include <efi_loader.h>
#include <malloc.h>

View file

@ -5,7 +5,6 @@
* Copyright (c) 2017 Leif Lindholm
*/
#include <common.h>
#include <efi_loader.h>
const efi_guid_t efi_guid_device_path_utilities_protocol =

View file

@ -7,7 +7,6 @@
#define LOG_CATEGORY LOGC_EFI
#include <common.h>
#include <blk.h>
#include <dm.h>
#include <dm/device-internal.h>

View file

@ -5,7 +5,6 @@
* Copyright (c) 2020 Heinrich Schuchardt
*/
#include <common.h>
#include <efi_dt_fixup.h>
#include <efi_loader.h>
#include <efi_rng.h>

View file

@ -5,7 +5,6 @@
* Copyright (C) 2021 Arm Ltd.
*/
#include <common.h>
#include <efi_loader.h>
#include <log.h>
#include <efi_api.h>

View file

@ -5,7 +5,6 @@
* Copyright (c) 2017 Rob Clark
*/
#include <common.h>
#include <charset.h>
#include <efi_loader.h>
#include <log.h>

View file

@ -6,7 +6,6 @@
* Author: AKASHI Takahiro
*/
#include <common.h>
#include <charset.h>
#include <dfu.h>
#include <efi_loader.h>

View file

@ -8,7 +8,7 @@
* memset(), and memcmp().
*/
#include <common.h>
#include <linux/types.h>
/**
* memcmp() - compare memory areas

View file

@ -5,7 +5,6 @@
* Copyright (c) 2016 Alexander Graf
*/
#include <common.h>
#include <dm.h>
#include <efi_loader.h>
#include <log.h>

View file

@ -4,7 +4,6 @@
*/
#define LOG_CATEGORY LOGC_EFI
#include <common.h>
#include <env.h>
#include <malloc.h>
#include <dm.h>

View file

@ -6,7 +6,6 @@
* Copyright (c) 2018 AKASHI Takahiro, Linaro Limited
*/
#include <common.h>
#include <efi_loader.h>
#include <malloc.h>
#include <asm/unaligned.h>

View file

@ -10,7 +10,6 @@
* the Makefile.
*/
#include <common.h>
#include <efi_loader.h>
const efi_guid_t efi_guid_hii_config_routing_protocol

View file

@ -9,7 +9,6 @@
#define LOG_CATEGORY LOGC_EFI
#include <common.h>
#include <cpu_func.h>
#include <efi_loader.h>
#include <log.h>

View file

@ -4,7 +4,6 @@
*/
#define LOG_CATEGORY LOGC_EFI
#include <common.h>
#include <efi_loader.h>
#include <efi_load_initrd.h>
#include <efi_variable.h>

View file

@ -7,7 +7,6 @@
#define LOG_CATEGORY LOGC_EFI
#include <common.h>
#include <charset.h>
#include <log.h>
#include <malloc.h>

View file

@ -7,7 +7,6 @@
#define LOG_CATEGORY LOGC_EFI
#include <common.h>
#include <efi_loader.h>
#include <init.h>
#include <log.h>

View file

@ -15,7 +15,6 @@
* Reset(): EfiSimpleNetworkInitialized -> EfiSimpleNetworkInitialized
*/
#include <common.h>
#include <efi_loader.h>
#include <malloc.h>
#include <net.h>

View file

@ -7,7 +7,6 @@
*/
#define LOG_CATEGORY LOGC_EFI
#include <common.h>
#include <efi_loader.h>
#include <efi_variable.h>
#include <log.h>

View file

@ -5,7 +5,6 @@
#define LOG_CATEGORY LOGC_EFI
#include <common.h>
#include <dm.h>
#include <efi_loader.h>
#include <efi_rng.h>

View file

@ -5,7 +5,6 @@
* Copyright (c) 2018 Heinrich Schuchardt
*/
#include <common.h>
#include <malloc.h>
#include <efi_dt_fixup.h>
#include <efi_loader.h>

View file

@ -5,7 +5,6 @@
* Copyright (c) 2016 Alexander Graf
*/
#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <dm.h>

View file

@ -7,7 +7,6 @@
#define LOG_CATEGORY LOGC_EFI
#include <common.h>
#include <efi_loader.h>
#include <efi_variable.h>
#include <log.h>

View file

@ -4,7 +4,6 @@
* Copyright (c) 2019 Linaro Limited, Author: AKASHI Takahiro
*/
#include <common.h>
#include <charset.h>
#include <efi_loader.h>
#include <efi_variable.h>

View file

@ -7,7 +7,6 @@
#define LOG_CATEGORY LOGC_EFI
#include <common.h>
#include <efi_loader.h>
#include <log.h>
#include <malloc.h>

View file

@ -5,7 +5,6 @@
* Copyright (c) 2020 AKASHI Takahiro, Linaro Limited
*/
#include <common.h>
#include <charset.h>
#include <efi_loader.h>
#include <malloc.h>

View file

@ -8,7 +8,6 @@
*/
#define LOG_CATEGORY LOGC_EFI
#include <common.h>
#include <dm.h>
#include <efi_loader.h>
#include <efi_variable.h>

View file

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

View file

@ -6,7 +6,6 @@
* Copyright (c) 2020 Linaro Limited, Author: AKASHI Takahiro
*/
#include <common.h>
#include <efi_loader.h>
#include <efi_variable.h>
#include <stdlib.h>

View file

@ -7,7 +7,6 @@
#define LOG_CATEGORY LOGC_EFI
#include <common.h>
#include <charset.h>
#include <fs.h>
#include <log.h>

View file

@ -5,7 +5,6 @@
* Copyright (c) 2020, Heinrich Schuchardt
*/
#include <common.h>
#include <efi_loader.h>
#include <efi_variable.h>
#include <u-boot/crc.h>

View file

@ -7,7 +7,6 @@
#define LOG_CATEGORY LOGC_EFI
#include <common.h>
#include <efi_loader.h>
#include <efi_variable.h>
#include <env.h>

View file

@ -10,7 +10,6 @@
* Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
*/
#include <common.h>
#if CONFIG_IS_ENABLED(ARM_FFA_TRANSPORT)
#include <arm_ffa.h>
#endif

View file

@ -5,7 +5,6 @@
* Copyright (c) 2017 Heinrich Schuchardt
*/
#include <common.h>
#include <efi_loader.h>
/* Conversion factor from seconds to multiples of 100ns */

View file

@ -9,7 +9,6 @@
* clearing of the screen.
*/
#include <common.h>
#include <efi_api.h>
#include <efi_load_initrd.h>