Skip to contentSkip to conversation

Remove <common.h> from a number of places

PATCH In review Tom Rini 1 participant 20 messages Apr 27, 2024 – May 7, 2024 Page 2 of 2

Subsystems (19)
Networking x86 VFS PowerPC +15 more subsystems
lore
Share & tools
lore
author
#18 lore raw

PATCH 18/18 post: Remove <common.h> and add needed includes

In reply to Tom Rini

Remove <common.h> from all "post/" files and when needed add missing include files directly.

---
 post/cpu/mpc83xx/ecc.c                        | 2 +-
 post/drivers/flash.c                          | 2 +-
 post/drivers/i2c.c                            | 2 +-
 post/drivers/memory.c                         | 2 +-
 post/drivers/rtc.c                            | 2 +-
 post/lib_powerpc/andi.c                       | 2 +-
 post/lib_powerpc/b.c                          | 2 +-
 post/lib_powerpc/cmp.c                        | 2 +-
 post/lib_powerpc/cmpi.c                       | 2 +-
 post/lib_powerpc/complex.c                    | 2 +-
 post/lib_powerpc/cpu.c                        | 2 +-
 post/lib_powerpc/cr.c                         | 2 +-
 post/lib_powerpc/fpu/20001122-1.c             | 2 +-
 post/lib_powerpc/fpu/20010114-2.c             | 2 +-
 post/lib_powerpc/fpu/20010226-1.c             | 2 +-
 post/lib_powerpc/fpu/980619-1.c               | 2 +-
 post/lib_powerpc/fpu/acc1.c                   | 2 +-
 post/lib_powerpc/fpu/compare-fp-1.c           | 2 +-
 post/lib_powerpc/fpu/fpu.c                    | 2 +-
 post/lib_powerpc/fpu/mul-subnormal-single-1.c | 2 +-
 post/lib_powerpc/load.c                       | 2 +-
 post/lib_powerpc/multi.c                      | 2 +-
 post/lib_powerpc/rlwimi.c                     | 2 +-
 post/lib_powerpc/rlwinm.c                     | 2 +-
 post/lib_powerpc/rlwnm.c                      | 2 +-
 post/lib_powerpc/srawi.c                      | 2 +-
 post/lib_powerpc/store.c                      | 2 +-
 post/lib_powerpc/string.c                     | 2 +-
 post/lib_powerpc/three.c                      | 2 +-
 post/lib_powerpc/threei.c                     | 2 +-
 post/lib_powerpc/threex.c                     | 2 +-
 post/lib_powerpc/two.c                        | 2 +-
 post/lib_powerpc/twox.c                       | 2 +-
 post/post.c                                   | 2 +-
 post/tests.c                                  | 3 ++-
 35 files changed, 36 insertions(+), 35 deletions(-)
post/cpu/mpc83xx/ecc.c +1 -1
index 68da8ff41716..766eafa00e71 100644
@@ -8,7 +8,7 @@
  * Dave Liu <[email protected]>
  */
 
-#include <common.h>
+#include <config.h>
 #include <cpu_func.h>
 #include <irq_func.h>
 #include <log.h>
post/drivers/flash.c +1 -1
index a1fcf1f135d9..21e2f940fe92 100644
@@ -7,7 +7,7 @@
  */
 
 #if CFG_POST & CFG_SYS_POST_FLASH
-#include <common.h>
+#include <config.h>
 #include <malloc.h>
 #include <post.h>
 #include <flash.h>
post/drivers/i2c.c +1 -1
index 557d6329a4f0..11c3c8323523 100644
@@ -21,7 +21,7 @@
  * #endif
  */
 
-#include <common.h>
+#include <config.h>
 #include <log.h>
 #include <post.h>
 #include <i2c.h>
post/drivers/memory.c +1 -1
index 1be2b41df45d..8d4ae6fc6f1e 100644
@@ -4,7 +4,7 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 #include <log.h>
 #include <asm/global_data.h>
 
post/drivers/rtc.c +1 -1
index cc7a49847ccd..030954ef3dca 100644
@@ -4,7 +4,7 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 
 /*
  * RTC test
post/lib_powerpc/andi.c +1 -1
index 4f3021668800..3f525f516760 100644
@@ -4,7 +4,7 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 #include <irq_func.h>
 
 /*
post/lib_powerpc/b.c +1 -1
index 0ec032dcb152..9c9931c4f3a9 100644
@@ -4,7 +4,7 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 #include <irq_func.h>
 
 /*
post/lib_powerpc/cmp.c +1 -1
index 57f2b9694c33..9237dd539979 100644
@@ -4,7 +4,7 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 #include <irq_func.h>
 
 /*
post/lib_powerpc/cmpi.c +1 -1
index 6e2bd636d74d..6436586b2914 100644
@@ -4,7 +4,7 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 #include <irq_func.h>
 
 /*
post/lib_powerpc/complex.c +1 -1
index 751bce673785..2899dece2c1d 100644
@@ -4,7 +4,7 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 #include <irq_func.h>
 
 /*
post/lib_powerpc/cpu.c +1 -1
index 98a8c6392c3a..e41e6b3b97b1 100644
@@ -4,7 +4,7 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 #include <cpu_func.h>
 
 /*
post/lib_powerpc/cr.c +1 -1
index 3c7b61138467..1e011f12159e 100644
@@ -4,7 +4,7 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 #include <irq_func.h>
 
 /*
post/lib_powerpc/fpu/20001122-1.c +1 -1
index 9c1c886fc4f7..d6b7bc656f69 100644
@@ -7,7 +7,7 @@
  * This file is originally a part of the GCC testsuite.
  */
 
-#include <common.h>
+#include <config.h>
 
 #include <post.h>
 
post/lib_powerpc/fpu/20010114-2.c +1 -1
index 01bac5003836..5e79c4c69843 100644
@@ -7,7 +7,7 @@
  * This file is originally a part of the GCC testsuite.
  */
 
-#include <common.h>
+#include <config.h>
 
 #include <post.h>
 
post/lib_powerpc/fpu/20010226-1.c +1 -1
index cc4aa0dca645..a65ffcedb49a 100644
@@ -7,7 +7,7 @@
  * This file is originally a part of the GCC testsuite.
  */
 
-#include <common.h>
+#include <config.h>
 
 #include <post.h>
 
post/lib_powerpc/fpu/980619-1.c +1 -1
index 111a2013fb58..8ad256efa9f8 100644
@@ -7,7 +7,7 @@
  * This file is originally a part of the GCC testsuite.
  */
 
-#include <common.h>
+#include <config.h>
 
 #include <post.h>
 
post/lib_powerpc/fpu/acc1.c +1 -1
index 63cc3eeafc30..408c391ce42b 100644
@@ -7,7 +7,7 @@
  * This file is originally a part of the GCC testsuite.
  */
 
-#include <common.h>
+#include <config.h>
 
 #include <post.h>
 
post/lib_powerpc/fpu/compare-fp-1.c +1 -1
index 4b4589664f12..4b8537ea3db3 100644
@@ -9,7 +9,7 @@
  * This file is originally a part of the GCC testsuite.
  */
 
-#include <common.h>
+#include <config.h>
 
 #include <post.h>
 
post/lib_powerpc/fpu/fpu.c +1 -1
index 59109f71e36a..2afe27ab3559 100644
@@ -6,7 +6,7 @@
  * Author: Sergei Poselenov <[email protected]>
  */
 
-#include <common.h>
+#include <config.h>
 
 /*
  * FPU test
post/lib_powerpc/fpu/mul-subnormal-single-1.c +1 -1
index 891aa95685fe..6b86e55e409e 100644
@@ -9,7 +9,7 @@
  * numbers) are rounded to within 0.5 ulp.  PR other/14354.
  */
 
-#include <common.h>
+#include <config.h>
 
 #include <post.h>
 
post/lib_powerpc/load.c +1 -1
index e4ac6bf186f9..0a2a4222846c 100644
@@ -4,7 +4,7 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 #include <irq_func.h>
 
 /*
post/lib_powerpc/multi.c +1 -1
index 4df45790ab65..6f991443741c 100644
@@ -4,7 +4,7 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 #include <irq_func.h>
 #include <log.h>
 
post/lib_powerpc/rlwimi.c +1 -1
index da2191322570..35a9e9b83bf0 100644
@@ -4,7 +4,7 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 #include <irq_func.h>
 
 /*
post/lib_powerpc/rlwinm.c +1 -1
index b0b976f98af4..2995eb358ef4 100644
@@ -4,7 +4,7 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 #include <irq_func.h>
 
 /*
post/lib_powerpc/rlwnm.c +1 -1
index 22cd4568fc88..3ba3a7607ab3 100644
@@ -4,7 +4,7 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 #include <irq_func.h>
 
 /*
post/lib_powerpc/srawi.c +1 -1
index a103df75eb1a..bd59ac4f36b5 100644
@@ -4,7 +4,7 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 #include <irq_func.h>
 
 /*
post/lib_powerpc/store.c +1 -1
index 71a4b6aba431..470ea37e77d0 100644
@@ -4,7 +4,7 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 #include <irq_func.h>
 
 /*
post/lib_powerpc/string.c +1 -1
index 21e02bcb2664..c4ea5cf9ba9d 100644
@@ -4,7 +4,7 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 #include <irq_func.h>
 
 /*
post/lib_powerpc/three.c +1 -1
index 68339b05ef27..e65d7f023f95 100644
@@ -4,7 +4,7 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 #include <irq_func.h>
 
 /*
post/lib_powerpc/threei.c +1 -1
index 885dd8cb095e..0c3a2e6674b8 100644
@@ -4,7 +4,7 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 #include <irq_func.h>
 
 /*
post/lib_powerpc/threex.c +1 -1
index 62ac713ecff7..24ebc98d48df 100644
@@ -4,7 +4,7 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 #include <irq_func.h>
 
 /*
post/lib_powerpc/two.c +1 -1
index 7985669ba6eb..28c70ec88977 100644
@@ -4,7 +4,7 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 #include <irq_func.h>
 
 /*
post/lib_powerpc/twox.c +1 -1
index 33d1a1d8d91d..7f6a898d6397 100644
@@ -4,7 +4,7 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 #include <irq_func.h>
 
 /*
post/post.c +1 -1
index 946d9094d451..705f94ccc919 100644
@@ -4,7 +4,7 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
+#include <config.h>
 #include <bootstage.h>
 #include <env.h>
 #include <log.h>
post/tests.c +2 -1
index 8cea428fcdc7..208710a48ba7 100644
@@ -4,7 +4,8 @@
  * Wolfgang Denk, DENX Software Engineering, [email protected].
  */
 
-#include <common.h>
+#include <config.h>
+#include <linux/kernel.h>
 
 #include <post.h>
 
Signature · 1 line
2.34.1
author
#19 lore raw
In reply to Tom Rini
Quoted 11 lines · Tom Rini

Hey all,

This series is the next step in winding down usage of <common.h> in order to be able to then remove it. This covers not quite 25% of the remaining users of the file. Of what is left, it's either arch/arm/, board/ or drivers/ code. I am likely to start tackling arch/arm/ next, and depending on how exactly I break that down I may try and cover some board/ code as well (for example, tackle arch/arm/mach-omap/ and arch/arm/mach-k3 and board/ti/ (and then the other vendors too..) in one commit.

Quoted 1 line

[...]

Applied to u-boot/next, thanks!

Signature · 1 line
Tom