HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/37418 )
Change subject: src: (part 2) Add missing 'include <commonlib/helpers.h>' ......................................................................
src: (part 2) Add missing 'include <commonlib/helpers.h>'
'offsetof' and DIV_ROUND_CLOSEST needs <commonlib/helpers.h>.
Change-Id: Ida2bca01151fc4f392ecdd29cc9bc31ec52d9cc0 Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- M src/console/printk.c M src/cpu/ti/am335x/header.c M src/drivers/elog/boot_count.c M src/drivers/elog/elog.c M src/drivers/intel/gma/opregion.c M src/lib/timestamp.c M src/mainboard/emulation/qemu-i440fx/fw_cfg.c M src/mainboard/scaleway/tagada/bmcinfo.c M src/soc/intel/quark/include/soc/i2c.h M src/soc/mediatek/mt8183/emi.c M src/soc/nvidia/tegra/gpio.c M src/soc/nvidia/tegra210/include/soc/tegra_dsi.h M src/soc/rockchip/common/spi.c 13 files changed, 13 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/18/37418/1
diff --git a/src/console/printk.c b/src/console/printk.c index a08dd2f..5eb25a0 100644 --- a/src/console/printk.c +++ b/src/console/printk.c @@ -13,6 +13,7 @@ * blatantly copied from linux/kernel/printk.c */
+#include <commonlib/helpers.h> #include <console/cbmem_console.h> #include <console/console.h> #include <console/streams.h> diff --git a/src/cpu/ti/am335x/header.c b/src/cpu/ti/am335x/header.c index bef1e56..99ff652 100644 --- a/src/cpu/ti/am335x/header.c +++ b/src/cpu/ti/am335x/header.c @@ -12,6 +12,7 @@ * GNU General Public License for more details. */
+#include <commonlib/helpers.h> #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..133fc99 100644 --- a/src/drivers/elog/boot_count.c +++ b/src/drivers/elog/boot_count.c @@ -11,6 +11,7 @@ * GNU General Public License for more details. */
+#include <commonlib/helpers.h> #include <console/console.h> #include <ip_checksum.h> #include <pc80/mc146818rtc.h> diff --git a/src/drivers/elog/elog.c b/src/drivers/elog/elog.c index 768ea28..b749eac 100644 --- a/src/drivers/elog/elog.c +++ b/src/drivers/elog/elog.c @@ -16,6 +16,7 @@ #endif #include <bootstate.h> #include <cbmem.h> +#include <commonlib/helpers.h> #include <console/console.h> #if CONFIG(ARCH_X86) #include <pc80/mc146818rtc.h> diff --git a/src/drivers/intel/gma/opregion.c b/src/drivers/intel/gma/opregion.c index 56449d0..32d0c27 100644 --- a/src/drivers/intel/gma/opregion.c +++ b/src/drivers/intel/gma/opregion.c @@ -16,6 +16,7 @@ #include <types.h> #include <string.h> #include <cbfs.h> +#include <commonlib/helpers.h> #include <device/device.h> #include <device/pci.h> #include <device/pci_ids.h> diff --git a/src/lib/timestamp.c b/src/lib/timestamp.c index 7c7210c..e00c882 100644 --- a/src/lib/timestamp.c +++ b/src/lib/timestamp.c @@ -17,6 +17,7 @@ #include <assert.h> #include <stddef.h> #include <stdint.h> +#include <commonlib/helpers.h> #include <console/console.h> #include <cbmem.h> #include <symbols.h> diff --git a/src/mainboard/emulation/qemu-i440fx/fw_cfg.c b/src/mainboard/emulation/qemu-i440fx/fw_cfg.c index 50123f9..e108f91 100644 --- a/src/mainboard/emulation/qemu-i440fx/fw_cfg.c +++ b/src/mainboard/emulation/qemu-i440fx/fw_cfg.c @@ -15,6 +15,7 @@ #include <stdlib.h> #include <string.h> #include <smbios.h> +#include <commonlib/helpers.h> #include <console/console.h> #include <arch/io.h> #include <arch/acpi.h> diff --git a/src/mainboard/scaleway/tagada/bmcinfo.c b/src/mainboard/scaleway/tagada/bmcinfo.c index 93b4539..d22785c 100644 --- a/src/mainboard/scaleway/tagada/bmcinfo.c +++ b/src/mainboard/scaleway/tagada/bmcinfo.c @@ -16,6 +16,7 @@
#include <stdint.h> #include <stdlib.h> +#include <commonlib/helpers.h> #include <console/console.h> #include <console/uart.h>
diff --git a/src/soc/intel/quark/include/soc/i2c.h b/src/soc/intel/quark/include/soc/i2c.h index f3c585f..9abe402 100644 --- a/src/soc/intel/quark/include/soc/i2c.h +++ b/src/soc/intel/quark/include/soc/i2c.h @@ -16,6 +16,7 @@ #ifndef _QUARK_I2C_H_ #define _QUARK_I2C_H_
+#include <commonlib/helpers.h> #include <stdint.h>
typedef volatile struct _I2C_REGS { diff --git a/src/soc/mediatek/mt8183/emi.c b/src/soc/mediatek/mt8183/emi.c index 7cd631c..15d7fb7 100644 --- a/src/soc/mediatek/mt8183/emi.c +++ b/src/soc/mediatek/mt8183/emi.c @@ -13,6 +13,7 @@ * GNU General Public License for more details. */
+#include <commonlib/helpers.h> #include <device/mmio.h> #include <soc/dramc_param.h> #include <soc/dramc_pi_api.h> diff --git a/src/soc/nvidia/tegra/gpio.c b/src/soc/nvidia/tegra/gpio.c index 6800c5d..2e4bf02 100644 --- a/src/soc/nvidia/tegra/gpio.c +++ b/src/soc/nvidia/tegra/gpio.c @@ -13,6 +13,7 @@ * GNU General Public License for more details. */
+#include <commonlib/helpers.h> #include <device/mmio.h> #include <gpio.h> #include <soc/addressmap.h> diff --git a/src/soc/nvidia/tegra210/include/soc/tegra_dsi.h b/src/soc/nvidia/tegra210/include/soc/tegra_dsi.h index 00bf659..b55ac78 100644 --- a/src/soc/nvidia/tegra210/include/soc/tegra_dsi.h +++ b/src/soc/nvidia/tegra210/include/soc/tegra_dsi.h @@ -15,6 +15,7 @@ #ifndef __TEGRA_DSI_H__ #define __TEGRA_DSI_H__
+#include <commonlib/helpers.h> #include <device/mmio.h>
#define DSI_INCR_SYNCPT 0x00 diff --git a/src/soc/rockchip/common/spi.c b/src/soc/rockchip/common/spi.c index 0307e24..69d6ce0 100644 --- a/src/soc/rockchip/common/spi.c +++ b/src/soc/rockchip/common/spi.c @@ -15,6 +15,7 @@
#include <device/mmio.h> #include <assert.h> +#include <commonlib/helpers.h> #include <console/console.h> #include <delay.h> #include <endian.h>