[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20260108102541.232459-1-ben.dooks@codethink.co.uk>
Date: Thu, 8 Jan 2026 10:25:41 +0000
From: Ben Dooks <ben.dooks@...ethink.co.uk>
To: linux-kernel@...r.kernel.org,
iommu@...ts.linux.dev
Cc: robin.murphy@....com,
will@...nel.org,
suravee.suthikulpanit@....com,
joro@...tes.org,
Ben Dooks <ben.dooks@...ethink.co.uk>
Subject: [PATCH] iommu/amd: define 'amd_ivhd_dev_flags_list' in header
The 'amd_ivhd_dev_flags_list' is used in the amd_iommu_types.h
header but not defined, so add the definition to remove the
following sparse warning:
drivers/iommu/amd/init.c:182:1: warning: symbol 'amd_ivhd_dev_flags_list' was not declared. Should it be static?
Signed-off-by: Ben Dooks <ben.dooks@...ethink.co.uk>
---
drivers/iommu/amd/amd_iommu_types.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/iommu/amd/amd_iommu_types.h b/drivers/iommu/amd/amd_iommu_types.h
index 320733e7d8b4..2ccb629e3243 100644
--- a/drivers/iommu/amd/amd_iommu_types.h
+++ b/drivers/iommu/amd/amd_iommu_types.h
@@ -454,6 +454,7 @@ extern bool amdr_ivrs_remap_support;
#define for_each_pdom_dev_data_safe(pdom_dev_data, next, pdom) \
list_for_each_entry_safe((pdom_dev_data), (next), &pdom->dev_data_list, list)
+extern struct list_head amd_ivhd_dev_flags_list;
#define for_each_ivhd_dte_flags(entry) \
list_for_each_entry((entry), &amd_ivhd_dev_flags_list, list)
--
2.37.2.352.g3c44437643
Powered by blists - more mailing lists