Skip to content

Commit c52159b

Browse files
Tom Rixjgunthorpe
authored andcommitted
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: 65c619a ("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>
1 parent 9fdf791 commit c52159b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/iommu/iommufd/selftest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ static const struct iommu_ops mock_ops = {
292292
},
293293
};
294294

295-
struct iommu_device mock_iommu_device = {
295+
static struct iommu_device mock_iommu_device = {
296296
.ops = &mock_ops,
297297
};
298298

0 commit comments

Comments
 (0)