summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2024-05-27 11:20:07 +0200
committerElyes Haouas <ehaouas@noos.fr>2024-05-29 10:33:54 +0000
commitbdd03c20d5b1cd7ca17e2559a44ddcf1da06f3be (patch)
tree3efad8a2559fba312165272eb2abdb7b72b146db /src/mainboard/google
parent93ca6b676cd0ac4c3755bb69cf690dc23a28b22a (diff)
tree: Use <stdio.h> for snprintf
<stdio.h> header is used for input/output operations (such as printf, scanf, fopen, etc.). Although some input/output functions can manipulate strings, they do not need to directly include <string.h> because they are declared independently. Change-Id: Ibe2a4ff6f68843a6d99cfdfe182cf2dd922802aa Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/82665 Reviewed-by: Yidi Lin <yidilin@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/fizz/mainboard.c1
-rw-r--r--src/mainboard/google/gru/sdram_configs.c1
-rw-r--r--src/mainboard/google/kahlee/mainboard.c1
-rw-r--r--src/mainboard/google/kukui/mainboard.c1
-rw-r--r--src/mainboard/google/poppy/variants/nami/mainboard.c1
-rw-r--r--src/mainboard/google/poppy/variants/nautilus/mainboard.c1
-rw-r--r--src/mainboard/google/poppy/variants/rammus/mainboard.c1
-rw-r--r--src/mainboard/google/reef/mainboard.c1
-rw-r--r--src/mainboard/google/rex/mainboard.c1
-rw-r--r--src/mainboard/google/volteer/mainboard.c1
10 files changed, 10 insertions, 0 deletions
diff --git a/src/mainboard/google/fizz/mainboard.c b/src/mainboard/google/fizz/mainboard.c
index 0d631cc5e4..257a27f985 100644
--- a/src/mainboard/google/fizz/mainboard.c
+++ b/src/mainboard/google/fizz/mainboard.c
@@ -14,6 +14,7 @@
#include <smbios.h>
#include <soc/pci_devs.h>
#include <soc/nhlt.h>
+#include <stdio.h>
#include <string.h>
#include <timer.h>
diff --git a/src/mainboard/google/gru/sdram_configs.c b/src/mainboard/google/gru/sdram_configs.c
index 64f45dea9e..971b671d79 100644
--- a/src/mainboard/google/gru/sdram_configs.c
+++ b/src/mainboard/google/gru/sdram_configs.c
@@ -5,6 +5,7 @@
#include <console/console.h>
#include <gpio.h>
#include <soc/sdram.h>
+#include <stdio.h>
#include <string.h>
#include <types.h>
diff --git a/src/mainboard/google/kahlee/mainboard.c b/src/mainboard/google/kahlee/mainboard.c
index 427f094677..1290b97293 100644
--- a/src/mainboard/google/kahlee/mainboard.c
+++ b/src/mainboard/google/kahlee/mainboard.c
@@ -16,6 +16,7 @@
#include <soc/acpi.h>
#include <soc/pci_devs.h>
#include <soc/southbridge.h>
+#include <stdio.h>
#include <amdblocks/acpimmio.h>
#include <variant/ec.h>
#include <variant/thermal.h>
diff --git a/src/mainboard/google/kukui/mainboard.c b/src/mainboard/google/kukui/mainboard.c
index 69047fa4a2..bc70db5bcf 100644
--- a/src/mainboard/google/kukui/mainboard.c
+++ b/src/mainboard/google/kukui/mainboard.c
@@ -19,6 +19,7 @@
#include <soc/mtcmos.h>
#include <soc/spm.h>
#include <soc/usb.h>
+#include <stdio.h>
#include <string.h>
#include "gpio.h"
diff --git a/src/mainboard/google/poppy/variants/nami/mainboard.c b/src/mainboard/google/poppy/variants/nami/mainboard.c
index aaa51dd840..172581fa4a 100644
--- a/src/mainboard/google/poppy/variants/nami/mainboard.c
+++ b/src/mainboard/google/poppy/variants/nami/mainboard.c
@@ -13,6 +13,7 @@
#include <intelblocks/power_limit.h>
#include <smbios.h>
#include <soc/ramstage.h>
+#include <stdio.h>
#include <string.h>
#include <variant/sku.h>
#include <gpio.h>
diff --git a/src/mainboard/google/poppy/variants/nautilus/mainboard.c b/src/mainboard/google/poppy/variants/nautilus/mainboard.c
index 7350fb05c8..d21acd651b 100644
--- a/src/mainboard/google/poppy/variants/nautilus/mainboard.c
+++ b/src/mainboard/google/poppy/variants/nautilus/mainboard.c
@@ -6,6 +6,7 @@
#include <device/device.h>
#include <device/pci_ops.h>
#include <smbios.h>
+#include <stdio.h>
#include <string.h>
#include <variant/sku.h>
diff --git a/src/mainboard/google/poppy/variants/rammus/mainboard.c b/src/mainboard/google/poppy/variants/rammus/mainboard.c
index 90cf7cec61..e8c7e69842 100644
--- a/src/mainboard/google/poppy/variants/rammus/mainboard.c
+++ b/src/mainboard/google/poppy/variants/rammus/mainboard.c
@@ -3,6 +3,7 @@
#include <baseboard/variants.h>
#include <ec/google/chromeec/ec.h>
#include <smbios.h>
+#include <stdio.h>
#include <string.h>
#include <sar.h>
diff --git a/src/mainboard/google/reef/mainboard.c b/src/mainboard/google/reef/mainboard.c
index ff3bb36e09..4b1b32d522 100644
--- a/src/mainboard/google/reef/mainboard.c
+++ b/src/mainboard/google/reef/mainboard.c
@@ -10,6 +10,7 @@
#include <nhlt.h>
#include <smbios.h>
#include <soc/nhlt.h>
+#include <stdio.h>
#include <string.h>
#include <variant/ec.h>
#include <variant/gpio.h>
diff --git a/src/mainboard/google/rex/mainboard.c b/src/mainboard/google/rex/mainboard.c
index bf489ff528..9157abbe38 100644
--- a/src/mainboard/google/rex/mainboard.c
+++ b/src/mainboard/google/rex/mainboard.c
@@ -9,6 +9,7 @@
#include <ec/ec.h>
#include <fw_config.h>
#include <soc/ramstage.h>
+#include <stdio.h>
#include <stdlib.h>
#include <vendorcode/google/chromeos/chromeos.h>
diff --git a/src/mainboard/google/volteer/mainboard.c b/src/mainboard/google/volteer/mainboard.c
index fba96644e5..ae7519e10e 100644
--- a/src/mainboard/google/volteer/mainboard.c
+++ b/src/mainboard/google/volteer/mainboard.c
@@ -12,6 +12,7 @@
#include <intelblocks/tcss.h>
#include <soc/pci_devs.h>
#include <soc/ramstage.h>
+#include <stdio.h>
#include <variant/gpio.h>
#include <vb2_api.h>