[PATCH 03/22] treewide: fix missing headers in sandbox allyesconfig

Ahmad Fatoum a.fatoum at pengutronix.de
Thu Mar 13 00:34:26 PDT 2025


Building these drivers fails because of missing includes that are
transitively included on ARM, but no on sandbox.

Add the relevant includes directly to address this.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 drivers/dma/ti/k3-udma.c               | 2 +-
 drivers/mfd/tps65219.c                 | 1 +
 drivers/pmdomain/ti/ti-k3.c            | 1 +
 drivers/regulator/tps65219-regulator.c | 1 +
 drivers/soc/ti/k3-navss-ringacc.c      | 1 +
 5 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3-udma.c
index 761898867d4e..e17b99de47c4 100644
--- a/drivers/dma/ti/k3-udma.c
+++ b/drivers/dma/ti/k3-udma.c
@@ -5,9 +5,9 @@
  */
 #define pr_fmt(fmt) "udma: " fmt
 
-#include <asm/cache.h>
 #include <io.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/bitops.h>
 #include <linux/sizes.h>
 #include <linux/printk.h>
diff --git a/drivers/mfd/tps65219.c b/drivers/mfd/tps65219.c
index 854210537fa3..132dab7cdeec 100644
--- a/drivers/mfd/tps65219.c
+++ b/drivers/mfd/tps65219.c
@@ -12,6 +12,7 @@
 #include <linux/regmap.h>
 #include <linux/mfd/tps65219.h>
 #include <linux/device.h>
+#include <linux/kernel.h>
 
 static const struct mfd_cell tps65219_cells[] = {
 	{ .name = "tps65219-regulator", },
diff --git a/drivers/pmdomain/ti/ti-k3.c b/drivers/pmdomain/ti/ti-k3.c
index 33bffeaca001..1616e90b6230 100644
--- a/drivers/pmdomain/ti/ti-k3.c
+++ b/drivers/pmdomain/ti/ti-k3.c
@@ -9,6 +9,7 @@
 #define pr_fmt(fmt)     "ti-k3-pm-domain: " fmt
 
 #include <io.h>
+#include <stdio.h>
 #include <of_device.h>
 #include <malloc.h>
 #include <init.h>
diff --git a/drivers/regulator/tps65219-regulator.c b/drivers/regulator/tps65219-regulator.c
index da329660d688..9ec54ed77908 100644
--- a/drivers/regulator/tps65219-regulator.c
+++ b/drivers/regulator/tps65219-regulator.c
@@ -10,6 +10,7 @@
 // "J Keerthy <j-keerthy at ti.com>"
 //
 
+#include <linux/kernel.h>
 #include <linux/mfd/tps65219.h>
 #include <of_device.h>
 #include <linux/regmap.h>
diff --git a/drivers/soc/ti/k3-navss-ringacc.c b/drivers/soc/ti/k3-navss-ringacc.c
index 933e03018398..f19a37dde064 100644
--- a/drivers/soc/ti/k3-navss-ringacc.c
+++ b/drivers/soc/ti/k3-navss-ringacc.c
@@ -5,6 +5,7 @@
  * Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com
  */
 
+#include <linux/kernel.h>
 #include <driver.h>
 #include <xfuncs.h>
 #include <soc/ti/k3-navss-ringacc.h>
-- 
2.39.5




More information about the barebox mailing list