HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/37414 )
Change subject: [WIP] src: Remove unused 'include <stddef.h> ......................................................................
[WIP] src: Remove unused 'include <stddef.h>
Change-Id: I64d0d63a93b625e9792790c93b07851e4491ab34 Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- M src/arch/riscv/arch_timer.c M src/arch/riscv/misaligned.c M src/arch/riscv/smp.c M src/arch/x86/include/arch/ebda.h M src/arch/x86/include/smm.h M src/commonlib/include/commonlib/rmodule-defs.h M src/console/printk.c M src/cpu/ti/am335x/cbmem.c M src/cpu/ti/am335x/header.c M src/drivers/elog/boot_count.c M src/drivers/intel/fsp2_0/include/fsp/api.h M src/drivers/intel/fsp2_0/include/fsp/soc_binding.h M src/drivers/tpm/tpm.c M src/drivers/usb/ehci_debug.c M src/drivers/usb/gadget.c M src/drivers/usb/pci_ehci.c M src/include/device/pci_rom.h M src/include/list.h M src/include/thread.h M src/lib/edid.c M src/lib/timer_queue.c M src/lib/timestamp.c M src/mainboard/google/daisy/memory.c M src/mainboard/google/eve/romstage.c M src/mainboard/google/kukui/boardid.c M src/mainboard/google/peach_pit/memory.c M src/mainboard/intel/baskingridge/romstage.c M src/mainboard/razer/blade_stealth_kbl/romstage.c M src/northbridge/amd/agesa/agesa_helper.h M src/northbridge/intel/gm45/igd.c M src/northbridge/intel/gm45/pcie.c M src/northbridge/intel/gm45/pm.c M src/northbridge/intel/gm45/thermal.c M src/security/vboot/vboot_common.c M src/soc/amd/picasso/chip.h M src/soc/intel/baytrail/romstage/pmc.c M src/soc/intel/baytrail/romstage/raminit.c M src/soc/intel/baytrail/romstage/romstage.c M src/soc/intel/braswell/romstage/romstage.c M src/soc/intel/broadwell/romstage/romstage.c M src/soc/intel/cannonlake/include/soc/gpio_defs.h M src/soc/intel/cannonlake/include/soc/gpio_defs_cnp_h.h M src/soc/intel/icelake/include/soc/gpio_defs.h M src/soc/intel/skylake/include/soc/gpio_defs.h M src/soc/intel/tigerlake/include/soc/gpio_defs.h M src/soc/mediatek/common/cbmem.c M src/soc/mediatek/common/ddp.c M src/soc/mediatek/common/include/soc/gpio_common.h M src/soc/mediatek/common/include/soc/usb_common.h M src/soc/mediatek/common/mtcmos.c M src/soc/mediatek/mt8173/ddp.c M src/soc/mediatek/mt8173/include/soc/addressmap.h M src/soc/mediatek/mt8173/include/soc/dramc_register.h M src/soc/mediatek/mt8173/include/soc/spm.h M src/soc/mediatek/mt8183/ddp.c M src/soc/mediatek/mt8183/pll.c M src/soc/nvidia/tegra/dc.h M src/soc/nvidia/tegra124/dma.c M src/soc/nvidia/tegra124/include/soc/addressmap.h M src/soc/nvidia/tegra124/include/soc/emc.h M src/soc/nvidia/tegra124/include/soc/mc.h M src/soc/nvidia/tegra124/include/soc/sdram_param.h M src/soc/nvidia/tegra124/include/soc/spi.h M src/soc/nvidia/tegra210/dma.c M src/soc/nvidia/tegra210/include/soc/clk_rst.h M src/soc/nvidia/tegra210/include/soc/emc.h M src/soc/nvidia/tegra210/include/soc/mc.h M src/soc/nvidia/tegra210/include/soc/sdram_param.h M src/soc/nvidia/tegra210/include/soc/spi.h M src/soc/rockchip/common/include/soc/spi.h M src/soc/rockchip/common/vop.c M src/soc/rockchip/rk3288/display.c M src/soc/rockchip/rk3288/soc.c M src/soc/rockchip/rk3399/display.c M src/soc/rockchip/rk3399/soc.c M src/soc/samsung/exynos5250/cbmem.c M src/soc/samsung/exynos5250/cpu.c M src/soc/samsung/exynos5420/cbmem.c M src/soc/samsung/exynos5420/cpu.c M src/soc/samsung/exynos5420/i2c.c M src/soc/sifive/fu540/otp.c M src/soc/sifive/fu540/uart.c M src/southbridge/amd/cimx/sb800/SBPLATFORM.h M src/southbridge/intel/lynxpoint/pcie.c 84 files changed, 0 insertions(+), 84 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/14/37414/1
diff --git a/src/arch/riscv/arch_timer.c b/src/arch/riscv/arch_timer.c index 55b1f72..0467f68 100644 --- a/src/arch/riscv/arch_timer.c +++ b/src/arch/riscv/arch_timer.c @@ -16,7 +16,6 @@ #include <device/mmio.h> #include <arch/encoding.h> #include <console/console.h> -#include <stddef.h> #include <timer.h> #include <mcall.h>
diff --git a/src/arch/riscv/misaligned.c b/src/arch/riscv/misaligned.c index ebff2d6..4e3bd48 100644 --- a/src/arch/riscv/misaligned.c +++ b/src/arch/riscv/misaligned.c @@ -13,7 +13,6 @@ * GNU General Public License for more details. */
-#include <stddef.h> #include <stdint.h> #include <vm.h> #include <arch/exception.h> diff --git a/src/arch/riscv/smp.c b/src/arch/riscv/smp.c index b32e4b8..61b9353 100644 --- a/src/arch/riscv/smp.c +++ b/src/arch/riscv/smp.c @@ -13,7 +13,6 @@ * GNU General Public License for more details. */
-#include <stddef.h> #include <arch/encoding.h> #include <arch/smp/smp.h> #include <arch/smp/spinlock.h> diff --git a/src/arch/x86/include/arch/ebda.h b/src/arch/x86/include/arch/ebda.h index 6ee3332..083d687 100644 --- a/src/arch/x86/include/arch/ebda.h +++ b/src/arch/x86/include/arch/ebda.h @@ -16,7 +16,6 @@ #define __ARCH_EBDA_H
#include <stdint.h> -#include <stddef.h>
#define X86_BDA_SIZE 0x200 #define X86_BDA_BASE ((void *)0x400) diff --git a/src/arch/x86/include/smm.h b/src/arch/x86/include/smm.h index 320bac6..63c93eb 100644 --- a/src/arch/x86/include/smm.h +++ b/src/arch/x86/include/smm.h @@ -11,7 +11,6 @@ * GNU General Public License for more details. */
-#include <stddef.h> #include <stdint.h> #include <cpu/x86/smm.h>
diff --git a/src/commonlib/include/commonlib/rmodule-defs.h b/src/commonlib/include/commonlib/rmodule-defs.h index de06941..00cc449 100644 --- a/src/commonlib/include/commonlib/rmodule-defs.h +++ b/src/commonlib/include/commonlib/rmodule-defs.h @@ -14,7 +14,6 @@ #define RMODULE_DEFS_H
#include <stdint.h> -#include <stddef.h>
#define RMODULE_MAGIC 0xf8fe #define RMODULE_VERSION_1 1 diff --git a/src/console/printk.c b/src/console/printk.c index a08dd2f..f2f6e9a 100644 --- a/src/console/printk.c +++ b/src/console/printk.c @@ -19,7 +19,6 @@ #include <console/vtxprintf.h> #include <smp/spinlock.h> #include <smp/node.h> -#include <stddef.h> #include <trace.h> #include <timer.h>
diff --git a/src/cpu/ti/am335x/cbmem.c b/src/cpu/ti/am335x/cbmem.c index 2ecca65..37ff7bf 100644 --- a/src/cpu/ti/am335x/cbmem.c +++ b/src/cpu/ti/am335x/cbmem.c @@ -11,7 +11,6 @@ * GNU General Public License for more details. */
-#include <stddef.h> #include <cbmem.h> #include <symbols.h>
diff --git a/src/cpu/ti/am335x/header.c b/src/cpu/ti/am335x/header.c index bef1e56..13d5935 100644 --- a/src/cpu/ti/am335x/header.c +++ b/src/cpu/ti/am335x/header.c @@ -12,7 +12,6 @@ * GNU General Public License for more details. */
-#include <stddef.h> #include <stdint.h> #include <symbols.h>
diff --git a/src/drivers/elog/boot_count.c b/src/drivers/elog/boot_count.c index a6efb01..d927e4a 100644 --- a/src/drivers/elog/boot_count.c +++ b/src/drivers/elog/boot_count.c @@ -14,7 +14,6 @@ #include <console/console.h> #include <ip_checksum.h> #include <pc80/mc146818rtc.h> -#include <stddef.h> #include <stdint.h> #include <elog.h>
diff --git a/src/drivers/intel/fsp2_0/include/fsp/api.h b/src/drivers/intel/fsp2_0/include/fsp/api.h index b63cd04..e4c2e47 100644 --- a/src/drivers/intel/fsp2_0/include/fsp/api.h +++ b/src/drivers/intel/fsp2_0/include/fsp/api.h @@ -15,7 +15,6 @@ #ifndef _FSP2_0_API_H_ #define _FSP2_0_API_H_
-#include <stddef.h> #include <stdint.h> #include <fsp/soc_binding.h> #include <soc/intel/common/mma.h> diff --git a/src/drivers/intel/fsp2_0/include/fsp/soc_binding.h b/src/drivers/intel/fsp2_0/include/fsp/soc_binding.h index 931e427..72f5c90 100644 --- a/src/drivers/intel/fsp2_0/include/fsp/soc_binding.h +++ b/src/drivers/intel/fsp2_0/include/fsp/soc_binding.h @@ -14,7 +14,6 @@ #ifndef _FSP2_0_SOC_BINDING_H_ #define _FSP2_0_SOC_BINDING_H_
-#include <stddef.h>
#pragma pack(push) /* diff --git a/src/drivers/tpm/tpm.c b/src/drivers/tpm/tpm.c index b654666..6c91b7b 100644 --- a/src/drivers/tpm/tpm.c +++ b/src/drivers/tpm/tpm.c @@ -12,7 +12,6 @@ */
#include <types.h> -#include <stddef.h> #include <bootstate.h> #include <security/tpm/tspi.h>
diff --git a/src/drivers/usb/ehci_debug.c b/src/drivers/usb/ehci_debug.c index 318dfe7..c62715d 100644 --- a/src/drivers/usb/ehci_debug.c +++ b/src/drivers/usb/ehci_debug.c @@ -11,7 +11,6 @@ * GNU General Public License for more details. */
-#include <stddef.h> #include <console/console.h> #include <console/usb.h> #include <arch/io.h> diff --git a/src/drivers/usb/gadget.c b/src/drivers/usb/gadget.c index 61e1031..913f56b 100644 --- a/src/drivers/usb/gadget.c +++ b/src/drivers/usb/gadget.c @@ -11,7 +11,6 @@ * GNU General Public License for more details. */
-#include <stddef.h> #include <console/console.h> #include <string.h>
diff --git a/src/drivers/usb/pci_ehci.c b/src/drivers/usb/pci_ehci.c index dfc78cc..74b6c61 100644 --- a/src/drivers/usb/pci_ehci.c +++ b/src/drivers/usb/pci_ehci.c @@ -11,7 +11,6 @@ * GNU General Public License for more details. */
-#include <stddef.h> #include <console/console.h> #include <device/pci_ehci.h> #include <device/mmio.h> diff --git a/src/include/device/pci_rom.h b/src/include/device/pci_rom.h index 82f3c40..e88e7a5 100644 --- a/src/include/device/pci_rom.h +++ b/src/include/device/pci_rom.h @@ -1,7 +1,6 @@ #ifndef PCI_ROM_H #define PCI_ROM_H #include <endian.h> -#include <stddef.h> #include <arch/acpi.h>
#define PCI_ROM_HDR 0xAA55 diff --git a/src/include/list.h b/src/include/list.h index 201a8d3..c75d947 100644 --- a/src/include/list.h +++ b/src/include/list.h @@ -18,7 +18,6 @@ #ifndef __LIST_H__ #define __LIST_H__
-#include <stddef.h> #include <stdint.h>
struct list_node { diff --git a/src/include/thread.h b/src/include/thread.h index b66803e..284a749 100644 --- a/src/include/thread.h +++ b/src/include/thread.h @@ -15,7 +15,6 @@ #ifndef THREAD_H_ #define THREAD_H_
-#include <stddef.h> #include <stdint.h> #include <bootstate.h> #include <arch/cpu.h> diff --git a/src/lib/edid.c b/src/lib/edid.c index fd7f5ba..8cbb279 100644 --- a/src/lib/edid.c +++ b/src/lib/edid.c @@ -29,7 +29,6 @@ */
#include <assert.h> -#include <stddef.h> #include <console/console.h> #include <ctype.h> #include <stdint.h> diff --git a/src/lib/timer_queue.c b/src/lib/timer_queue.c index 5eaaa93..a29ff1b 100644 --- a/src/lib/timer_queue.c +++ b/src/lib/timer_queue.c @@ -12,7 +12,6 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ -#include <stddef.h> #include <timer.h>
#define MAX_TIMER_QUEUE_ENTRIES 64 diff --git a/src/lib/timestamp.c b/src/lib/timestamp.c index 7c7210c..c589d37 100644 --- a/src/lib/timestamp.c +++ b/src/lib/timestamp.c @@ -15,7 +15,6 @@ */
#include <assert.h> -#include <stddef.h> #include <stdint.h> #include <console/console.h> #include <cbmem.h> diff --git a/src/mainboard/google/daisy/memory.c b/src/mainboard/google/daisy/memory.c index c5b752c..6a084bd 100644 --- a/src/mainboard/google/daisy/memory.c +++ b/src/mainboard/google/daisy/memory.c @@ -19,7 +19,6 @@ #include <soc/setup.h> #include <soc/dmc.h> #include <soc/clk.h> -#include <stddef.h>
const struct mem_timings mem_timings[] = { { diff --git a/src/mainboard/google/eve/romstage.c b/src/mainboard/google/eve/romstage.c index 7114715..d4d80b42 100644 --- a/src/mainboard/google/eve/romstage.c +++ b/src/mainboard/google/eve/romstage.c @@ -16,7 +16,6 @@
#include <boardid.h> #include <string.h> -#include <stddef.h> #include <fsp/soc_binding.h> #include <soc/romstage.h> #include <console/console.h> diff --git a/src/mainboard/google/kukui/boardid.c b/src/mainboard/google/kukui/boardid.c index ad7fb36..a23e7b2 100644 --- a/src/mainboard/google/kukui/boardid.c +++ b/src/mainboard/google/kukui/boardid.c @@ -18,7 +18,6 @@ #include <console/console.h> #include <soc/auxadc.h> #include <ec/google/chromeec/ec.h> -#include <stddef.h>
/* For CBI un-provisioned/corrupted Flapjack board. */ #define FLAPJACK_UNDEF_SKU_ID 0 diff --git a/src/mainboard/google/peach_pit/memory.c b/src/mainboard/google/peach_pit/memory.c index 541e3b0..94236b0 100644 --- a/src/mainboard/google/peach_pit/memory.c +++ b/src/mainboard/google/peach_pit/memory.c @@ -18,7 +18,6 @@ #include <soc/dmc.h> #include <soc/gpio.h> #include <soc/setup.h> -#include <stddef.h>
const struct mem_timings mem_timings = { .mem_manuf = MEM_MANUF_SAMSUNG, diff --git a/src/mainboard/intel/baskingridge/romstage.c b/src/mainboard/intel/baskingridge/romstage.c index 1a10931..b75265b 100644 --- a/src/mainboard/intel/baskingridge/romstage.c +++ b/src/mainboard/intel/baskingridge/romstage.c @@ -15,7 +15,6 @@ */
#include <stdint.h> -#include <stddef.h> #include <arch/romstage.h> #include <cpu/intel/haswell/haswell.h> #include <northbridge/intel/haswell/haswell.h> diff --git a/src/mainboard/razer/blade_stealth_kbl/romstage.c b/src/mainboard/razer/blade_stealth_kbl/romstage.c index 445f620..d970ac1 100644 --- a/src/mainboard/razer/blade_stealth_kbl/romstage.c +++ b/src/mainboard/razer/blade_stealth_kbl/romstage.c @@ -23,7 +23,6 @@ #include "spd/spd.h" #include <ec/acpi/ec.h> #include <stdint.h> -#include <stddef.h>
#define SPD_4X_2GB 0 #define SPD_4X_4GB 1 diff --git a/src/northbridge/amd/agesa/agesa_helper.h b/src/northbridge/amd/agesa/agesa_helper.h index dcc3360..933efca 100644 --- a/src/northbridge/amd/agesa/agesa_helper.h +++ b/src/northbridge/amd/agesa/agesa_helper.h @@ -16,7 +16,6 @@ #ifndef _AGESA_HELPER_H_ #define _AGESA_HELPER_H_
-#include <stddef.h> #include <arch/romstage.h>
enum { diff --git a/src/northbridge/intel/gm45/igd.c b/src/northbridge/intel/gm45/igd.c index b1ce1be..3200a37 100644 --- a/src/northbridge/intel/gm45/igd.c +++ b/src/northbridge/intel/gm45/igd.c @@ -15,7 +15,6 @@ */
#include <stdint.h> -#include <stddef.h> #include <device/pci_ops.h> #include <device/pci_def.h> #include <console/console.h> diff --git a/src/northbridge/intel/gm45/pcie.c b/src/northbridge/intel/gm45/pcie.c index 4199274..9a643df 100644 --- a/src/northbridge/intel/gm45/pcie.c +++ b/src/northbridge/intel/gm45/pcie.c @@ -15,7 +15,6 @@ */
#include <stdint.h> -#include <stddef.h> #include <device/pci_ops.h> #include <device/pci_def.h> #include <console/console.h> diff --git a/src/northbridge/intel/gm45/pm.c b/src/northbridge/intel/gm45/pm.c index d96bcf4..ba4340b 100644 --- a/src/northbridge/intel/gm45/pm.c +++ b/src/northbridge/intel/gm45/pm.c @@ -15,7 +15,6 @@ */
#include <stdint.h> -#include <stddef.h> #include <device/pci_def.h> #include <cpu/x86/msr.h> #include <cpu/intel/speedstep.h> diff --git a/src/northbridge/intel/gm45/thermal.c b/src/northbridge/intel/gm45/thermal.c index 1629a67..623da7f 100644 --- a/src/northbridge/intel/gm45/thermal.c +++ b/src/northbridge/intel/gm45/thermal.c @@ -15,7 +15,6 @@ */
#include <stdint.h> -#include <stddef.h> #include <device/pci_def.h> #include <spd.h>
diff --git a/src/security/vboot/vboot_common.c b/src/security/vboot/vboot_common.c index 458ed87..de735f4 100644 --- a/src/security/vboot/vboot_common.c +++ b/src/security/vboot/vboot_common.c @@ -18,7 +18,6 @@ #include <console/cbmem_console.h> #include <fmap.h> #include <reset.h> -#include <stddef.h> #include <security/vboot/misc.h> #include <security/vboot/vboot_common.h> #include <security/vboot/vbnv.h> diff --git a/src/soc/amd/picasso/chip.h b/src/soc/amd/picasso/chip.h index 4e9e18b..f34044c 100644 --- a/src/soc/amd/picasso/chip.h +++ b/src/soc/amd/picasso/chip.h @@ -16,7 +16,6 @@ #ifndef __PICASSO_CHIP_H__ #define __PICASSO_CHIP_H__
-#include <stddef.h> #include <stdint.h> #include <commonlib/helpers.h> #include <drivers/i2c/designware/dw_i2c.h> diff --git a/src/soc/intel/baytrail/romstage/pmc.c b/src/soc/intel/baytrail/romstage/pmc.c index 11b3b0f..d6f10ef 100644 --- a/src/soc/intel/baytrail/romstage/pmc.c +++ b/src/soc/intel/baytrail/romstage/pmc.c @@ -13,7 +13,6 @@ * GNU General Public License for more details. */
-#include <stddef.h> #include <device/pci_ops.h> #include <console/console.h> #include <device/device.h> diff --git a/src/soc/intel/baytrail/romstage/raminit.c b/src/soc/intel/baytrail/romstage/raminit.c index 62f8e42..9d1fbb2 100644 --- a/src/soc/intel/baytrail/romstage/raminit.c +++ b/src/soc/intel/baytrail/romstage/raminit.c @@ -13,7 +13,6 @@ * GNU General Public License for more details. */
-#include <stddef.h> #include <arch/acpi.h> #include <assert.h> #include <cbfs.h> diff --git a/src/soc/intel/baytrail/romstage/romstage.c b/src/soc/intel/baytrail/romstage/romstage.c index 25cb661..f8f5da6 100644 --- a/src/soc/intel/baytrail/romstage/romstage.c +++ b/src/soc/intel/baytrail/romstage/romstage.c @@ -13,7 +13,6 @@ * GNU General Public License for more details. */
-#include <stddef.h> #include <arch/io.h> #include <arch/romstage.h> #include <device/mmio.h> diff --git a/src/soc/intel/braswell/romstage/romstage.c b/src/soc/intel/braswell/romstage/romstage.c index 38a0c2e..c03f7d6 100644 --- a/src/soc/intel/braswell/romstage/romstage.c +++ b/src/soc/intel/braswell/romstage/romstage.c @@ -16,7 +16,6 @@ */
#include <cbmem.h> -#include <stddef.h> #include <arch/io.h> #include <device/mmio.h> #include <console/console.h> diff --git a/src/soc/intel/broadwell/romstage/romstage.c b/src/soc/intel/broadwell/romstage/romstage.c index 96218f4..557cfed 100644 --- a/src/soc/intel/broadwell/romstage/romstage.c +++ b/src/soc/intel/broadwell/romstage/romstage.c @@ -13,7 +13,6 @@ * GNU General Public License for more details. */
-#include <stddef.h> #include <stdint.h> #include <arch/cbfs.h> #include <arch/romstage.h> diff --git a/src/soc/intel/cannonlake/include/soc/gpio_defs.h b/src/soc/intel/cannonlake/include/soc/gpio_defs.h index 5c12e4c..b9b34f9 100644 --- a/src/soc/intel/cannonlake/include/soc/gpio_defs.h +++ b/src/soc/intel/cannonlake/include/soc/gpio_defs.h @@ -17,7 +17,6 @@ #define _SOC_CANNONLAKE_GPIO_DEFS_H_
#ifndef __ACPI__ -#include <stddef.h> #endif #include <soc/gpio_common.h> #include <soc/gpio_soc_defs.h> diff --git a/src/soc/intel/cannonlake/include/soc/gpio_defs_cnp_h.h b/src/soc/intel/cannonlake/include/soc/gpio_defs_cnp_h.h index d03723d..987db1e 100644 --- a/src/soc/intel/cannonlake/include/soc/gpio_defs_cnp_h.h +++ b/src/soc/intel/cannonlake/include/soc/gpio_defs_cnp_h.h @@ -17,7 +17,6 @@ #define _SOC_CANNONLAKE_GPIO_DEFS_CNP_H_H_
#ifndef __ACPI__ -#include <stddef.h> #endif #include <soc/gpio_common.h> #include <soc/gpio_soc_defs_cnp_h.h> diff --git a/src/soc/intel/icelake/include/soc/gpio_defs.h b/src/soc/intel/icelake/include/soc/gpio_defs.h index 6ecda85..3f8697c 100644 --- a/src/soc/intel/icelake/include/soc/gpio_defs.h +++ b/src/soc/intel/icelake/include/soc/gpio_defs.h @@ -17,7 +17,6 @@ #define _SOC_ICELAKE_GPIO_DEFS_H_
#ifndef __ACPI__ -#include <stddef.h> #endif #include <soc/gpio_soc_defs.h>
diff --git a/src/soc/intel/skylake/include/soc/gpio_defs.h b/src/soc/intel/skylake/include/soc/gpio_defs.h index 321d3c2..8ccda49 100644 --- a/src/soc/intel/skylake/include/soc/gpio_defs.h +++ b/src/soc/intel/skylake/include/soc/gpio_defs.h @@ -16,7 +16,6 @@ #ifndef _SOC_GPIO_DEFS_H_ #define _SOC_GPIO_DEFS_H_ #ifndef __ACPI__ -#include <stddef.h> #endif #if CONFIG(SKYLAKE_SOC_PCH_H) # include <soc/gpio_pch_h_defs.h> diff --git a/src/soc/intel/tigerlake/include/soc/gpio_defs.h b/src/soc/intel/tigerlake/include/soc/gpio_defs.h index bffebcd..7e7a949 100644 --- a/src/soc/intel/tigerlake/include/soc/gpio_defs.h +++ b/src/soc/intel/tigerlake/include/soc/gpio_defs.h @@ -17,7 +17,6 @@ #define _SOC_TIGERLAKE_GPIO_DEFS_H_
#ifndef __ACPI__ -#include <stddef.h> #endif #include <soc/gpio_soc_defs.h>
diff --git a/src/soc/mediatek/common/cbmem.c b/src/soc/mediatek/common/cbmem.c index 1a55d01..2ca1d55 100644 --- a/src/soc/mediatek/common/cbmem.c +++ b/src/soc/mediatek/common/cbmem.c @@ -14,7 +14,6 @@ */
#include <cbmem.h> -#include <stddef.h> #include <stdlib.h> #include <symbols.h> #include <soc/emi.h> diff --git a/src/soc/mediatek/common/ddp.c b/src/soc/mediatek/common/ddp.c index 463fd3f..d48d5ef 100644 --- a/src/soc/mediatek/common/ddp.c +++ b/src/soc/mediatek/common/ddp.c @@ -15,7 +15,6 @@
#include <device/mmio.h> #include <edid.h> -#include <stddef.h> #include <soc/addressmap.h> #include <soc/ddp.h>
diff --git a/src/soc/mediatek/common/include/soc/gpio_common.h b/src/soc/mediatek/common/include/soc/gpio_common.h index 374c810..18a7f52 100644 --- a/src/soc/mediatek/common/include/soc/gpio_common.h +++ b/src/soc/mediatek/common/include/soc/gpio_common.h @@ -17,7 +17,6 @@ #define SOC_MEDIATEK_COMMON_GPIO_H
#include <soc/gpio_base.h> -#include <stddef.h> #include <stdint.h>
enum pull_enable { diff --git a/src/soc/mediatek/common/include/soc/usb_common.h b/src/soc/mediatek/common/include/soc/usb_common.h index 22704e7..2cfb79a 100644 --- a/src/soc/mediatek/common/include/soc/usb_common.h +++ b/src/soc/mediatek/common/include/soc/usb_common.h @@ -16,7 +16,6 @@ #ifndef SOC_MEDIATEK_USB_COMMON_H #define SOC_MEDIATEK_USB_COMMON_H
-#include <stddef.h>
/* ip_pw_ctrl0 */ #define CTRL0_IP_SW_RST (0x1 << 0) diff --git a/src/soc/mediatek/common/mtcmos.c b/src/soc/mediatek/common/mtcmos.c index fa0b23a..4b0109b 100644 --- a/src/soc/mediatek/common/mtcmos.c +++ b/src/soc/mediatek/common/mtcmos.c @@ -13,7 +13,6 @@ * GNU General Public License for more details. */
-#include <stddef.h>
#include <device/mmio.h> #include <soc/mtcmos.h> diff --git a/src/soc/mediatek/mt8173/ddp.c b/src/soc/mediatek/mt8173/ddp.c index 7e18a76..109c6ef 100644 --- a/src/soc/mediatek/mt8173/ddp.c +++ b/src/soc/mediatek/mt8173/ddp.c @@ -15,7 +15,6 @@
#include <device/mmio.h> #include <edid.h> -#include <stddef.h> #include <soc/addressmap.h> #include <soc/ddp.h> #include <types.h> diff --git a/src/soc/mediatek/mt8173/include/soc/addressmap.h b/src/soc/mediatek/mt8173/include/soc/addressmap.h index 90834a3..2ee23b2 100644 --- a/src/soc/mediatek/mt8173/include/soc/addressmap.h +++ b/src/soc/mediatek/mt8173/include/soc/addressmap.h @@ -16,7 +16,6 @@ #ifndef __SOC_MEDIATEK_MT8173_INCLUDE_SOC_ADDRESS_MAP_H__ #define __SOC_MEDIATEK_MT8173_INCLUDE_SOC_ADDRESS_MAP_H__
-#include <stddef.h> #include <stdint.h>
enum { diff --git a/src/soc/mediatek/mt8173/include/soc/dramc_register.h b/src/soc/mediatek/mt8173/include/soc/dramc_register.h index ce65173..67897f9 100644 --- a/src/soc/mediatek/mt8173/include/soc/dramc_register.h +++ b/src/soc/mediatek/mt8173/include/soc/dramc_register.h @@ -16,7 +16,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 */ diff --git a/src/soc/mediatek/mt8173/include/soc/spm.h b/src/soc/mediatek/mt8173/include/soc/spm.h index 133c8a3..142dd13 100644 --- a/src/soc/mediatek/mt8173/include/soc/spm.h +++ b/src/soc/mediatek/mt8173/include/soc/spm.h @@ -17,7 +17,6 @@ #define __SOC_MEDIATEK_MT8173_SPM_H__
#include <soc/addressmap.h> -#include <stddef.h>
enum { SPM_PROJECT_CODE = 0xb16 diff --git a/src/soc/mediatek/mt8183/ddp.c b/src/soc/mediatek/mt8183/ddp.c index 2d67de2..32632ae 100644 --- a/src/soc/mediatek/mt8183/ddp.c +++ b/src/soc/mediatek/mt8183/ddp.c @@ -15,7 +15,6 @@
#include <device/mmio.h> #include <edid.h> -#include <stddef.h> #include <soc/addressmap.h> #include <soc/ddp.h>
diff --git a/src/soc/mediatek/mt8183/pll.c b/src/soc/mediatek/mt8183/pll.c index 5368077..b443a2b 100644 --- a/src/soc/mediatek/mt8183/pll.c +++ b/src/soc/mediatek/mt8183/pll.c @@ -15,7 +15,6 @@
#include <device/mmio.h> #include <delay.h> -#include <stddef.h>
#include <soc/addressmap.h> #include <soc/infracfg.h> diff --git a/src/soc/nvidia/tegra/dc.h b/src/soc/nvidia/tegra/dc.h index 56332e4..421379b 100644 --- a/src/soc/nvidia/tegra/dc.h +++ b/src/soc/nvidia/tegra/dc.h @@ -17,7 +17,6 @@ #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 */ diff --git a/src/soc/nvidia/tegra124/dma.c b/src/soc/nvidia/tegra124/dma.c index ca4c969..6ee3a20 100644 --- a/src/soc/nvidia/tegra124/dma.c +++ b/src/soc/nvidia/tegra124/dma.c @@ -20,7 +20,6 @@ #include <stdint.h> #include <soc/addressmap.h> #include <soc/dma.h> -#include <stddef.h>
struct apb_dma * const apb_dma = (struct apb_dma *)TEGRA_APB_DMA_BASE;
diff --git a/src/soc/nvidia/tegra124/include/soc/addressmap.h b/src/soc/nvidia/tegra124/include/soc/addressmap.h index bb95051..0c2cb2c 100644 --- a/src/soc/nvidia/tegra124/include/soc/addressmap.h +++ b/src/soc/nvidia/tegra124/include/soc/addressmap.h @@ -20,7 +20,6 @@ #ifndef __SOC_NVIDIA_TEGRA124_INCLUDE_SOC_ADDRESS_MAP_H__ #define __SOC_NVIDIA_TEGRA124_INCLUDE_SOC_ADDRESS_MAP_H__
-#include <stddef.h>
enum { TEGRA_SRAM_BASE = 0x40000000, diff --git a/src/soc/nvidia/tegra124/include/soc/emc.h b/src/soc/nvidia/tegra124/include/soc/emc.h index 8e190f9..5d01277 100644 --- a/src/soc/nvidia/tegra124/include/soc/emc.h +++ b/src/soc/nvidia/tegra124/include/soc/emc.h @@ -17,7 +17,6 @@ #ifndef __SOC_NVIDIA_TEGRA124_EMC_H__ #define __SOC_NVIDIA_TEGRA124_EMC_H__
-#include <stddef.h> #include <stdint.h>
enum { diff --git a/src/soc/nvidia/tegra124/include/soc/mc.h b/src/soc/nvidia/tegra124/include/soc/mc.h index f249ecc..726d529 100644 --- a/src/soc/nvidia/tegra124/include/soc/mc.h +++ b/src/soc/nvidia/tegra124/include/soc/mc.h @@ -17,7 +17,6 @@ #ifndef __SOC_NVIDIA_TEGRA124_MC_H__ #define __SOC_NVIDIA_TEGRA124_MC_H__
-#include <stddef.h> #include <stdint.h>
// Memory Controller registers we need/care about diff --git a/src/soc/nvidia/tegra124/include/soc/sdram_param.h b/src/soc/nvidia/tegra124/include/soc/sdram_param.h index 938d655c..03e2664 100644 --- a/src/soc/nvidia/tegra124/include/soc/sdram_param.h +++ b/src/soc/nvidia/tegra124/include/soc/sdram_param.h @@ -24,7 +24,6 @@ #ifndef __SOC_NVIDIA_TEGRA124_SDRAM_PARAM_H__ #define __SOC_NVIDIA_TEGRA124_SDRAM_PARAM_H__
-#include <stddef.h> #include <stdint.h>
enum { diff --git a/src/soc/nvidia/tegra124/include/soc/spi.h b/src/soc/nvidia/tegra124/include/soc/spi.h index 875e880..d358ebb 100644 --- a/src/soc/nvidia/tegra124/include/soc/spi.h +++ b/src/soc/nvidia/tegra124/include/soc/spi.h @@ -18,7 +18,6 @@
#include <spi-generic.h> #include <soc/dma.h> -#include <stddef.h>
struct tegra_spi_regs { u32 command1; /* 0x000: SPI_COMMAND1 */ diff --git a/src/soc/nvidia/tegra210/dma.c b/src/soc/nvidia/tegra210/dma.c index 9e4882f..2b7c6d2 100644 --- a/src/soc/nvidia/tegra210/dma.c +++ b/src/soc/nvidia/tegra210/dma.c @@ -20,7 +20,6 @@ #include <stdint.h> #include <soc/addressmap.h> #include <soc/dma.h> -#include <stddef.h>
struct apb_dma * const apb_dma = (struct apb_dma *)TEGRA_APB_DMA_BASE;
diff --git a/src/soc/nvidia/tegra210/include/soc/clk_rst.h b/src/soc/nvidia/tegra210/include/soc/clk_rst.h index 42eebed..f635290 100644 --- a/src/soc/nvidia/tegra210/include/soc/clk_rst.h +++ b/src/soc/nvidia/tegra210/include/soc/clk_rst.h @@ -16,7 +16,6 @@ #ifndef _TEGRA210_CLK_RST_H_ #define _TEGRA210_CLK_RST_H_ #include <stdint.h> -#include <stddef.h>
/* Clock/Reset Controller (CLK_RST_CONTROLLER_) regs */ struct __packed clk_rst_ctlr { diff --git a/src/soc/nvidia/tegra210/include/soc/emc.h b/src/soc/nvidia/tegra210/include/soc/emc.h index 289aa72..8a1be1a 100644 --- a/src/soc/nvidia/tegra210/include/soc/emc.h +++ b/src/soc/nvidia/tegra210/include/soc/emc.h @@ -17,7 +17,6 @@ #ifndef __SOC_NVIDIA_TEGRA210_EMC_H__ #define __SOC_NVIDIA_TEGRA210_EMC_H__
-#include <stddef.h> #include <stdint.h>
enum { diff --git a/src/soc/nvidia/tegra210/include/soc/mc.h b/src/soc/nvidia/tegra210/include/soc/mc.h index b78305a..9fd134c 100644 --- a/src/soc/nvidia/tegra210/include/soc/mc.h +++ b/src/soc/nvidia/tegra210/include/soc/mc.h @@ -17,7 +17,6 @@ #ifndef __SOC_NVIDIA_TEGRA210_MC_H__ #define __SOC_NVIDIA_TEGRA210_MC_H__
-#include <stddef.h> #include <stdint.h>
// Memory Controller registers we need/care about diff --git a/src/soc/nvidia/tegra210/include/soc/sdram_param.h b/src/soc/nvidia/tegra210/include/soc/sdram_param.h index 0b6f7a0..47882dd 100644 --- a/src/soc/nvidia/tegra210/include/soc/sdram_param.h +++ b/src/soc/nvidia/tegra210/include/soc/sdram_param.h @@ -24,7 +24,6 @@ #ifndef __SOC_NVIDIA_TEGRA210_SDRAM_PARAM_H__ #define __SOC_NVIDIA_TEGRA210_SDRAM_PARAM_H__
-#include <stddef.h> #include <stdint.h>
enum { diff --git a/src/soc/nvidia/tegra210/include/soc/spi.h b/src/soc/nvidia/tegra210/include/soc/spi.h index 46c1c3c..b87a4d3 100644 --- a/src/soc/nvidia/tegra210/include/soc/spi.h +++ b/src/soc/nvidia/tegra210/include/soc/spi.h @@ -19,7 +19,6 @@
#include <soc/dma.h> #include <spi-generic.h> -#include <stddef.h>
struct tegra_spi_regs { u32 command1; /* 0x000: SPI_COMMAND1 */ diff --git a/src/soc/rockchip/common/include/soc/spi.h b/src/soc/rockchip/common/include/soc/spi.h index ce5de83..ba46134 100644 --- a/src/soc/rockchip/common/include/soc/spi.h +++ b/src/soc/rockchip/common/include/soc/spi.h @@ -18,7 +18,6 @@
/* This driver serves as a CBFS media source. */ #include <spi-generic.h> -#include <stddef.h>
struct rockchip_spi { u32 ctrlr0; diff --git a/src/soc/rockchip/common/vop.c b/src/soc/rockchip/common/vop.c index f617b4a..1faa555 100644 --- a/src/soc/rockchip/common/vop.c +++ b/src/soc/rockchip/common/vop.c @@ -14,7 +14,6 @@ */
#include <device/mmio.h> -#include <stddef.h> #include <soc/addressmap.h> #include <soc/clock.h> #include <soc/edp.h> diff --git a/src/soc/rockchip/rk3288/display.c b/src/soc/rockchip/rk3288/display.c index a66b2d4..98cab05 100644 --- a/src/soc/rockchip/rk3288/display.c +++ b/src/soc/rockchip/rk3288/display.c @@ -20,7 +20,6 @@ #include <delay.h> #include <edid.h> #include <gpio.h> -#include <stddef.h> #include <string.h> #include <soc/addressmap.h> #include <soc/clock.h> diff --git a/src/soc/rockchip/rk3288/soc.c b/src/soc/rockchip/rk3288/soc.c index 31c9998..6477d65 100644 --- a/src/soc/rockchip/rk3288/soc.c +++ b/src/soc/rockchip/rk3288/soc.c @@ -21,7 +21,6 @@ #include <soc/display.h> #include <soc/soc.h> #include <soc/sdram.h> -#include <stddef.h> #include <symbols.h>
#include "chip.h" diff --git a/src/soc/rockchip/rk3399/display.c b/src/soc/rockchip/rk3399/display.c index 9cd4053..d1f07af 100644 --- a/src/soc/rockchip/rk3399/display.c +++ b/src/soc/rockchip/rk3399/display.c @@ -21,7 +21,6 @@ #include <delay.h> #include <edid.h> #include <gpio.h> -#include <stddef.h> #include <soc/addressmap.h> #include <soc/clock.h> #include <soc/display.h> diff --git a/src/soc/rockchip/rk3399/soc.c b/src/soc/rockchip/rk3399/soc.c index 807a7bc..df62bc7 100644 --- a/src/soc/rockchip/rk3399/soc.c +++ b/src/soc/rockchip/rk3399/soc.c @@ -22,7 +22,6 @@ #include <soc/display.h> #include <soc/sdram.h> #include <soc/symbols.h> -#include <stddef.h> #include <symbols.h>
void bootmem_platform_add_ranges(void) diff --git a/src/soc/samsung/exynos5250/cbmem.c b/src/soc/samsung/exynos5250/cbmem.c index 31463b1..60e454c 100644 --- a/src/soc/samsung/exynos5250/cbmem.c +++ b/src/soc/samsung/exynos5250/cbmem.c @@ -13,7 +13,6 @@ * GNU General Public License for more details. */
-#include <stddef.h> #include <cbmem.h> #include <soc/cpu.h>
diff --git a/src/soc/samsung/exynos5250/cpu.c b/src/soc/samsung/exynos5250/cpu.c index 5f99899..cf721cd 100644 --- a/src/soc/samsung/exynos5250/cpu.c +++ b/src/soc/samsung/exynos5250/cpu.c @@ -22,7 +22,6 @@ #include <soc/cpu.h> #include <soc/dp-core.h> #include <soc/fimd.h> -#include <stddef.h> #include <string.h>
#include "chip.h" diff --git a/src/soc/samsung/exynos5420/cbmem.c b/src/soc/samsung/exynos5420/cbmem.c index ffed589e..60e454c 100644 --- a/src/soc/samsung/exynos5420/cbmem.c +++ b/src/soc/samsung/exynos5420/cbmem.c @@ -15,7 +15,6 @@
#include <cbmem.h> #include <soc/cpu.h> -#include <stddef.h>
void *cbmem_top_chipset(void) { diff --git a/src/soc/samsung/exynos5420/cpu.c b/src/soc/samsung/exynos5420/cpu.c index 375b370..2758549 100644 --- a/src/soc/samsung/exynos5420/cpu.c +++ b/src/soc/samsung/exynos5420/cpu.c @@ -23,7 +23,6 @@ #include <soc/fimd.h> #include <soc/cpu.h> #include <soc/clk.h> -#include <stddef.h> #include <string.h>
#include "chip.h" diff --git a/src/soc/samsung/exynos5420/i2c.c b/src/soc/samsung/exynos5420/i2c.c index 4dd9caa..5af868d 100644 --- a/src/soc/samsung/exynos5420/i2c.c +++ b/src/soc/samsung/exynos5420/i2c.c @@ -23,7 +23,6 @@ #include <soc/i2c.h> #include <soc/periph.h> #include <soc/pinmux.h> -#include <stddef.h> #include <timer.h>
struct __packed i2c_regs diff --git a/src/soc/sifive/fu540/otp.c b/src/soc/sifive/fu540/otp.c index 10647f4..eae530b 100644 --- a/src/soc/sifive/fu540/otp.c +++ b/src/soc/sifive/fu540/otp.c @@ -13,7 +13,6 @@ * GNU General Public License for more details. */
-#include <stddef.h> #include <delay.h> #include <device/mmio.h> #include <console/console.h> diff --git a/src/soc/sifive/fu540/uart.c b/src/soc/sifive/fu540/uart.c index b59b789..2100f56 100644 --- a/src/soc/sifive/fu540/uart.c +++ b/src/soc/sifive/fu540/uart.c @@ -13,7 +13,6 @@ * GNU General Public License for more details. */
-#include <stddef.h> #include <stdint.h> #include <console/uart.h> #include <soc/addressmap.h> diff --git a/src/southbridge/amd/cimx/sb800/SBPLATFORM.h b/src/southbridge/amd/cimx/sb800/SBPLATFORM.h index 7ea2caa..bb9ed25 100644 --- a/src/southbridge/amd/cimx/sb800/SBPLATFORM.h +++ b/src/southbridge/amd/cimx/sb800/SBPLATFORM.h @@ -20,7 +20,6 @@ #ifndef _AMD_SBPLATFORM_H_ #define _AMD_SBPLATFORM_H_
-#include <stddef.h>
typedef unsigned long long PLACEHOLDER;
diff --git a/src/southbridge/intel/lynxpoint/pcie.c b/src/southbridge/intel/lynxpoint/pcie.c index 92dd02e..385b897 100644 --- a/src/southbridge/intel/lynxpoint/pcie.c +++ b/src/southbridge/intel/lynxpoint/pcie.c @@ -25,7 +25,6 @@ #include <device/pci_ops.h> #include "pch.h" #include <southbridge/intel/common/gpio.h> -#include <stddef.h> #include <stdint.h> #include "chip.h"