Skip to content

Commit c7883f8

Browse files
committed
iommu/virtio: Fix compile error with viommu_capable()
A recent fix introduced viommu_capable() but other changes from Robin change the function signature of the call-back it is used for. When both changes are merged a compile error will happen because the function pointer types mismatch. Fix that by updating the viommu_capable() signature after the merge. Cc: Jean-Philippe Brucker <jean-philippe@linaro.org> Cc: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Joerg Roedel <jroedel@suse.de> Acked-by: Robin Murphy <robin.murphy@arm.com> Reviewed-by: Jean-Philippe Brucker <jean-philippe@linaro.org> Link: https://lore.kernel.org/r/20220907151154.21911-1-joro@8bytes.org
1 parent 7f34891 commit c7883f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/virtio-iommu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ static int viommu_of_xlate(struct device *dev, struct of_phandle_args *args)
10051005
return iommu_fwspec_add_ids(dev, args->args, 1);
10061006
}
10071007

1008-
static bool viommu_capable(enum iommu_cap cap)
1008+
static bool viommu_capable(struct device *dev, enum iommu_cap cap)
10091009
{
10101010
switch (cap) {
10111011
case IOMMU_CAP_CACHE_COHERENCY:

0 commit comments

Comments
 (0)