Skip to content

Commit 9abe6c5

Browse files
KunWuChanjoergroedel
authored andcommitted
iommu/amd: Set variable amd_dirty_ops to static
Fix the followng warning: drivers/iommu/amd/iommu.c:67:30: warning: symbol 'amd_dirty_ops' was not declared. Should it be static? This variable is only used in its defining file, so it should be static. Signed-off-by: Kunwu Chan <chentao@kylinos.cn> Reviewed-by: Joao Martins <joao.m.martins@oracle.com> Reviewed-by: Vasant Hegde <vasant.hegde@amd.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Link: https://lore.kernel.org/r/20231120095342.1102999-1-chentao@kylinos.cn Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent 2cc14f5 commit 9abe6c5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/iommu/amd/iommu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ LIST_HEAD(hpet_map);
6464
LIST_HEAD(acpihid_map);
6565

6666
const struct iommu_ops amd_iommu_ops;
67-
const struct iommu_dirty_ops amd_dirty_ops;
67+
static const struct iommu_dirty_ops amd_dirty_ops;
6868

6969
int amd_iommu_max_glx_val = -1;
7070

@@ -2635,7 +2635,7 @@ static bool amd_iommu_enforce_cache_coherency(struct iommu_domain *domain)
26352635
return true;
26362636
}
26372637

2638-
const struct iommu_dirty_ops amd_dirty_ops = {
2638+
static const struct iommu_dirty_ops amd_dirty_ops = {
26392639
.set_dirty_tracking = amd_iommu_set_dirty_tracking,
26402640
.read_and_clear_dirty = amd_iommu_read_and_clear_dirty,
26412641
};

0 commit comments

Comments
 (0)