]> Gentwo Git Trees - linux/.git/commitdiff
iommu/iommupt: Fix build error in genericpt unit-tests
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 7 Nov 2025 10:47:01 +0000 (11:47 +0100)
committerJoerg Roedel <joerg.roedel@amd.com>
Fri, 7 Nov 2025 15:06:19 +0000 (16:06 +0100)
Fix the include of iommu-pages.h in the KUnit tests for the IOMMU
generic page-table code to make the tests compile again.

Reported-by: Thorsten Leemhuis <linux@leemhuis.info>
Closes: https://lore.kernel.org/all/9844d4cb-f517-478b-9911-b6dc1a963b8e@leemhuis.info/
Reported-by: "Longia, Amandeep Kaur" <amandeepkaur.longia@amd.com>
Closes: https://lore.kernel.org/all/e641c955-25ad-4eae-b3fe-4392966cf768@amd.com/
Fixes: 1dd4187f53c3 ("iommupt: Add a kunit test for Generic Page Table")
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Tested-by: Thorsten Leemhuis <linux@leemhuis.info>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/generic_pt/kunit_iommu.h

index 5d4f269627d5743bf7b39cfe78f8afd95b8d56c5..22c9e4c4dd97cd88004ab4951cca969857162f62 100644 (file)
@@ -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)