From 3f9613bf6dbf84313b46c3ca364457e28bc00008 Mon Sep 17 00:00:00 2001 From: Thomas Heijligen Date: Mon, 28 Nov 2022 11:46:48 +0100 Subject: commonlib/bsd, libpayload: Do not include helpers.h in stddef.h `stddef.h` should only provide the definitions defined by ISO or Posix. The included `commonlib/bsd/helpers.h` provide a lot of non standard definitions that may interfere with definitions from the application. Change-Id: Ia71edbc3ffe6694ff4b971decf3a41f915264bc8 Signed-off-by: Thomas Heijligen Reviewed-on: https://review.coreboot.org/c/coreboot/+/70116 Reviewed-by: Elyes Haouas Tested-by: build bot (Jenkins) --- payloads/libpayload/arch/x86/boot_media.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'payloads/libpayload/arch/x86') diff --git a/payloads/libpayload/arch/x86/boot_media.c b/payloads/libpayload/arch/x86/boot_media.c index 99fb4e3c2a..07e08b6134 100644 --- a/payloads/libpayload/arch/x86/boot_media.c +++ b/payloads/libpayload/arch/x86/boot_media.c @@ -1,11 +1,7 @@ /* SPDX-License-Identifier: BSD-3-Clause */ -#include +#include #include -#include -#include -#include -#include __attribute__((weak)) ssize_t boot_device_read(void *buf, size_t offset, size_t size) { -- cgit v1.2.3