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:
Elyes HAOUAS 2020-05-28 08:54:42 +02:00 committed by Patrick Georgi
parent 48378e1f8d
commit 0c154af217
32 changed files with 2 additions and 33 deletions

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: BSD-3-Clause */
#include <stdint.h>
#include <types.h>
#include <arch/cache.h>
#include <arch/exception.h>

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: BSD-3-Clause */
#include <stdint.h>
#include <types.h>
#include <arch/barrier.h>
#include <arch/exception.h>

View File

@ -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>

View File

@ -17,7 +17,6 @@
#include <commonlib/endian.h>
#include <stdint.h>
#include <string.h>
#include <types.h>
#include <delay.h>

View File

@ -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

View File

@ -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>

View File

@ -7,7 +7,6 @@
#ifndef __DRIVERS_UART_PL011_H
#define __DRIVERS_UART_PL011_H
#include <stdint.h>
#include <types.h>
/* PL011 r1p5 registers */

View File

@ -3,7 +3,6 @@
#ifndef EC_GOOGLE_WILCO_COMMANDS_H
#define EC_GOOGLE_WILCO_COMMANDS_H
#include <stdint.h>
#include <types.h>
enum {

View File

@ -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>

View File

@ -15,7 +15,6 @@
* \brief Utilities for decoding DDR3 SPDs
*/
#include <stdint.h>
#include <spd.h>
#include <device/dram/common.h>
#include <types.h>

View File

@ -14,7 +14,6 @@
* \brief Utilities for decoding DDR4 SPDs
*/
#include <stdint.h>
#include <spd.h>
#include <device/dram/common.h>
#include <types.h>

View File

@ -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. */

View File

@ -3,7 +3,6 @@
#include <console/console.h>
#include <device/device.h>
#include <option.h>
#include <stdint.h>
#include <types.h>
/*

View File

@ -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"

View File

@ -9,7 +9,6 @@
#ifndef TSS_H_
#define TSS_H_
#include <stdint.h>
#include <types.h>
#include <security/tpm/tss/common/tss_common.h>

View File

@ -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"

View File

@ -4,7 +4,6 @@
#define __AMDBLOCKS_ACPIMMIO_H__
#include <device/mmio.h>
#include <stdint.h>
#include <types.h>
#include <amdblocks/acpimmio_map.h>

View File

@ -4,7 +4,6 @@
#define __AMDBLOCKS_LPC_H__
#include <types.h>
#include <stdint.h>
/* PCI registers for D14F3 */
#define LPC_PCI_CONTROL 0x40

View File

@ -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>

View File

@ -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 */

View File

@ -3,7 +3,6 @@
#ifndef __SOC_CAVIUM_CN81XX_TIMER_H__
#define __SOC_CAVIUM_CN81XX_TIMER_H__
#include <stdint.h>
#include <types.h>
/* Watchdog functions */

View File

@ -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);

View File

@ -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 */

View File

@ -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>

View File

@ -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 */

View File

@ -4,7 +4,6 @@
#define SOC_MEDIATEK_MT8173_EMI_H
#include <soc/dramc_common.h>
#include <stdint.h>
#include <types.h>
/* DDR type */

View File

@ -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>

View File

@ -4,7 +4,6 @@
#define SOC_MEDIATEK_MT8183_SPM_H
#include <soc/addressmap.h>
#include <stdint.h>
#include <types.h>
/* SPM READ/WRITE CFG */

View File

@ -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 */

View File

@ -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>

View File

@ -3,7 +3,6 @@
#ifndef __NVIDIA_TEGRA210_DMA_H__
#define __NVIDIA_TEGRA210_DMA_H__
#include <stdint.h>
#include <soc/addressmap.h>
#include <types.h>

View File

@ -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>