diff options
author | Tom Rix | 2023-04-03 20:23:17 -0400 |
---|---|---|
committer | Jason Gunthorpe | 2023-04-04 11:02:39 -0300 |
commit | c52159b5be7894540acdc7a35791c0b57097fa4c (patch) | |
tree | d287d1f7b58dab67a21bd455e1cd9bbad520f5f0 /drivers/iommu | |
parent | 9fdf791612866da2ae09930774fe5c8604962691 (diff) |
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>
Diffstat (limited to 'drivers/iommu')
-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 4463060ec84b..74c2076105d4 100644 --- a/drivers/iommu/iommufd/selftest.c +++ b/drivers/iommu/iommufd/selftest.c @@ -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, }; |