Skip to contentSkip to conversation

Fix ADI driver header dependencies

PATCH In review Greg Malysa 3 participants 5 messages Sep 3, 2025 – Sep 16, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover Fix ADI driver header dependencies

Between 2025.07 and 2025.10 many header dependency chains were improved, but this exposed implicit header usage in several of our drivers. This wasn't discovered before or included in the original fixes because our drivers are not yet used by any mainline-supported boards, so build tests did not find them. This series addresses the two build failures I've encountered while rebasing our work onto 2025.10 and continuing to prepare the next submission of our board files.

Greg Malysa (2):
net: dwc_eth_qos_adi: Add missing header
mmc: adi_sdhci: Update headers

 drivers/mmc/adi_sdhci.c       | 1 +
 drivers/net/dwc_eth_qos_adi.c | 1 +
 2 files changed, 2 insertions(+)
Signature · 4 lines
2.45.2

base-commit: 76b8edbc732e327d1e56f08c641f51fdefdbff06
branch: dev/uboot2025.10-fixes
#1 lore raw

PATCH 1/2 net: dwc_eth_qos_adi: Add missing header

Following header dependency cleanups, an implicit dependence on env.h was exposed in dwc_eth_qos_adi. However because this driver is not (yet) enabled in any defconfigs, build tests did not identify the missing header. This adds the missing #include so that the driver builds correctly when enabled.

---

---
 drivers/net/dwc_eth_qos_adi.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/dwc_eth_qos_adi.c +1 -0
index 0e6a901e303..fee50a88156 100644
@@ -10,6 +10,7 @@
 
 #include <clk.h>
 #include <dm.h>
+#include <env.h>
 #include <net.h>
 #include <phy.h>
 #include <reset.h>
Signature · 1 line
2.45.2
#2 lore raw

PATCH 2/2 mmc: adi_sdhci: Update headers

In reply to Greg Malysa

As part of the header dependency cleanup between 2025.07 and 2025.10, an implicit route to obtain SZ_128M from linux/sizes.h was removed. This adds an explicit reference to linux/sizes.h to fix build failures for this driver.

---

 drivers/mmc/adi_sdhci.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mmc/adi_sdhci.c +1 -0
index 65a22cefb71..f58897b5218 100644
@@ -15,6 +15,7 @@
 #include <malloc.h>
 #include <sdhci.h>
 #include <asm/cache.h>
+#include <linux/sizes.h>
 
 /* 400KHz is max freq for card ID etc. Use that as min */
 #define EMMC_MIN_FREQ	400000
Signature · 1 line
2.45.2
Reviewed-by on v1 2/2
#3 lore raw

RE: [PATCH 2/2] mmc: adi_sdhci: Update headers

Quoted 18 lines

Subject: [PATCH 2/2] mmc: adi_sdhci: Update headers

As part of the header dependency cleanup between 2025.07 and 2025.10, an implicit route to obtain SZ_128M from linux/sizes.h was removed. This adds an explicit reference to linux/sizes.h to fix build failures for this driver.

---

 drivers/mmc/adi_sdhci.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mmc/adi_sdhci.c index renamed from drivers/mmc/adi_sdhci.c +0 -0

65a22cefb71..f58897b5218 100644

drivers/mmc/adi_sdhci.c line 19

Quoted 5 lines
drivers/mmc/adi_sdhci.c +1 -0
@@ -15,6 +15,7 @@
 #include <malloc.h>
 #include <sdhci.h>
 #include <asm/cache.h>
+#include <linux/sizes.h>
 
#4 lore raw
In reply to Greg Malysa
Quoted 9 lines · Greg Malysa

Between 2025.07 and 2025.10 many header dependency chains were improved, but this exposed implicit header usage in several of our drivers. This wasn't discovered before or included in the original fixes because our drivers are not yet used by any mainline-supported boards, so build tests did not find them. This series addresses the two build failures I've encountered while rebasing our work onto 2025.10 and continuing to prepare the next submission of our board files.

[...]

Applied to u-boot/next, thanks!

[1/2] net: dwc_eth_qos_adi: Add missing header

      commit: 56aa947c2ad6cbdf4e7a4281e83689ac3fbc8498
[2/2] mmc: adi_sdhci: Update headers
      commit: 2941e4c0476c69ef10e0900a8d9cac40a6dcc831
Signature · 1 line
Tom