Skip to content

Commit e378c7d

Browse files
KunWuChanjoergroedel
authored andcommitted
iommu/vt-d: Set variable intel_dirty_ops to static
Fix the following warning: drivers/iommu/intel/iommu.c:302:30: warning: symbol 'intel_dirty_ops' was not declared. Should it be static? This variable is only used in its defining file, so it should be static. Fixes: f35f22c ("iommu/vt-d: Access/Dirty bit support for SS domains") Signed-off-by: Kunwu Chan <chentao@kylinos.cn> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Reviewed-by: Joao Martins <joao.m.martins@oracle.com> Link: https://lore.kernel.org/r/20231120101025.1103404-1-chentao@kylinos.cn Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent e7ad6c2 commit e378c7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/iommu/intel/iommu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ static int iommu_skip_te_disable;
299299
#define IDENTMAP_AZALIA 4
300300

301301
const struct iommu_ops intel_iommu_ops;
302-
const struct iommu_dirty_ops intel_dirty_ops;
302+
static const struct iommu_dirty_ops intel_dirty_ops;
303303

304304
static bool translation_pre_enabled(struct intel_iommu *iommu)
305305
{
@@ -4929,7 +4929,7 @@ static int intel_iommu_read_and_clear_dirty(struct iommu_domain *domain,
49294929
return 0;
49304930
}
49314931

4932-
const struct iommu_dirty_ops intel_dirty_ops = {
4932+
static const struct iommu_dirty_ops intel_dirty_ops = {
49334933
.set_dirty_tracking = intel_iommu_set_dirty_tracking,
49344934
.read_and_clear_dirty = intel_iommu_read_and_clear_dirty,
49354935
};

0 commit comments

Comments
 (0)