[PATCH v3 3/5] iommu: qcom-smmu: add missing linux/bug.h header for WARN_ON

Christian Marangi ansuelsmth at gmail.com
Fri Jun 6 09:21:32 CEST 2025


The WARN_ON macro requires inclusion of linux/bug.h header. It did
previously work as bitfield.h included it indirectly but now this has
changed.

Explicitly include the header to fix compilation error.

Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
 drivers/iommu/qcom-hyp-smmu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/iommu/qcom-hyp-smmu.c b/drivers/iommu/qcom-hyp-smmu.c
index c1b95bc8b8c..2e51ce4f242 100644
--- a/drivers/iommu/qcom-hyp-smmu.c
+++ b/drivers/iommu/qcom-hyp-smmu.c
@@ -11,6 +11,7 @@
 #include <dm.h>
 #include <iommu.h>
 #include <linux/bitfield.h>
+#include <linux/bug.h>
 #include <linux/list.h>
 #include <linux/err.h>
 #include <lmb.h>
-- 
2.48.1



More information about the U-Boot mailing list