iommu/amd: Set variable amd_dirty_ops to static
authorKunwu Chan <chentao@kylinos.cn>
Mon, 20 Nov 2023 09:53:42 +0000 (17:53 +0800)
committerJoerg Roedel <jroedel@suse.de>
Mon, 27 Nov 2023 09:59:23 +0000 (10:59 +0100)
commit9abe6c55354db38f0906fcaf4e1c1644c26cd624
tree0f1e4f56bbb2c910f9723802fdcd1cc4ee1bc216
parent2cc14f52aeb78ce3f29677c2de1f06c0e91471ab
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>
drivers/iommu/amd/iommu.c