mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-06 15:26:58 +02:00
Merge patch series "Audit include list for include/[a-m]*.h"
Tom Rini <trini@konsulko.com> says: Hey all, Related to my other series I've posted recently on cleaning up some headers, this series here is the result of at least lightly auditing the #includes used in include/[a-m]*.h. This ignores subdirectories, as at least in part I think the top-level includes we've constructed are the most likely places to have some extra transitive include paths. I'm sure there's exceptions and I'll likely audit deeper once this first pass is done. This only gets as far as "include/m*.h" because I didn't want this to get too big. This also sets aside <miiphy.h> and <phy.h>. While miiphy.h does not directly need <phy.h> there are *so* many users and I think I had half of the tree just about not building when I first tried. It might be worth further investigation, but it might just be OK as-is. Link: https://lore.kernel.org/r/20250521230119.2084088-1-trini@konsulko.com
This commit is contained in:
commit
d786c6b69f
@ -10,6 +10,7 @@
|
||||
#include <malloc.h>
|
||||
#include <misc.h>
|
||||
#include <mmc.h>
|
||||
#include <mtd.h>
|
||||
#include <part.h>
|
||||
#include <tee.h>
|
||||
#include <asm/arch/stm32mp1_smc.h>
|
||||
|
@ -6,6 +6,7 @@
|
||||
#include <env.h>
|
||||
#include <fdtdec.h>
|
||||
#include <stdlib.h>
|
||||
#include <linux/if_ether.h>
|
||||
#include <asm/arch-tegra/cboot.h>
|
||||
#include <asm/arch-tegra/gpu.h>
|
||||
|
||||
|
@ -13,6 +13,7 @@
|
||||
#include <time.h>
|
||||
#include <asm/global_data.h>
|
||||
#include <linux/libfdt.h>
|
||||
#include <linux/sizes.h>
|
||||
#include <fdt_support.h>
|
||||
#include <asm/processor.h>
|
||||
#include <linux/ctype.h>
|
||||
|
@ -12,6 +12,7 @@
|
||||
#include <bios_emul.h>
|
||||
#include <irq_func.h>
|
||||
#include <log.h>
|
||||
#include <pci.h>
|
||||
#include <vesa.h>
|
||||
#include <linux/linkage.h>
|
||||
#include <asm/cache.h>
|
||||
|
@ -29,6 +29,7 @@
|
||||
#include <linux/bitops.h>
|
||||
#include <linux/bitrev.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/if_ether.h>
|
||||
#include <u-boot/crc.h>
|
||||
|
||||
#include "../drivers/ddr/marvell/a38x/ddr3_init.h"
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include <asm/arch/cpu.h>
|
||||
#include <asm/arch/soc.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/if_ether.h>
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
|
@ -8,6 +8,8 @@
|
||||
#ifndef __SYNO_LEGACY_H
|
||||
#define __SYNO_LEGACY_H
|
||||
|
||||
#include <linux/if_ether.h>
|
||||
|
||||
/* Marvell uboot parameters */
|
||||
#define ATAG_MV_UBOOT 0x41000403
|
||||
#define VER_NUM 0x03040400 /* 3.4.4 */
|
||||
|
@ -32,7 +32,6 @@
|
||||
#include <asm/gpio.h>
|
||||
#include <asm/io.h>
|
||||
#include <jffs2/load_kernel.h>
|
||||
#include <mtd.h>
|
||||
#include <nand.h>
|
||||
#include <video.h>
|
||||
#include <video_console.h>
|
||||
|
@ -14,6 +14,8 @@
|
||||
#ifndef _BOARD_H_
|
||||
#define _BOARD_H_
|
||||
|
||||
#include <linux/if_ether.h>
|
||||
|
||||
/* Definition to control the GPIOs (for LEDs and Reset) */
|
||||
#define GPIO_TO_PIN(bank, gpio) (32 * (bank) + (gpio))
|
||||
|
||||
@ -146,7 +148,6 @@ static inline int board_is_series(void)
|
||||
#define RESET_MASK (0x1 << 29)
|
||||
|
||||
#define HDR_MAGIC 0x43485342
|
||||
#define HDR_ETH_ALEN 6
|
||||
#define HDR_NAME_LEN 8
|
||||
#define HDR_REV_LEN 8
|
||||
#define HDR_SER_LEN 16
|
||||
@ -176,7 +177,7 @@ struct shc_eeprom {
|
||||
u32 magic;
|
||||
u16 version;
|
||||
u16 lenght;
|
||||
uint8_t mac_addr[HDR_ETH_ALEN];
|
||||
uint8_t mac_addr[ETH_ALEN];
|
||||
};
|
||||
|
||||
void enable_uart0_pin_mux(void);
|
||||
|
@ -27,7 +27,6 @@
|
||||
#include <led.h>
|
||||
#include <memalign.h>
|
||||
#include <misc.h>
|
||||
#include <mtd.h>
|
||||
#include <mtd_node.h>
|
||||
#include <netdev.h>
|
||||
#include <phy.h>
|
||||
|
@ -7,6 +7,7 @@
|
||||
#include <env.h>
|
||||
#include <memalign.h>
|
||||
#include <mtd.h>
|
||||
#include <linux/sizes.h>
|
||||
|
||||
#define DFU_ALT_BUF_LEN SZ_1K
|
||||
|
||||
|
@ -93,6 +93,7 @@ int testdram(void)
|
||||
|
||||
#ifdef CONFIG_IDE
|
||||
#include <ata.h>
|
||||
#include <ide.h>
|
||||
void ide_set_reset(int idereset)
|
||||
{
|
||||
atac_t *ata = (atac_t *) CONFIG_SYS_ATA_BASE_ADDR;
|
||||
|
@ -6,7 +6,6 @@
|
||||
|
||||
#include <config.h>
|
||||
#include <fdt_support.h>
|
||||
#include <ide.h>
|
||||
#include <init.h>
|
||||
#include <net.h>
|
||||
#include <netdev.h>
|
||||
|
@ -7,6 +7,7 @@
|
||||
#include <env.h>
|
||||
#include <init.h>
|
||||
#include <malloc.h>
|
||||
#include <mtd.h>
|
||||
#include <net.h>
|
||||
#include <status_led.h>
|
||||
#include <dm.h>
|
||||
|
@ -10,6 +10,8 @@
|
||||
|
||||
/* TI EEPROM MAGIC Header identifier */
|
||||
#include <linux/bitops.h>
|
||||
#include <linux/if_ether.h>
|
||||
|
||||
#define TI_EEPROM_HEADER_MAGIC 0xEE3355AA
|
||||
#define TI_DEAD_EEPROM_MAGIC 0xADEAD12C
|
||||
|
||||
@ -18,7 +20,7 @@
|
||||
#define TI_EEPROM_HDR_SERIAL_LEN 12
|
||||
#define TI_EEPROM_HDR_CONFIG_LEN 32
|
||||
#define TI_EEPROM_HDR_NO_OF_MAC_ADDR 3
|
||||
#define TI_EEPROM_HDR_ETH_ALEN 6
|
||||
#define TI_EEPROM_HDR_ETH_ALEN ETH_ALEN
|
||||
|
||||
/**
|
||||
* struct ti_am_eeprom - This structure holds data read in from the
|
||||
|
@ -15,6 +15,7 @@
|
||||
#include <init.h>
|
||||
#include <k3-ddrss.h>
|
||||
#include <spl.h>
|
||||
#include <linux/sizes.h>
|
||||
#include <asm/arch/k3-ddr.h>
|
||||
|
||||
#include "../common/tdx-cfg-block.h"
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include <efi_loader.h>
|
||||
#include <init.h>
|
||||
#include <log.h>
|
||||
#include <mtd.h>
|
||||
#include <net.h>
|
||||
#include <sata.h>
|
||||
#include <ahci.h>
|
||||
|
@ -19,7 +19,6 @@
|
||||
#include <dm/device-internal.h>
|
||||
#include <dm/uclass-internal.h>
|
||||
|
||||
#include <ide.h>
|
||||
#include <ata.h>
|
||||
|
||||
#ifdef CONFIG_LED_STATUS
|
||||
|
@ -4,7 +4,6 @@
|
||||
#include <linux/mtd/mtd.h>
|
||||
#include <linux/mtd/partitions.h>
|
||||
#include <linux/string.h>
|
||||
#include <mtd.h>
|
||||
|
||||
static int get_part(const char *partname, int *idx, loff_t *off, loff_t *size,
|
||||
loff_t *maxsize, int devtype)
|
||||
|
@ -74,6 +74,7 @@
|
||||
#include <env.h>
|
||||
#include <log.h>
|
||||
#include <malloc.h>
|
||||
#include <mtd.h>
|
||||
#include <asm/global_data.h>
|
||||
#include <jffs2/load_kernel.h>
|
||||
#include <linux/list.h>
|
||||
|
@ -36,7 +36,6 @@
|
||||
#include <env.h>
|
||||
#include <env_internal.h>
|
||||
#include <fdtdec.h>
|
||||
#include <ide.h>
|
||||
#include <init.h>
|
||||
#include <initcall.h>
|
||||
#include <kgdb.h>
|
||||
|
@ -16,6 +16,7 @@
|
||||
#include <errno.h>
|
||||
#include <image.h>
|
||||
#include <linux/libfdt.h>
|
||||
#include <asm/cache.h>
|
||||
|
||||
static int fat_registered;
|
||||
|
||||
|
@ -8,7 +8,6 @@
|
||||
#include <command.h>
|
||||
#include <env.h>
|
||||
#include <errno.h>
|
||||
#include <ide.h>
|
||||
#include <log.h>
|
||||
#include <malloc.h>
|
||||
#include <part.h>
|
||||
|
@ -6,7 +6,6 @@
|
||||
*/
|
||||
#include <command.h>
|
||||
#include <env.h>
|
||||
#include <ide.h>
|
||||
#include "part_amiga.h"
|
||||
#include <part.h>
|
||||
#include <vsprintf.h>
|
||||
|
@ -15,7 +15,6 @@
|
||||
|
||||
#include <blk.h>
|
||||
#include <command.h>
|
||||
#include <ide.h>
|
||||
#include <memalign.h>
|
||||
#include <vsprintf.h>
|
||||
#include <asm/unaligned.h>
|
||||
|
@ -21,7 +21,6 @@
|
||||
#include <asm/unaligned.h>
|
||||
#include <command.h>
|
||||
#include <fdtdec.h>
|
||||
#include <ide.h>
|
||||
#include <malloc.h>
|
||||
#include <memalign.h>
|
||||
#include <part_efi.h>
|
||||
|
@ -15,7 +15,6 @@
|
||||
#include <command.h>
|
||||
#include <log.h>
|
||||
#include <memalign.h>
|
||||
#include <ide.h>
|
||||
#include "part_mac.h"
|
||||
#include <part.h>
|
||||
|
||||
|
@ -8,6 +8,7 @@
|
||||
#include <fwu.h>
|
||||
#include <fwu_mdata.h>
|
||||
#include <memalign.h>
|
||||
#include <mtd.h>
|
||||
|
||||
#include <linux/errno.h>
|
||||
#include <linux/types.h>
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include <linux/bitops.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/printk.h>
|
||||
#include <linux/sizes.h>
|
||||
#include <power/regulator.h>
|
||||
#include <malloc.h>
|
||||
#include <memalign.h>
|
||||
|
@ -6,6 +6,7 @@
|
||||
#include <clk.h>
|
||||
#include <dm.h>
|
||||
#include <linux/bitfield.h>
|
||||
#include <linux/sizes.h>
|
||||
#include <sdhci.h>
|
||||
|
||||
/* DWCMSHC specific Mode Select value */
|
||||
|
@ -9,10 +9,10 @@
|
||||
#include <fdt_support.h>
|
||||
#include <flash.h>
|
||||
#include <log.h>
|
||||
#include <mtd.h>
|
||||
#include <asm/global_data.h>
|
||||
#include <asm/io.h>
|
||||
#include <linux/bitops.h>
|
||||
#include <linux/mtd/mtd.h>
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
|
@ -16,7 +16,6 @@
|
||||
#include <errno.h>
|
||||
#include <fdt_support.h>
|
||||
#include <flash.h>
|
||||
#include <mtd.h>
|
||||
#include <wait_bit.h>
|
||||
#include <linux/bitops.h>
|
||||
#include <mtd/cfi_flash.h>
|
||||
|
@ -222,7 +222,6 @@
|
||||
#define CPU_PORT 53
|
||||
#define IFH_LEN 7
|
||||
#define JR2_BUF_CELL_SZ 60
|
||||
#define ETH_ALEN 6
|
||||
#define PGID_BROADCAST 510
|
||||
#define PGID_UNICAST 511
|
||||
|
||||
|
@ -132,7 +132,6 @@
|
||||
#define CPU_PORT 26
|
||||
#define INTERNAL_PORT_MSK 0xFFFFFF
|
||||
#define IFH_LEN 2
|
||||
#define ETH_ALEN 6
|
||||
#define PGID_BROADCAST 28
|
||||
#define PGID_UNICAST 29
|
||||
#define PGID_SRC 80
|
||||
|
@ -126,7 +126,6 @@
|
||||
#define CPU_PORT 11
|
||||
#define INTERNAL_PORT_MSK 0x2FF
|
||||
#define IFH_LEN 4
|
||||
#define ETH_ALEN 6
|
||||
#define PGID_BROADCAST 13
|
||||
#define PGID_UNICAST 14
|
||||
#define PGID_SRC 80
|
||||
|
@ -111,7 +111,6 @@
|
||||
#define CPU_PORT 11
|
||||
#define INTERNAL_PORT_MSK 0xFF
|
||||
#define IFH_LEN 4
|
||||
#define ETH_ALEN 6
|
||||
#define PGID_BROADCAST 13
|
||||
#define PGID_UNICAST 14
|
||||
|
||||
|
@ -88,7 +88,6 @@
|
||||
#define MAC_VID 0
|
||||
#define CPU_PORT 11
|
||||
#define IFH_LEN 7
|
||||
#define ETH_ALEN 6
|
||||
#define PGID_BROADCAST 50
|
||||
#define PGID_UNICAST 51
|
||||
|
||||
|
@ -9,8 +9,7 @@
|
||||
#ifndef _LINUX_VIRTIO_NET_H
|
||||
#define _LINUX_VIRTIO_NET_H
|
||||
|
||||
/* TODO: needs to be removed! */
|
||||
#define ETH_ALEN 6
|
||||
#include <linux/if_ether.h>
|
||||
|
||||
/* The feature bitmap for virtio net */
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
#ifndef _AHCI_H_
|
||||
#define _AHCI_H_
|
||||
|
||||
#include <pci.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
#define AHCI_PCI_BAR 0x24
|
||||
#define AHCI_MAX_SG 56 /* hardware max is 64K */
|
||||
|
@ -9,7 +9,7 @@
|
||||
#ifndef __ARM_FFA_H
|
||||
#define __ARM_FFA_H
|
||||
|
||||
#include <linux/printk.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
/*
|
||||
* This header is public. It can be used by clients to access
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
/* Include the register header directly here */
|
||||
#include "../drivers/bios_emulator/include/x86emu/regs.h"
|
||||
#include <pci.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
/****************************************************************************
|
||||
REMARKS:
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include <bootdev.h>
|
||||
#include <image.h>
|
||||
#include <dm/ofnode_decl.h>
|
||||
#include <linux/list.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
struct bootstd_priv;
|
||||
struct expo;
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
#include <alist.h>
|
||||
#include <dm/ofnode_decl.h>
|
||||
#include <linux/list.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
struct udevice;
|
||||
|
@ -12,7 +12,7 @@
|
||||
#define _CADENCE_NAND_H_
|
||||
#include <clk.h>
|
||||
#include <reset.h>
|
||||
#include <linux/mtd/mtd.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/mtd/rawnand.h>
|
||||
|
||||
/*
|
||||
|
@ -6,8 +6,8 @@
|
||||
#ifndef __CBFS_H
|
||||
#define __CBFS_H
|
||||
|
||||
#include <compiler.h>
|
||||
#include <linux/compiler.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
struct cbfs_priv;
|
||||
|
||||
|
@ -60,8 +60,6 @@
|
||||
# define __BIG_ENDIAN BIG_ENDIAN
|
||||
#endif
|
||||
|
||||
#include <time.h>
|
||||
|
||||
typedef uint8_t __u8;
|
||||
typedef uint16_t __u16;
|
||||
typedef uint32_t __u32;
|
||||
|
@ -173,7 +173,6 @@ struct dfu_entity {
|
||||
unsigned int inited:1;
|
||||
};
|
||||
|
||||
struct list_head;
|
||||
extern struct list_head dfu_list;
|
||||
|
||||
#ifdef CONFIG_SET_DFU_ALT_INFO
|
||||
|
@ -9,8 +9,6 @@
|
||||
#ifndef _DW_HDMI_H
|
||||
#define _DW_HDMI_H
|
||||
|
||||
#include <edid.h>
|
||||
|
||||
#define HDMI_EDID_BLOCK_SIZE 128
|
||||
|
||||
/* Identification Registers */
|
||||
|
@ -7,7 +7,6 @@
|
||||
#ifndef __DWMMC_HW_H
|
||||
#define __DWMMC_HW_H
|
||||
|
||||
#include <asm/cache.h>
|
||||
#include <asm/io.h>
|
||||
#include <mmc.h>
|
||||
#include <linux/bitops.h>
|
||||
|
@ -11,15 +11,11 @@
|
||||
#include <blk.h>
|
||||
#include <efi_device_path.h>
|
||||
#include <event.h>
|
||||
#include <log.h>
|
||||
#include <part_efi.h>
|
||||
#include <efi_api.h>
|
||||
#include <image.h>
|
||||
#include <pe.h>
|
||||
#include <setjmp.h>
|
||||
#include <linux/list.h>
|
||||
#include <linux/sizes.h>
|
||||
#include <linux/oid_registry.h>
|
||||
|
||||
struct blk_desc;
|
||||
struct bootflow;
|
||||
|
@ -17,6 +17,7 @@
|
||||
#define _EFI_TCG2_PROTOCOL_H_
|
||||
|
||||
#include <efi_api.h>
|
||||
#include <part_efi.h>
|
||||
#include <tpm-v2.h>
|
||||
#include <tpm_tcg2.h>
|
||||
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
#include <fs.h>
|
||||
#include <asm/byteorder.h>
|
||||
#include <asm/cache.h>
|
||||
|
||||
struct disk_partition;
|
||||
|
||||
|
@ -9,7 +9,6 @@
|
||||
#include <blk.h>
|
||||
#include <efi.h>
|
||||
#include <fwu_mdata.h>
|
||||
#include <mtd.h>
|
||||
#include <u-boot/uuid.h>
|
||||
|
||||
#include <linux/types.h>
|
||||
|
@ -7,8 +7,6 @@
|
||||
#ifndef _IDE_H
|
||||
#define _IDE_H
|
||||
|
||||
#include <blk.h>
|
||||
|
||||
#define IDE_BUS(dev) (dev / (CONFIG_SYS_IDE_MAXDEVICE / CONFIG_SYS_IDE_MAXBUS))
|
||||
|
||||
/**
|
||||
|
@ -11,8 +11,6 @@
|
||||
|
||||
#include <linux/bitops.h>
|
||||
#include <linux/list.h>
|
||||
#include <linux/sizes.h>
|
||||
#include <linux/compiler.h>
|
||||
#include <linux/dma-direction.h>
|
||||
#include <cyclic.h>
|
||||
#include <part.h>
|
||||
|
@ -7,7 +7,6 @@
|
||||
#define _PART_H
|
||||
|
||||
#include <blk.h>
|
||||
#include <ide.h>
|
||||
#include <u-boot/uuid.h>
|
||||
#include <linker_lists.h>
|
||||
#include <linux/errno.h>
|
||||
|
@ -11,6 +11,7 @@
|
||||
#include <dm.h>
|
||||
#include <dm/root.h>
|
||||
#include <efi_device_path.h>
|
||||
#include <ide.h>
|
||||
#include <log.h>
|
||||
#include <net.h>
|
||||
#include <usb.h>
|
||||
|
@ -3,6 +3,7 @@
|
||||
* Copyright (c) 2024, Linaro Limited
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <fwu.h>
|
||||
#include <fwu_mdata.h>
|
||||
|
||||
|
@ -3,6 +3,7 @@
|
||||
* Copyright (c) 2024, Linaro Limited
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <fwu.h>
|
||||
#include <fwu_mdata.h>
|
||||
#include <log.h>
|
||||
|
Loading…
Reference in New Issue
Block a user