
From: Simon Glass sjg@chromium.org
Move this out of the common header and include it only where needed.
Signed-off-by: Simon Glass sjg@chromium.org --- api/api.c | 1 + board/CZ.NIC/turris_mox/turris_mox.c | 1 + common/lcd_console.c | 1 + common/log.c | 1 + common/log_syslog.c | 1 + drivers/core/util.c | 1 + drivers/fastboot/fb_common.c | 1 + drivers/gpio/gpio-uclass.c | 1 + drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c | 1 + include/common.h | 1 - include/efi.h | 1 + include/exports.h | 1 + lib/efi_selftest/efi_selftest_console.c | 1 + lib/panic.c | 1 + lib/tpm-common.c | 1 + post/post.c | 1 + test/ut.c | 1 + 17 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/api/api.c b/api/api.c index d6b5b60c2255..748df20bebe4 100644 --- a/api/api.c +++ b/api/api.c @@ -11,6 +11,7 @@ #include <env.h> #include <malloc.h> #include <env_internal.h> +#include <stdarg.h> #include <stdio.h> #include <time.h> #include <linux/delay.h> diff --git a/board/CZ.NIC/turris_mox/turris_mox.c b/board/CZ.NIC/turris_mox/turris_mox.c index f5fcb93262b7..7f2ed1350bf2 100644 --- a/board/CZ.NIC/turris_mox/turris_mox.c +++ b/board/CZ.NIC/turris_mox/turris_mox.c @@ -4,6 +4,7 @@ */
#include <common.h> +#include <stdarg.h> #include <stdio.h> #include <asm/arch/cpu.h> #include <asm/arch/soc.h> diff --git a/common/lcd_console.c b/common/lcd_console.c index 7a10a20d7244..0ccb4a468802 100644 --- a/common/lcd_console.c +++ b/common/lcd_console.c @@ -11,6 +11,7 @@ #include <lcd.h> #include <log.h> #include <serial.h> +#include <stdarg.h> #include <video_font.h> /* Get font data, width and height */ #if defined(CONFIG_LCD_LOGO) #include <bmp_logo.h> diff --git a/common/log.c b/common/log.c index 0eeee6a66b0a..493ee0ff0d9f 100644 --- a/common/log.c +++ b/common/log.c @@ -9,6 +9,7 @@ #include <common.h> #include <log.h> #include <malloc.h> +#include <stdarg.h> #include <asm/global_data.h> #include <dm/uclass.h> #include <linux/string.h> diff --git a/common/log_syslog.c b/common/log_syslog.c index 2f3c93bf8393..6cb4ed18ca12 100644 --- a/common/log_syslog.c +++ b/common/log_syslog.c @@ -8,6 +8,7 @@ #include <common.h> #include <log.h> #include <net.h> +#include <stdarg.h> #include <asm/global_data.h> #include <linux/string.h>
diff --git a/drivers/core/util.c b/drivers/core/util.c index 7a2fe1f4394b..cd15768970cc 100644 --- a/drivers/core/util.c +++ b/drivers/core/util.c @@ -4,6 +4,7 @@ */
#include <common.h> +#include <stdarg.h> #include <stdio.h> #include <dm/device.h> #include <dm/ofnode.h> diff --git a/drivers/fastboot/fb_common.c b/drivers/fastboot/fb_common.c index da467666cf4c..325ce4d283fe 100644 --- a/drivers/fastboot/fb_common.c +++ b/drivers/fastboot/fb_common.c @@ -14,6 +14,7 @@ #include <command.h> #include <env.h> #include <fastboot.h> +#include <stdarg.h> #include <stdio.h> #include <linux/string.h> #include <net/fastboot.h> diff --git a/drivers/gpio/gpio-uclass.c b/drivers/gpio/gpio-uclass.c index 7d4e3354f173..2e371f3ad79c 100644 --- a/drivers/gpio/gpio-uclass.c +++ b/drivers/gpio/gpio-uclass.c @@ -6,6 +6,7 @@ #include <common.h> #include <dm.h> #include <log.h> +#include <stdarg.h> #include <stdio.h> #include <asm/global_data.h> #include <dm/device-internal.h> diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c b/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c index a6acf556bcc7..1b05e2db9f6d 100644 --- a/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c +++ b/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c @@ -3,6 +3,7 @@ #include <common.h> #include <dm.h> #include <malloc.h> +#include <stdarg.h> #include <dm/devres.h> #include "brcmnand_compat.h"
diff --git a/include/common.h b/include/common.h index 33171360ddb0..31c3d462132f 100644 --- a/include/common.h +++ b/include/common.h @@ -16,7 +16,6 @@ #include <config.h> #include <errno.h> #include <linux/types.h> -#include <stdarg.h> #include <linux/kernel.h> #include <vsprintf.h> #endif /* __ASSEMBLY__ */ diff --git a/include/efi.h b/include/efi.h index f986aad87777..818295642ddb 100644 --- a/include/efi.h +++ b/include/efi.h @@ -16,6 +16,7 @@ #ifndef _EFI_H #define _EFI_H
+#include <stdarg.h> #include <linux/linkage.h> #include <linux/string.h> #include <linux/types.h> diff --git a/include/exports.h b/include/exports.h index 5e10fc3bce53..935cf594c3b4 100644 --- a/include/exports.h +++ b/include/exports.h @@ -2,6 +2,7 @@ #define __EXPORTS_H__
#include <irq_func.h> +#include <stdarg.h> #include <stdio.h> #include <time.h> #include <asm/global_data.h> diff --git a/lib/efi_selftest/efi_selftest_console.c b/lib/efi_selftest/efi_selftest_console.c index 13f3ee6bc19f..0462c196c16d 100644 --- a/lib/efi_selftest/efi_selftest_console.c +++ b/lib/efi_selftest/efi_selftest_console.c @@ -7,6 +7,7 @@
#include <efi_selftest.h> #include <net.h> +#include <stdarg.h> #include <vsprintf.h>
struct efi_simple_text_output_protocol *con_out; diff --git a/lib/panic.c b/lib/panic.c index eba1d43b7551..2267a8d4fb91 100644 --- a/lib/panic.c +++ b/lib/panic.c @@ -14,6 +14,7 @@ #if !defined(CONFIG_PANIC_HANG) #include <command.h> #endif +#include <stdarg.h> #include <stdio.h> #include <linux/delay.h>
diff --git a/lib/tpm-common.c b/lib/tpm-common.c index adfe49190699..21fc4c7c865e 100644 --- a/lib/tpm-common.c +++ b/lib/tpm-common.c @@ -9,6 +9,7 @@ #include <common.h> #include <dm.h> #include <log.h> +#include <stdarg.h> #include <asm/unaligned.h> #include <tpm-common.h> #include <linux/string.h> diff --git a/post/post.c b/post/post.c index 5671da102510..ad700975846b 100644 --- a/post/post.c +++ b/post/post.c @@ -9,6 +9,7 @@ #include <env.h> #include <log.h> #include <malloc.h> +#include <stdarg.h> #include <stdio.h> #include <stdio_dev.h> #include <time.h> diff --git a/test/ut.c b/test/ut.c index a7cd25d1a053..12e3de619a12 100644 --- a/test/ut.c +++ b/test/ut.c @@ -8,6 +8,7 @@ #include <common.h> #include <console.h> #include <malloc.h> +#include <stdarg.h> #include <stdio.h> #include <asm/global_data.h> #include <test/test.h>