src: Remove unused 'include <types.h>'

Files found using:
diff <(git grep -l '#include <types.h>' -- src/) <(git grep -l 'BIT(\|size_t\|wchar_t\|wint_t\|NULL\|DEVTREE_EARLY\|DEVTREE_CONST\|MAYBE_STATIC_NONZERO\|zeroptr\|int8_t\|int16_t\|int32_t\|int64_t\|intptr_t\|intmax_t\|s8\|u8\|s16\|u16\|s32\|u32\|s64\|u64\|INT8_MIN\|INT8_MAX\|INT16_MIN\|INT16_MAX\|INT32_MIN\|INT32_MAX\|INT64_MIN\|INT64_MAX\|INTMAX_MIN\|INTMAX_MAX\|bool\|true\|false\|cb_err\|CB_SUCCESS\|CB_ERR\|CB_ERR_ARG\|CB_CMOS_\|CB_KBD_\|CB_I2C_\|cb_err_t\|DIV_ROUND_CLOSEST\|container_of\|__unused\|alloca(\|ARRAY_SIZE\|ALIGN\|ALIGN_UP\|ALIGN_DOWN\|IS_ALIGNED\|__CMP_UNSAFE\|MIN_UNSAFE\|MAX_UNSAFE\|__CMP_SAFE\|__CMP\|MIN(\|MAX(\|ABS(\|IS_POWER_OF_2\|POWER_OF_2\|DIV_ROUND_UP\|SWAP(\|KiB\|MiB\|GiB\|KHz\|MHz\|GHz\|offsetof(\|check_member\|member_size' -- src/)|grep -v vendor |grep '<'

Change-Id: I5d99d844cc58d80acb505d98da9d3ec76319b2eb
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41677
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Elyes HAOUAS 2020-05-23 13:26:04 +02:00 committed by Patrick Georgi
parent 5a8e072020
commit 225be5f7ee
55 changed files with 1 additions and 55 deletions

View File

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <acpi/acpi_gnvs.h> #include <acpi/acpi_gnvs.h>
#include <types.h>
#include <ec/google/chromeec/ec.h> #include <ec/google/chromeec/ec.h>
#include <vendorcode/google/chromeos/gnvs.h> #include <vendorcode/google/chromeos/gnvs.h>

View File

@ -2,7 +2,6 @@
#ifndef ARMV7_H #ifndef ARMV7_H
#define ARMV7_H #define ARMV7_H
#include <types.h>
/* Cortex-A9 revisions */ /* Cortex-A9 revisions */
#define MIDR_CORTEX_A9_R0P1 0x410FC091 #define MIDR_CORTEX_A9_R0P1 0x410FC091

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <cpu/x86/msr.h> #include <cpu/x86/msr.h>
#include "model_206ax.h" #include "model_206ax.h"

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <device/device.h> #include <device/device.h>
#include <device/smbus.h> #include <device/smbus.h>
#include <console/console.h> #include <console/console.h>

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <option.h> #include <option.h>
#include <device/device.h> #include <device/device.h>

View File

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <types.h>
#include <bootstate.h> #include <bootstate.h>
#include <security/tpm/tspi.h> #include <security/tpm/tspi.h>

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <console/console.h> #include <console/console.h>
#include <trace.h> #include <trace.h>

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <arch/ioapic.h> #include <arch/ioapic.h>
#include <arch/smp/mpspec.h> #include <arch/smp/mpspec.h>

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <string.h> #include <string.h>
#include <console/console.h> #include <console/console.h>
#include <acpi/acpi.h> #include <acpi/acpi.h>

View File

@ -2,7 +2,6 @@
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <vendorcode/google/chromeos/chromeos.h> #include <vendorcode/google/chromeos/chromeos.h>
#include <types.h>
#include <console/console.h> #include <console/console.h>
#include <ec/google/chromeec/ec.h> #include <ec/google/chromeec/ec.h>
#include "ec.h" #include "ec.h"

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <acpi/acpi_gnvs.h> #include <acpi/acpi_gnvs.h>
#include <device/device.h> #include <device/device.h>

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <cpu/x86/smm.h> #include <cpu/x86/smm.h>
#include <device/device.h> #include <device/device.h>

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <superio/ite/it8772f/it8772f.h> #include <superio/ite/it8772f/it8772f.h>
#include "../../onboard.h" #include "../../onboard.h"

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include "../../onboard.h" #include "../../onboard.h"
void set_power_led(int state) void set_power_led(int state)

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include "../../onboard.h" #include "../../onboard.h"
void set_power_led(int state) void set_power_led(int state)

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <superio/ite/it8772f/it8772f.h> #include <superio/ite/it8772f/it8772f.h>
#include "../../onboard.h" #include "../../onboard.h"

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include "../../onboard.h" #include "../../onboard.h"
void set_power_led(int state) void set_power_led(int state)

View File

@ -5,7 +5,6 @@
#include <ec/google/chromeec/ec.h> #include <ec/google/chromeec/ec.h>
#include "ec.h" #include "ec.h"
#include <vendorcode/google/chromeos/chromeos.h> #include <vendorcode/google/chromeos/chromeos.h>
#include <types.h>
void mainboard_ec_init(void) void mainboard_ec_init(void)
{ {

View File

@ -18,7 +18,6 @@
#include <soc/trustzone.h> #include <soc/trustzone.h>
#include <soc/wakeup.h> #include <soc/wakeup.h>
#include <timestamp.h> #include <timestamp.h>
#include <types.h>
#include "exynos5250.h" #include "exynos5250.h"

View File

@ -4,7 +4,6 @@
#include <soc/cdp.h> #include <soc/cdp.h>
#include <soc/ebi2.h> #include <soc/ebi2.h>
#include <soc/clock.h> #include <soc/clock.h>
#include <types.h>
#include <boardid.h> #include <boardid.h>
void ipq_configure_gpio(const gpio_func_data_t *gpio, unsigned int count) void ipq_configure_gpio(const gpio_func_data_t *gpio, unsigned int count)

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <acpi/acpi_gnvs.h> #include <acpi/acpi_gnvs.h>
#include <arch/ioapic.h> #include <arch/ioapic.h>

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <superio/ite/it8772f/it8772f.h> #include <superio/ite/it8772f/it8772f.h>
#include "onboard.h" #include "onboard.h"

View File

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <types.h>
#include <console/console.h> #include <console/console.h>
#include <ec/google/chromeec/ec.h> #include <ec/google/chromeec/ec.h>
#include "ec.h" #include "ec.h"

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <acpi/acpi_gnvs.h> #include <acpi/acpi_gnvs.h>
#include <device/device.h> #include <device/device.h>

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <acpi/acpi_gnvs.h> #include <acpi/acpi_gnvs.h>
#include <arch/ioapic.h> #include <arch/ioapic.h>

View File

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <types.h>
#include <console/console.h> #include <console/console.h>
#include <ec/google/chromeec/ec.h> #include <ec/google/chromeec/ec.h>
#include "ec.h" #include "ec.h"

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <device/device.h> #include <device/device.h>
#include <console/console.h> #include <console/console.h>
#if CONFIG(VGA_ROM_RUN) #if CONFIG(VGA_ROM_RUN)

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <acpi/acpi_gnvs.h> #include <acpi/acpi_gnvs.h>
#include <device/device.h> #include <device/device.h>

View File

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <types.h>
#include <console/console.h> #include <console/console.h>
#include <ec/google/chromeec/ec.h> #include <ec/google/chromeec/ec.h>
#include "ec.h" #include "ec.h"

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <smbios.h> #include <smbios.h>
#include <cpu/x86/smm.h> #include <cpu/x86/smm.h>
#include <device/device.h> #include <device/device.h>

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <acpi/acpi_gnvs.h> #include <acpi/acpi_gnvs.h>
#include <device/device.h> #include <device/device.h>

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci_ops.h> #include <device/pci_ops.h>
#include <drivers/intel/gma/int15.h> #include <drivers/intel/gma/int15.h>

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <acpi/acpi_gnvs.h> #include <acpi/acpi_gnvs.h>
#include <device/device.h> #include <device/device.h>

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <cpu/x86/smm.h> #include <cpu/x86/smm.h>
#include <device/device.h> #include <device/device.h>
#include <drivers/intel/gma/int15.h> #include <drivers/intel/gma/int15.h>

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <acpi/acpi_gnvs.h> #include <acpi/acpi_gnvs.h>
#include <device/device.h> #include <device/device.h>

View File

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <types.h>
#include <console/console.h> #include <console/console.h>
#include <ec/smsc/mec1308/ec.h> #include <ec/smsc/mec1308/ec.h>
#include "ec.h" #include "ec.h"

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <device/device.h> #include <device/device.h>
#include <drivers/intel/gma/int15.h> #include <drivers/intel/gma/int15.h>
#include <acpi/acpi.h> #include <acpi/acpi.h>

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <acpi/acpi_gnvs.h> #include <acpi/acpi_gnvs.h>
#include <device/device.h> #include <device/device.h>

View File

@ -7,7 +7,6 @@
#include <soc/acpi.h> #include <soc/acpi.h>
#include <soc/iomap.h> #include <soc/iomap.h>
#include <soc/nvs.h> #include <soc/nvs.h>
#include <types.h>
#include <boardid.h> #include <boardid.h>
#include "onboard.h" #include "onboard.h"

View File

@ -5,7 +5,6 @@
#include <ec/google/chromeec/ec.h> #include <ec/google/chromeec/ec.h>
#include "ec.h" #include "ec.h"
#include <vendorcode/google/chromeos/chromeos.h> #include <vendorcode/google/chromeos/chromeos.h>
#include <types.h>
void mainboard_ec_init(void) void mainboard_ec_init(void)
{ {

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <acpi/acpi_gnvs.h> #include <acpi/acpi_gnvs.h>
#include <arch/ioapic.h> #include <arch/ioapic.h>

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <cpu/x86/smm.h> #include <cpu/x86/smm.h>
#include <device/device.h> #include <device/device.h>
#include <drivers/intel/gma/int15.h> #include <drivers/intel/gma/int15.h>

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <acpi/acpi_gnvs.h> #include <acpi/acpi_gnvs.h>
#include <device/device.h> #include <device/device.h>

View File

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <types.h>
#include <console/console.h> #include <console/console.h>
#include <ec/smsc/mec1308/ec.h> #include <ec/smsc/mec1308/ec.h>
#include "ec.h" #include "ec.h"

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <acpi/acpi_gnvs.h> #include <acpi/acpi_gnvs.h>
#include <device/device.h> #include <device/device.h>

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <acpi/acpi_gnvs.h> #include <acpi/acpi_gnvs.h>
#include <device/device.h> #include <device/device.h>

View File

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <device/mmio.h> #include <device/mmio.h>
#include <types.h>
#include <bootblock_common.h> #include <bootblock_common.h>
#include <console/uart.h> #include <console/uart.h>
#include <cpu/ti/am335x/clock.h> #include <cpu/ti/am335x/clock.h>

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <console/console.h> #include <console/console.h>
#include <device/device.h> #include <device/device.h>
#include "sandybridge.h" #include "sandybridge.h"

View File

@ -12,7 +12,6 @@
#include <drivers/intel/gma/opregion.h> #include <drivers/intel/gma/opregion.h>
#include <drivers/intel/gma/libgfxinit.h> #include <drivers/intel/gma/libgfxinit.h>
#include <pc80/vga.h> #include <pc80/vga.h>
#include <types.h>
#include "chip.h" #include "chip.h"
#include "drivers/intel/gma/i915_reg.h" #include "drivers/intel/gma/i915_reg.h"

View File

@ -1,5 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <device/i2c.h> #include <device/i2c.h>
#ifndef __SOC_CAVIUM_CN81XX_INCLUDE_SOC_TWSI_H #ifndef __SOC_CAVIUM_CN81XX_INCLUDE_SOC_TWSI_H

View File

@ -4,7 +4,6 @@
#define _INTEL_COMMON_VBT_H_ #define _INTEL_COMMON_VBT_H_
#include <commonlib/region.h> #include <commonlib/region.h>
#include <types.h>
/* /*
* Returns VBT pointer and mapping after checking prerequisites for Pre OS * Returns VBT pointer and mapping after checking prerequisites for Pre OS

View File

@ -4,7 +4,6 @@
#define _SOC_QUALCOMM_QCS405_SYMBOLS_H_ #define _SOC_QUALCOMM_QCS405_SYMBOLS_H_
#include <symbols.h> #include <symbols.h>
#include <types.h>
DECLARE_REGION(ssram); DECLARE_REGION(ssram);
DECLARE_REGION(bsram); DECLARE_REGION(bsram);

View File

@ -2,7 +2,6 @@
#include <console/uart.h> #include <console/uart.h>
#include <gpio.h> #include <gpio.h>
#include <types.h>
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#define UART_TX_PIN GPIO(44) #define UART_TX_PIN GPIO(44)

View File

@ -2,7 +2,6 @@
#include <console/uart.h> #include <console/uart.h>
#include <gpio.h> #include <gpio.h>
#include <types.h>
#define UART_TX_PIN GPIO(4) #define UART_TX_PIN GPIO(4)

View File

@ -3,7 +3,6 @@
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <acpi/acpi_gnvs.h> #include <acpi/acpi_gnvs.h>
#include <acpi/acpigen.h> #include <acpi/acpigen.h>
#include <types.h>
#include <string.h> #include <string.h>
#include <version.h> #include <version.h>