iommufd/selftest: Make dirty_ops static
authorJinjie Ruan <ruanjinjie@huawei.com>
Mon, 19 Aug 2024 12:00:07 +0000 (20:00 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 19 Aug 2024 12:26:41 +0000 (09:26 -0300)
commitcf1e515c9a40caa8bddb920970d3257bb01c1421
tree1491c08f4dbaf05edb3f6472cd731cc7abc6d446
parent950aeefb34923fe3c28ade35fe05f24e2c5b1d55
iommufd/selftest: Make dirty_ops static

The sparse tool complains as follows:

drivers/iommu/iommufd/selftest.c:277:30: warning:
symbol 'dirty_ops' was not declared. Should it be static?

This symbol is not used outside of selftest.c, so marks it static.

Fixes: 266ce58989ba ("iommufd/selftest: Test IOMMU_HWPT_ALLOC_DIRTY_TRACKING")
Link: https://patch.msgid.link/r/20240819120007.3884868-1-ruanjinjie@huawei.com
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Reviewed-by: Yi Liu <yi.l.liu@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/iommufd/selftest.c