src: Remove redundant includes
<types.h> is supposed to provide <commonlib/bsd/cb_err.h>, <stdbool.h>,<stdint.h> and <stddef.h>. So remove those includes each time when <types.h> is included. Change-Id: I886f02255099f3005852a2e6095b21ca86a940ed Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/41817 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
parent
48378e1f8d
commit
0c154af217
|
@ -1,6 +1,5 @@
|
|||
/* SPDX-License-Identifier: BSD-3-Clause */
|
||||
|
||||
#include <stdint.h>
|
||||
#include <types.h>
|
||||
#include <arch/cache.h>
|
||||
#include <arch/exception.h>
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
/* SPDX-License-Identifier: BSD-3-Clause */
|
||||
|
||||
#include <stdint.h>
|
||||
#include <types.h>
|
||||
#include <arch/barrier.h>
|
||||
#include <arch/exception.h>
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
#include <console/console.h>
|
||||
#include <cpu/cpu.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <delay.h>
|
||||
#include <device/cardbus.h>
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
|
||||
|
||||
#include <commonlib/endian.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <types.h>
|
||||
#include <delay.h>
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#ifndef _FSP2_0_INFO_HEADER_H_
|
||||
#define _FSP2_0_INFO_HEADER_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#include <types.h>
|
||||
|
||||
#define FSP_HDR_OFFSET 0x94
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <types.h>
|
||||
#include <stddef.h>
|
||||
#include <bootstate.h>
|
||||
#include <security/tpm/tspi.h>
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
#ifndef __DRIVERS_UART_PL011_H
|
||||
#define __DRIVERS_UART_PL011_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <types.h>
|
||||
|
||||
/* PL011 r1p5 registers */
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#ifndef EC_GOOGLE_WILCO_COMMANDS_H
|
||||
#define EC_GOOGLE_WILCO_COMMANDS_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <types.h>
|
||||
|
||||
enum {
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#include <console/console.h>
|
||||
#include <delay.h>
|
||||
#include <ec/google/common/mec.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <timer.h>
|
||||
#include <types.h>
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
* \brief Utilities for decoding DDR3 SPDs
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <spd.h>
|
||||
#include <device/dram/common.h>
|
||||
#include <types.h>
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
* \brief Utilities for decoding DDR4 SPDs
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <spd.h>
|
||||
#include <device/dram/common.h>
|
||||
#include <types.h>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
#ifndef __LIB_H__
|
||||
#define __LIB_H__
|
||||
#include <stdint.h>
|
||||
|
||||
#include <types.h>
|
||||
|
||||
/* Defined in src/lib/lzma.c. Returns decompressed size or 0 on error. */
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#include <console/console.h>
|
||||
#include <device/device.h>
|
||||
#include <option.h>
|
||||
#include <stdint.h>
|
||||
#include <types.h>
|
||||
|
||||
/*
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#include <device/mmio.h>
|
||||
#include <console/console.h>
|
||||
#include <delay.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <types.h>
|
||||
#include "x4x.h"
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
#ifndef TSS_H_
|
||||
#define TSS_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#include <types.h>
|
||||
|
||||
#include <security/tpm/tss/common/tss_common.h>
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
* This file includes a subset of definitions of TPM protocol version 2.x
|
||||
* constants and structures needed for functions used in coreboot.
|
||||
*/
|
||||
#include <stdint.h>
|
||||
#include <types.h>
|
||||
#include "../common/tss_common.h"
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#define __AMDBLOCKS_ACPIMMIO_H__
|
||||
|
||||
#include <device/mmio.h>
|
||||
#include <stdint.h>
|
||||
#include <types.h>
|
||||
#include <amdblocks/acpimmio_map.h>
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#define __AMDBLOCKS_LPC_H__
|
||||
|
||||
#include <types.h>
|
||||
#include <stdint.h>
|
||||
|
||||
/* PCI registers for D14F3 */
|
||||
#define LPC_PCI_CONTROL 0x40
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
#include <console/console.h>
|
||||
#include <espi.h>
|
||||
#include <soc/pci_devs.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <timer.h>
|
||||
#include <types.h>
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#ifndef __SOC_CAVIUM_CN81XX_INCLUDE_SOC_SOC_H
|
||||
#define __SOC_CAVIUM_CN81XX_INCLUDE_SOC_SOC_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <types.h>
|
||||
|
||||
/* MIO BOOT Registers */
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#ifndef __SOC_CAVIUM_CN81XX_TIMER_H__
|
||||
#define __SOC_CAVIUM_CN81XX_TIMER_H__
|
||||
|
||||
#include <stdint.h>
|
||||
#include <types.h>
|
||||
|
||||
/* Watchdog functions */
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#ifndef __SOC_CAVIUM_COMMON_INCLUDE_SOC_UART_H
|
||||
#define __SOC_CAVIUM_COMMON_INCLUDE_SOC_UART_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <types.h>
|
||||
|
||||
int uart_is_enabled(const size_t bus);
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#ifndef SOC_INTEL_COMMON_CSE_H
|
||||
#define SOC_INTEL_COMMON_CSE_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <types.h>
|
||||
|
||||
/* MKHI Command groups */
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
#include <console/console.h>
|
||||
#include <spi_flash.h>
|
||||
#include <spi-generic.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <symbols.h>
|
||||
#include <timer.h>
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#ifndef _DRAMC_REGISTER_H_
|
||||
#define _DRAMC_REGISTER_H_
|
||||
|
||||
#include <stddef.h>
|
||||
#include <types.h>
|
||||
|
||||
#define DRIVING_DS2_0 7 /* DS[2:0] 7->6 */
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#define SOC_MEDIATEK_MT8173_EMI_H
|
||||
|
||||
#include <soc/dramc_common.h>
|
||||
#include <stdint.h>
|
||||
#include <types.h>
|
||||
|
||||
/* DDR type */
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#ifndef SOC_MEDIATEK_MT8183_EMI_H
|
||||
#define SOC_MEDIATEK_MT8183_EMI_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <types.h>
|
||||
#include <soc/dramc_common_mt8183.h>
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#define SOC_MEDIATEK_MT8183_SPM_H
|
||||
|
||||
#include <soc/addressmap.h>
|
||||
#include <stdint.h>
|
||||
#include <types.h>
|
||||
|
||||
/* SPM READ/WRITE CFG */
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
#ifndef __SOC_NVIDIA_TEGRA_DC_H
|
||||
#define __SOC_NVIDIA_TEGRA_DC_H
|
||||
|
||||
#include <device/device.h>
|
||||
#include <stddef.h>
|
||||
#include <types.h>
|
||||
|
||||
/* Register definitions for the Tegra display controller */
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
#include <boot_device.h>
|
||||
#include <console/console.h>
|
||||
#include <delay.h>
|
||||
#include <stdint.h>
|
||||
#include <soc/addressmap.h>
|
||||
#include <soc/dma.h>
|
||||
#include <soc/spi.h>
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#ifndef __NVIDIA_TEGRA210_DMA_H__
|
||||
#define __NVIDIA_TEGRA210_DMA_H__
|
||||
|
||||
#include <stdint.h>
|
||||
#include <soc/addressmap.h>
|
||||
#include <types.h>
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
#include <boot_device.h>
|
||||
#include <console/console.h>
|
||||
#include <delay.h>
|
||||
#include <stdint.h>
|
||||
#include <spi-generic.h>
|
||||
#include <spi_flash.h>
|
||||
#include <soc/addressmap.h>
|
||||
|
|
Loading…
Reference in New Issue