Re: [PATCH] iommufd/selftest: set varaiable mock_iommu_device storage-class-specifier to static

From: Jason Gunthorpe
Date: Tue Apr 04 2023 - 07:57:44 EST


On Mon, Apr 03, 2023 at 08:23:17PM -0400, Tom Rix wrote:
> 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.
> Signed-off-by: Tom Rix <trix@xxxxxxxxxx>
> ---
> drivers/iommu/iommufd/selftest.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

Thanks, I applied this

Jason