]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
global: Rework architecture global_data.h to include <linux/types.h>
authorTom Rini <trini@konsulko.com>
Thu, 14 Dec 2023 18:16:52 +0000 (13:16 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 21 Dec 2023 13:54:37 +0000 (08:54 -0500)
In most cases, the architecture global data currently makes use of
assorted linux types, but does not include <linux/types.h> to provide
them. Add <linux/types.h> instead of relying on indirect inclusion.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
arch/mips/include/asm/global_data.h
arch/nios2/include/asm/global_data.h
arch/powerpc/include/asm/global_data.h
arch/riscv/include/asm/global_data.h
arch/x86/include/asm/global_data.h
board/cssi/cmpc885/sdram.c
include/system-constants.h

index f0d3b07bf1eb37737fe81292c2dc4311faed114a..34b7e0bed945ef4267a6a53a763619c3ebade4c2 100644 (file)
@@ -7,8 +7,8 @@
 #ifndef        __ASM_GBL_DATA_H
 #define __ASM_GBL_DATA_H
 
+#include <linux/types.h>
 #include <asm/regdef.h>
-#include <asm/types.h>
 
 struct octeon_eeprom_mac_addr {
        u8 mac_addr_base[6];
index 1a0e7d25fa3b355d20c0aeb0aef573e4a1746022..b56e8a5078e04d505e5b4ef5cd1c37385bfcfb40 100644 (file)
@@ -6,6 +6,8 @@
 #ifndef        __ASM_NIOS2_GLOBALDATA_H_
 #define __ASM_NIOS2_GLOBALDATA_H_
 
+#include <linux/types.h>
+
 /* Architecture-specific global data */
 struct arch_global_data {
        u32 dcache_line_size;
index 43d71f5caec0b0e7755d0152dfaa6ab48b14693f..f7860122a00b903765850205f1aaf4dad156173c 100644 (file)
@@ -8,7 +8,6 @@
 #ifndef        __ASM_GBL_DATA_H
 #define __ASM_GBL_DATA_H
 
-#include <config.h>
 #include <linux/types.h>
 
 /* Architecture-specific global data */
index 937fa4d15446e94f71986e1761a2019624a92669..d00247ad95367c3003b43a39ca0891cc39a8a64b 100644 (file)
@@ -10,6 +10,7 @@
 #ifndef        __ASM_GBL_DATA_H
 #define __ASM_GBL_DATA_H
 
+#include <linux/types.h>
 #include <asm/smp.h>
 #include <asm/u-boot.h>
 #include <compiler.h>
index 6f4a7130f1da78f78a97a70a91153e84ed7849f4..1ef7f1f0349e6cc31622c7b0c926afd58c3ffe18 100644 (file)
@@ -9,6 +9,7 @@
 
 #ifndef __ASSEMBLY__
 
+#include <linux/types.h>
 #include <asm/processor.h>
 #include <asm/mrccache.h>
 
index 11a50c3a52d62a3c5fe3563860c70e910f3b48a0..828784bd368e8b8d035bd321eff6f2df712cd685 100644 (file)
@@ -4,6 +4,7 @@
  * Charles Frey <charles.frey@c-s.fr>
  */
 
+#include <config.h>
 #include <linux/sizes.h>
 #include <linux/delay.h>
 #include <init.h>
index d688629f119b095166a28f93363f28878a765a38..e09fc418a47c89f6b95fac04bbb2624c26b6e20a 100644 (file)
@@ -3,6 +3,8 @@
 #ifndef __SYSTEM_CONSTANTS_H__
 #define __SYSTEM_CONSTANTS_H__
 
+#include <config.h>
+
 /*
  * The most common case for our initial stack pointer address is to
  * say that we have defined a static intiial ram address location and