iommufd/selftest: Set varaiable mock_iommu_device storage-class-specifier to static
authorTom Rix <trix@redhat.com>
Tue, 4 Apr 2023 00:23:17 +0000 (20:23 -0400)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 4 Apr 2023 14:02:39 +0000 (11:02 -0300)
commitc52159b5be7894540acdc7a35791c0b57097fa4c
treed287d1f7b58dab67a21bd455e1cd9bbad520f5f0
parent9fdf791612866da2ae09930774fe5c8604962691
iommufd/selftest: Set varaiable mock_iommu_device storage-class-specifier to static

smatch reports:

drivers/iommu/iommufd/selftest.c:295:21: warning: symbol
  'mock_iommu_device' was not declared. Should it be static?

This variable is only used in one file so it should be static.

Fixes: 65c619ae0680 ("iommufd/selftest: Make selftest create a more complete mock device")
Link: https://lore.kernel.org/r/20230404002317.1912530-1-trix@redhat.com
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/iommufd/selftest.c