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: 65c619ae06 ("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>
This commit is contained in:
Tom Rix 2023-04-03 20:23:17 -04:00 committed by Jason Gunthorpe
parent 9fdf791612
commit c52159b5be
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ static const struct iommu_ops mock_ops = {
},
};
struct iommu_device mock_iommu_device = {
static struct iommu_device mock_iommu_device = {
.ops = &mock_ops,
};