Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e39dd513 authored by Wang Hai's avatar Wang Hai Committed by Alex Williamson
Browse files

vfio/spapr_tce: Make symbol 'tce_iommu_driver_ops' static



Fixes the following sparse warning:

drivers/vfio/vfio_iommu_spapr_tce.c:1401:36: warning:
 symbol 'tce_iommu_driver_ops' was not declared. Should it be static?

Fixes: 5ffd229c ("powerpc/vfio: Implement IOMMU driver for VFIO")
Signed-off-by: default avatarWang Hai <wanghai26@huawei.com>
Reviewed-by: default avatarAlexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
parent 426b046b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1398,7 +1398,7 @@ static void tce_iommu_detach_group(void *iommu_data,
	mutex_unlock(&container->lock);
}

const struct vfio_iommu_driver_ops tce_iommu_driver_ops = {
static const struct vfio_iommu_driver_ops tce_iommu_driver_ops = {
	.name		= "iommu-vfio-powerpc",
	.owner		= THIS_MODULE,
	.open		= tce_iommu_open,