summaryrefslogtreecommitdiffstats
path: root/src/soc
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 /src/soc
parentf70bd99d2af3627b1dbdbea414941a12d6ecf6b3 (diff)
downloadcoreboot-e30c396ffabb3d3c966eecfcd291ca11b815ba7a.tar.gz
coreboot-e30c396ffabb3d3c966eecfcd291ca11b815ba7a.tar.bz2
coreboot-e30c396ffabb3d3c966eecfcd291ca11b815ba7a.zip
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>
Diffstat (limited to 'src/soc')
-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
18 files changed, 0 insertions, 18 deletions
diff --git a/src/soc/intel/broadwell/romstage/romstage.c b/src/soc/intel/broadwell/romstage/romstage.c
index 4b51bda6f095..54d6134b166a 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 871d7dd14215..f9d11e91c56d 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 64e6e7a77875..17a28494f7c8 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 e5d70b806d89..71deb71c770d 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 93ef0b6544da..ec53e12deeb9 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 d427dcb2339e..13918a07f400 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 dedd59d4f29b..4570269421d0 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 515395b7c325..5674339b041d 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 2ad17b4f89e1..fd86b95d6882 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 4375f1bbc9ce..b23c80342279 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 92019a054ec4..89e33631bf4b 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 8aca86ad283e..167bd80a3a9c 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 b74b838bb727..514e451ede83 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 5cee9be384f4..167bd80a3a9c 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 4a294d55ad76..8a07552cf69c 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 416bb46f4c53..45657f13cf4c 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 ac74f82473ae..29f2c16271b0 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 6736a1694c11..c35e0f616660 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>