diff options
author | Jinjie Ruan <[email protected]> | 2024-08-19 20:00:07 +0800 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2024-08-19 09:26:41 -0300 |
commit | cf1e515c9a40caa8bddb920970d3257bb01c1421 (patch) | |
tree | 1491c08f4dbaf05edb3f6472cd731cc7abc6d446 | |
parent | 950aeefb34923fe3c28ade35fe05f24e2c5b1d55 (diff) |
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/[email protected]
Signed-off-by: Jinjie Ruan <[email protected]>
Reviewed-by: Yi Liu <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
-rw-r--r-- | drivers/iommu/iommufd/selftest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/iommufd/selftest.c b/drivers/iommu/iommufd/selftest.c index f95e32e29133..222cfc11ebfd 100644 --- a/drivers/iommu/iommufd/selftest.c +++ b/drivers/iommu/iommufd/selftest.c @@ -273,7 +273,7 @@ static int mock_domain_read_and_clear_dirty(struct iommu_domain *domain, return 0; } -const struct iommu_dirty_ops dirty_ops = { +static const struct iommu_dirty_ops dirty_ops = { .set_dirty_tracking = mock_domain_set_dirty_tracking, .read_and_clear_dirty = mock_domain_read_and_clear_dirty, }; |