In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
case VFIO_PCI_ERR_IRQ_INDEX:
if (pci_is_pcie(vdev->pdev))
break;
case VFIO_PCI_ERR_IRQ_INDEX:
if (pci_is_pcie(vdev->pdev))
break;
- /* pass thru to return error */
default:
return -EINVAL;
}
default:
return -EINVAL;
}
break;
case VFIO_TYPE1_NESTING_IOMMU:
iommu->nesting = true;
break;
case VFIO_TYPE1_NESTING_IOMMU:
iommu->nesting = true;
case VFIO_TYPE1v2_IOMMU:
iommu->v2 = true;
break;
case VFIO_TYPE1v2_IOMMU:
iommu->v2 = true;
break;