From: Tom Rini Date: Thu, 14 Dec 2023 18:16:57 +0000 (-0500) Subject: include: Further cleanup includes X-Git-Url: http://git.dujemihanovic.xyz/html/static/git-favicon.png?a=commitdiff_plain;h=1e8ce11a0b94bb2fcf55590eeffa9c85886b89bc;p=u-boot.git include: Further cleanup includes Add some missing headers such as or or to header files that make direct usage of things provided by these headers. Reviewed-by: Simon Glass Signed-off-by: Tom Rini --- diff --git a/include/atmel_lcd.h b/include/atmel_lcd.h index 66436b9b27..a115d6c170 100644 --- a/include/atmel_lcd.h +++ b/include/atmel_lcd.h @@ -9,6 +9,8 @@ #ifndef _ATMEL_LCD_H_ #define _ATMEL_LCD_H_ +#include + /** * struct atmel_lcd_plat - platform data for Atmel LCDs with driver model * diff --git a/include/getopt.h b/include/getopt.h index 6f5811e64b..8645082da2 100644 --- a/include/getopt.h +++ b/include/getopt.h @@ -9,6 +9,8 @@ #ifndef __GETOPT_H #define __GETOPT_H +#include + /** * struct getopt_state - Saved state across getopt() calls */ diff --git a/include/mapmem.h b/include/mapmem.h index 2134c8004d..bb68b4c11a 100644 --- a/include/mapmem.h +++ b/include/mapmem.h @@ -13,6 +13,8 @@ # ifdef CONFIG_ARCH_MAP_SYSMEM #include # else +#include + static inline void *map_sysmem(phys_addr_t paddr, unsigned long len) { return (void *)(uintptr_t)paddr; diff --git a/include/memalign.h b/include/memalign.h index f67f0a74f2..eaa9f6b5cb 100644 --- a/include/memalign.h +++ b/include/memalign.h @@ -11,6 +11,7 @@ * is used to align DMA buffers. */ #ifndef __ASSEMBLY__ +#include #include #include diff --git a/include/net6.h b/include/net6.h index 1e766aa720..1ed989e584 100644 --- a/include/net6.h +++ b/include/net6.h @@ -12,6 +12,7 @@ #include #include +#include /* struct in6_addr - 128 bits long IPv6 address */ struct in6_addr { diff --git a/include/rtc.h b/include/rtc.h index b6fdbb60dc..22f6d37059 100644 --- a/include/rtc.h +++ b/include/rtc.h @@ -16,6 +16,7 @@ #include #include #include +#include typedef int64_t time64_t; struct udevice;