tree: Remove unused <stdarg.h>
<stdarg.h> header is used to define macros for handling variable argument lists in functions like printf. It does not depend on the string or memory manipulation functions provided by <string.h>. So let follow conventions and include only the necessary headers in each header file. Change-Id: I07ffc65b7feefb8ec4ab8dd268113f9ed8d24685 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/82664 Reviewed-by: Maximilian Brune <maximilian.brune@9elements.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
@@ -1,8 +1,7 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Note: This file is only for POSIX compatibility, and is meant to be
|
* Note: This file is only for POSIX compatibility.
|
||||||
* chain-included via string.h.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef STDARG_H
|
#ifndef STDARG_H
|
||||||
|
@@ -3,7 +3,6 @@
|
|||||||
#ifndef STRING_H
|
#ifndef STRING_H
|
||||||
#define STRING_H
|
#define STRING_H
|
||||||
|
|
||||||
#include <stdarg.h> /* IWYU pragma: export */
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdio.h> /* IWYU pragma: export */
|
#include <stdio.h> /* IWYU pragma: export */
|
||||||
|
|
||||||
|
@@ -21,7 +21,6 @@
|
|||||||
#include <security/vboot/symbols.h>
|
#include <security/vboot/symbols.h>
|
||||||
#include <security/vboot/vboot_common.h>
|
#include <security/vboot/vboot_common.h>
|
||||||
#include <arch/stages.h>
|
#include <arch/stages.h>
|
||||||
#include <stdarg.h>
|
|
||||||
#include <timestamp.h>
|
#include <timestamp.h>
|
||||||
|
|
||||||
extern char _bss_start, _bss_end;
|
extern char _bss_start, _bss_end;
|
||||||
|
Reference in New Issue
Block a user