Skip to contentSkip to conversation

iommu/iommupt: Fix build error in genericpt unit-tests

PATCH In review Joerg Roedel 4 participants 4 messages Nov 7, 2025 – Nov 8, 2025 IOMMU

lore
Share & tools
lore

Joerg Roedel

author maintainer
#0 lore raw

PATCH 1/1 iommu/iommupt: Fix build error in genericpt unit-tests

From: Joerg Roedel <[email protected]>

Fix the include of iommu-pages.h in the KUnit tests for the IOMMU generic page-table code to make the tests compile again.

Fixes 1dd4187f53c3 ("iommupt: Add a kunit test for Generic Page Table")
---
 drivers/iommu/generic_pt/kunit_iommu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/generic_pt/kunit_iommu.h +1 -1
index 5d4f269627d5..22c9e4c4dd97 100644
@@ -8,7 +8,7 @@
 #define GENERIC_PT_KUNIT 1
 #include <kunit/device.h>
 #include <kunit/test.h>
-#include <../../iommu-pages.h>
+#include "../iommu-pages.h"
 #include "pt_iter.h"
 
 #define pt_iommu_table_cfg CONCATENATE(pt_iommu_table, _cfg)
Signature · 1 line
2.51.0
Tested-by on v1 1/1
#1 lore raw

Adding Amandeep Kaur

Quoted 7 lines · Joerg Roedel

From: Joerg Roedel <[email protected]>

Fix the include of iommu-pages.h in the KUnit tests for the IOMMU generic page-table code to make the tests compile again.

Thx Joerg! I did test a equivalent change, so I guess this will be fine:

Maybe also add these:

Closes:
https://lore.kernel.org/all/[email protected]/

Ciao, Thorsten

Quoted 19 lines
Fixes 1dd4187f53c3 ("iommupt: Add a kunit test for Generic Page Table")
---
 drivers/iommu/generic_pt/kunit_iommu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/generic_pt/kunit_iommu.h +1 -1
index 5d4f269627d5..22c9e4c4dd97 100644
@@ -8,7 +8,7 @@
 #define GENERIC_PT_KUNIT 1
 #include <kunit/device.h>
 #include <kunit/test.h>
-#include <../../iommu-pages.h>
+#include "../iommu-pages.h"
 #include "pt_iter.h"
 
 #define pt_iommu_table_cfg CONCATENATE(pt_iommu_table, _cfg)
Reviewed-by on v1 1/1
#2 lore raw
In reply to Joerg Roedel
Quoted 5 lines · Joerg Roedel

From: Joerg Roedel <[email protected]>

Fix the include of iommu-pages.h in the KUnit tests for the IOMMU generic page-table code to make the tests compile again.

Quoted 7 lines
Fixes 1dd4187f53c3 ("iommupt: Add a kunit test for Generic Page Table")
---
 drivers/iommu/generic_pt/kunit_iommu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Jason

Tested-by on v1 1/1
#3 lore raw
In reply to Joerg Roedel
Quoted 9 lines · Joerg Roedel

From: Joerg Roedel <[email protected]>

Fix the include of iommu-pages.h in the KUnit tests for the IOMMU generic page-table code to make the tests compile again.

Fixes 1dd4187f53c3 ("iommupt: Add a kunit test for Generic Page Table")

-Vasant