Elyes Haouas has submitted this change. ( https://review.coreboot.org/c/coreboot/+/81819?usp=email )
Change subject: tree: Drop unused <stdlib.h> ......................................................................
tree: Drop unused <stdlib.h>
Change-Id: Ie7e36cfa5a09d94bb58f12f9bd262255a630424c Signed-off-by: Elyes Haouas ehaouas@noos.fr Reviewed-on: https://review.coreboot.org/c/coreboot/+/81819 Reviewed-by: Yidi Lin yidilin@google.com Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Angel Pons th3fanbus@gmail.com --- M src/drivers/efi/efivars.c M src/drivers/efi/option.c M src/drivers/usb/hub/acpi.c M src/lib/bootsplash.c M src/soc/intel/xeon_sp/chip_common.c M src/soc/intel/xeon_sp/chip_gen1.c M src/soc/intel/xeon_sp/iio_ioapic.c M src/soc/intel/xeon_sp/spr/soc_util.c M src/soc/mediatek/common/early_init.c M src/soc/mediatek/mt8195/pcie.c M src/soc/qualcomm/sc7280/display/edp_ctrl.c M src/superio/nuvoton/npcd378/superio.c 12 files changed, 0 insertions(+), 12 deletions(-)
Approvals: build bot (Jenkins): Verified Yidi Lin: Looks good to me, approved Angel Pons: Looks good to me, but someone else must approve
diff --git a/src/drivers/efi/efivars.c b/src/drivers/efi/efivars.c index a759070..2591eab 100644 --- a/src/drivers/efi/efivars.c +++ b/src/drivers/efi/efivars.c @@ -1,7 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */
#include <stdint.h> -#include <stdlib.h> #include <string.h> #include <console/console.h>
diff --git a/src/drivers/efi/option.c b/src/drivers/efi/option.c index 8e5b326..d634c96 100644 --- a/src/drivers/efi/option.c +++ b/src/drivers/efi/option.c @@ -1,6 +1,5 @@ /* SPDX-License-Identifier: GPL-2.0-only */
-#include <stdlib.h> #include <option.h> #include <smmstore.h>
diff --git a/src/drivers/usb/hub/acpi.c b/src/drivers/usb/hub/acpi.c index 3944952..ebbe4b2 100644 --- a/src/drivers/usb/hub/acpi.c +++ b/src/drivers/usb/hub/acpi.c @@ -2,7 +2,6 @@
#include <acpi/acpigen.h> #include <acpi/acpi_device.h> -#include <stdlib.h>
#include "chip.h"
diff --git a/src/lib/bootsplash.c b/src/lib/bootsplash.c index 0512770..38d0ce7 100644 --- a/src/lib/bootsplash.c +++ b/src/lib/bootsplash.c @@ -5,7 +5,6 @@ #include <console/console.h> #include <endian.h> #include <bootsplash.h> -#include <stdlib.h>
#include "jpeg.h"
diff --git a/src/soc/intel/xeon_sp/chip_common.c b/src/soc/intel/xeon_sp/chip_common.c index aabc54d..a2de2d4 100644 --- a/src/soc/intel/xeon_sp/chip_common.c +++ b/src/soc/intel/xeon_sp/chip_common.c @@ -9,7 +9,6 @@ #include <soc/chip_common.h> #include <soc/soc_util.h> #include <soc/util.h> -#include <stdlib.h>
/** * Find all device of a given vendor and type for the specified socket. diff --git a/src/soc/intel/xeon_sp/chip_gen1.c b/src/soc/intel/xeon_sp/chip_gen1.c index 7e831ab..143cc89 100644 --- a/src/soc/intel/xeon_sp/chip_gen1.c +++ b/src/soc/intel/xeon_sp/chip_gen1.c @@ -12,7 +12,6 @@ #include <soc/chip_common.h> #include <soc/soc_util.h> #include <soc/util.h> -#include <stdlib.h>
static const STACK_RES *domain_to_stack_res(const struct device *dev) { diff --git a/src/soc/intel/xeon_sp/iio_ioapic.c b/src/soc/intel/xeon_sp/iio_ioapic.c index 3a99477..66b827f 100644 --- a/src/soc/intel/xeon_sp/iio_ioapic.c +++ b/src/soc/intel/xeon_sp/iio_ioapic.c @@ -5,7 +5,6 @@ #include <soc/chip_common.h> #include <soc/util.h> #include <stdint.h> -#include <stdlib.h>
static uintptr_t xeonsp_ioapic_bases[CONFIG_MAX_SOCKET * MAX_IIO_STACK + 1];
diff --git a/src/soc/intel/xeon_sp/spr/soc_util.c b/src/soc/intel/xeon_sp/spr/soc_util.c index 83418dc..9ad09f4 100644 --- a/src/soc/intel/xeon_sp/spr/soc_util.c +++ b/src/soc/intel/xeon_sp/spr/soc_util.c @@ -10,7 +10,6 @@ #include <soc/pci_devs.h> #include <soc/soc_util.h> #include <soc/util.h> -#include <stdlib.h> #include <pc80/mc146818rtc.h>
const EWL_PRIVATE_DATA *get_ewl_hob(void) diff --git a/src/soc/mediatek/common/early_init.c b/src/soc/mediatek/common/early_init.c index 55ba447..0587802 100644 --- a/src/soc/mediatek/common/early_init.c +++ b/src/soc/mediatek/common/early_init.c @@ -2,7 +2,6 @@
#include <assert.h> #include <soc/early_init.h> -#include <stdlib.h> #include <string.h>
static struct early_init_data *find_early_init(void) diff --git a/src/soc/mediatek/mt8195/pcie.c b/src/soc/mediatek/mt8195/pcie.c index 960d0bb..eb7ad87 100644 --- a/src/soc/mediatek/mt8195/pcie.c +++ b/src/soc/mediatek/mt8195/pcie.c @@ -7,7 +7,6 @@ #include <soc/early_init.h> #include <soc/pcie.h> #include <soc/pcie_common.h> -#include <stdlib.h>
#define PCIE_REG_BASE_PORT0 0x112f0000 #define PCIE_RST_CTRL_REG (PCIE_REG_BASE_PORT0 + 0x148) diff --git a/src/soc/qualcomm/sc7280/display/edp_ctrl.c b/src/soc/qualcomm/sc7280/display/edp_ctrl.c index 2bf7958..48a832a 100644 --- a/src/soc/qualcomm/sc7280/display/edp_ctrl.c +++ b/src/soc/qualcomm/sc7280/display/edp_ctrl.c @@ -7,7 +7,6 @@ #include <delay.h> #include <types.h> #include <string.h> -#include <stdlib.h> #include <soc/clock.h> #include <gpio.h> #include <soc/display/edp_reg.h> diff --git a/src/superio/nuvoton/npcd378/superio.c b/src/superio/nuvoton/npcd378/superio.c index ddf63cd..d642dd5 100644 --- a/src/superio/nuvoton/npcd378/superio.c +++ b/src/superio/nuvoton/npcd378/superio.c @@ -10,7 +10,6 @@ #include <acpi/acpi.h> #include <acpi/acpigen.h> #include <superio/common/ssdt.h> -#include <stdlib.h>
#include "npcd378.h"