summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-05-07 21:08:49 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-05-13 08:48:50 +0000
commite30c396ffabb3d3c966eecfcd291ca11b815ba7a (patch)
tree5730cbe86517af03fbefaaa8d56667ec8f208a71
parentf70bd99d2af3627b1dbdbea414941a12d6ecf6b3 (diff)
downloadcoreboot-e30c396ffabb3d3c966eecfcd291ca11b815ba7a.tar.xz
src: Remove unused '#include <stddef.h>'
Unused includes found using following commande: diff <(git grep -l '#include <stddef.h>' -- src/) <(git grep -l 'size_t\|ssize_t\|wchar_t\|wint_t\|NULL\|DEVTREE_EARLY\|DEVTREE_CONST\ |MAYBE_STATIC_NONZERO\|MAYBE_STATIC_BSS\|zeroptr' -- src/)|grep '<' |grep -v vendor |grep -vF '.h' Change-Id: Ic54b1db995fe7c61b416fa5e1c4022238e4a6ad5 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/41150 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/cpu/ti/am335x/cbmem.c1
-rw-r--r--src/cpu/ti/am335x/header.c1
-rw-r--r--src/drivers/elog/boot_count.c1
-rw-r--r--src/drivers/usb/pci_ehci.c1
-rw-r--r--src/lib/edid.c1
-rw-r--r--src/mainboard/google/eve/romstage.c1
-rw-r--r--src/mainboard/google/kukui/boardid.c1
-rw-r--r--src/mainboard/google/peach_pit/memory.c1
-rw-r--r--src/mainboard/razer/blade_stealth_kbl/romstage.c1
-rw-r--r--src/northbridge/intel/gm45/igd.c1
-rw-r--r--src/northbridge/intel/gm45/pcie.c1
-rw-r--r--src/northbridge/intel/gm45/pm.c1
-rw-r--r--src/northbridge/intel/gm45/thermal.c1
-rw-r--r--src/security/intel/stm/StmPlatformSmm.c1
-rw-r--r--src/security/vboot/vboot_common.c1
-rw-r--r--src/soc/intel/broadwell/romstage/romstage.c1
-rw-r--r--src/soc/mediatek/common/cbmem.c1
-rw-r--r--src/soc/mediatek/common/ddp.c1
-rw-r--r--src/soc/mediatek/common/mtcmos.c1
-rw-r--r--src/soc/mediatek/mt8173/ddp.c1
-rw-r--r--src/soc/mediatek/mt8183/ddp.c1
-rw-r--r--src/soc/mediatek/mt8183/pll.c1
-rw-r--r--src/soc/rockchip/common/vop.c1
-rw-r--r--src/soc/rockchip/rk3288/display.c1
-rw-r--r--src/soc/rockchip/rk3288/soc.c1
-rw-r--r--src/soc/rockchip/rk3399/soc.c1
-rw-r--r--src/soc/samsung/exynos5250/cbmem.c1
-rw-r--r--src/soc/samsung/exynos5250/cpu.c1
-rw-r--r--src/soc/samsung/exynos5420/cbmem.c1
-rw-r--r--src/soc/samsung/exynos5420/cpu.c1
-rw-r--r--src/soc/samsung/exynos5420/i2c.c1
-rw-r--r--src/soc/sifive/fu540/otp.c1
-rw-r--r--src/soc/sifive/fu540/uart.c1
33 files changed, 0 insertions, 33 deletions
diff --git a/src/cpu/ti/am335x/cbmem.c b/src/cpu/ti/am335x/cbmem.c
index 0610d5991c..3765874ebe 100644
--- a/src/cpu/ti/am335x/cbmem.c
+++ b/src/cpu/ti/am335x/cbmem.c
@@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#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 9ed99372a0..9edfdd062b 100644
--- a/src/cpu/ti/am335x/header.c
+++ b/src/cpu/ti/am335x/header.c
@@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
-#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 72ed173503..9da62127dc 100644
--- a/src/drivers/elog/boot_count.c
+++ b/src/drivers/elog/boot_count.c
@@ -3,7 +3,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/usb/pci_ehci.c b/src/drivers/usb/pci_ehci.c
index 993e6c64d6..d59ca32504 100644
--- a/src/drivers/usb/pci_ehci.c
+++ b/src/drivers/usb/pci_ehci.c
@@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <stddef.h>
#include <console/console.h>
#include <device/pci_ehci.h>
#include <device/mmio.h>
diff --git a/src/lib/edid.c b/src/lib/edid.c
index decc077042..78adf490fd 100644
--- a/src/lib/edid.c
+++ b/src/lib/edid.c
@@ -8,7 +8,6 @@
#include <assert.h>
#include <commonlib/helpers.h>
-#include <stddef.h>
#include <console/console.h>
#include <ctype.h>
#include <stdint.h>
diff --git a/src/mainboard/google/eve/romstage.c b/src/mainboard/google/eve/romstage.c
index 26c0361a8f..f3c0f1140b 100644
--- a/src/mainboard/google/eve/romstage.c
+++ b/src/mainboard/google/eve/romstage.c
@@ -2,7 +2,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 f5955301e9..c6865d1a67 100644
--- a/src/mainboard/google/kukui/boardid.c
+++ b/src/mainboard/google/kukui/boardid.c
@@ -5,7 +5,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 8630802d3e..4e82c90744 100644
--- a/src/mainboard/google/peach_pit/memory.c
+++ b/src/mainboard/google/peach_pit/memory.c
@@ -4,7 +4,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/razer/blade_stealth_kbl/romstage.c b/src/mainboard/razer/blade_stealth_kbl/romstage.c
index 94ca09a8f8..92ced2e613 100644
--- a/src/mainboard/razer/blade_stealth_kbl/romstage.c
+++ b/src/mainboard/razer/blade_stealth_kbl/romstage.c
@@ -7,7 +7,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/intel/gm45/igd.c b/src/northbridge/intel/gm45/igd.c
index 10a6f84875..24633cf96e 100644
--- a/src/northbridge/intel/gm45/igd.c
+++ b/src/northbridge/intel/gm45/igd.c
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#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 2cab42f4bb..e4d11e335c 100644
--- a/src/northbridge/intel/gm45/pcie.c
+++ b/src/northbridge/intel/gm45/pcie.c
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#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 6033c0aca2..680435baca 100644
--- a/src/northbridge/intel/gm45/pm.c
+++ b/src/northbridge/intel/gm45/pm.c
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#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 ed1ec959bd..a5d9820e71 100644
--- a/src/northbridge/intel/gm45/thermal.c
+++ b/src/northbridge/intel/gm45/thermal.c
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <stdint.h>
-#include <stddef.h>
#include <device/pci_def.h>
#include <spd.h>
diff --git a/src/security/intel/stm/StmPlatformSmm.c b/src/security/intel/stm/StmPlatformSmm.c
index de41f418bd..1f57b50f6d 100644
--- a/src/security/intel/stm/StmPlatformSmm.c
+++ b/src/security/intel/stm/StmPlatformSmm.c
@@ -7,7 +7,6 @@
#include <cpu/x86/smm.h>
#include <cpu/x86/msr.h>
-#include <stddef.h>
#include <cbfs.h>
#include <console/console.h>
#include <lib.h>
diff --git a/src/security/vboot/vboot_common.c b/src/security/vboot/vboot_common.c
index aeb6cefeb5..30a2c2f668 100644
--- a/src/security/vboot/vboot_common.c
+++ b/src/security/vboot/vboot_common.c
@@ -5,7 +5,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/intel/broadwell/romstage/romstage.c b/src/soc/intel/broadwell/romstage/romstage.c
index 4b51bda6f0..54d6134b16 100644
--- a/src/soc/intel/broadwell/romstage/romstage.c
+++ b/src/soc/intel/broadwell/romstage/romstage.c
@@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <stddef.h>
#include <stdint.h>
#include <arch/romstage.h>
#include <bootmode.h>
diff --git a/src/soc/mediatek/common/cbmem.c b/src/soc/mediatek/common/cbmem.c
index 871d7dd142..f9d11e91c5 100644
--- a/src/soc/mediatek/common/cbmem.c
+++ b/src/soc/mediatek/common/cbmem.c
@@ -2,7 +2,6 @@
#include <cbmem.h>
#include <commonlib/helpers.h>
-#include <stddef.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 64e6e7a778..17a28494f7 100644
--- a/src/soc/mediatek/common/ddp.c
+++ b/src/soc/mediatek/common/ddp.c
@@ -2,7 +2,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/mtcmos.c b/src/soc/mediatek/common/mtcmos.c
index e5d70b806d..71deb71c77 100644
--- a/src/soc/mediatek/common/mtcmos.c
+++ b/src/soc/mediatek/common/mtcmos.c
@@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#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 93ef0b6544..ec53e12dee 100644
--- a/src/soc/mediatek/mt8173/ddp.c
+++ b/src/soc/mediatek/mt8173/ddp.c
@@ -2,7 +2,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/mt8183/ddp.c b/src/soc/mediatek/mt8183/ddp.c
index d427dcb233..13918a07f4 100644
--- a/src/soc/mediatek/mt8183/ddp.c
+++ b/src/soc/mediatek/mt8183/ddp.c
@@ -2,7 +2,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 dedd59d4f2..4570269421 100644
--- a/src/soc/mediatek/mt8183/pll.c
+++ b/src/soc/mediatek/mt8183/pll.c
@@ -2,7 +2,6 @@
#include <device/mmio.h>
#include <delay.h>
-#include <stddef.h>
#include <soc/addressmap.h>
#include <soc/infracfg.h>
diff --git a/src/soc/rockchip/common/vop.c b/src/soc/rockchip/common/vop.c
index 515395b7c3..5674339b04 100644
--- a/src/soc/rockchip/common/vop.c
+++ b/src/soc/rockchip/common/vop.c
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#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 2ad17b4f89..fd86b95d68 100644
--- a/src/soc/rockchip/rk3288/display.c
+++ b/src/soc/rockchip/rk3288/display.c
@@ -7,7 +7,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 4375f1bbc9..b23c803422 100644
--- a/src/soc/rockchip/rk3288/soc.c
+++ b/src/soc/rockchip/rk3288/soc.c
@@ -7,7 +7,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/soc.c b/src/soc/rockchip/rk3399/soc.c
index 92019a054e..89e33631bf 100644
--- a/src/soc/rockchip/rk3399/soc.c
+++ b/src/soc/rockchip/rk3399/soc.c
@@ -9,7 +9,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 8aca86ad28..167bd80a3a 100644
--- a/src/soc/samsung/exynos5250/cbmem.c
+++ b/src/soc/samsung/exynos5250/cbmem.c
@@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#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 b74b838bb7..514e451ede 100644
--- a/src/soc/samsung/exynos5250/cpu.c
+++ b/src/soc/samsung/exynos5250/cpu.c
@@ -8,7 +8,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 5cee9be384..167bd80a3a 100644
--- a/src/soc/samsung/exynos5420/cbmem.c
+++ b/src/soc/samsung/exynos5420/cbmem.c
@@ -2,7 +2,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 4a294d55ad..8a07552cf6 100644
--- a/src/soc/samsung/exynos5420/cpu.c
+++ b/src/soc/samsung/exynos5420/cpu.c
@@ -9,7 +9,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 416bb46f4c..45657f13cf 100644
--- a/src/soc/samsung/exynos5420/i2c.c
+++ b/src/soc/samsung/exynos5420/i2c.c
@@ -9,7 +9,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 ac74f82473..29f2c16271 100644
--- a/src/soc/sifive/fu540/otp.c
+++ b/src/soc/sifive/fu540/otp.c
@@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#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 6736a1694c..c35e0f6166 100644
--- a/src/soc/sifive/fu540/uart.c
+++ b/src/soc/sifive/fu540/uart.c
@@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <stddef.h>
#include <stdint.h>
#include <console/uart.h>
#include <commonlib/bsd/helpers.h>