Skip to content

Commit 544c05a

Browse files
GustavoARSilvaawilliam
authored andcommitted
vfio: Mark expected switch fall-throughs
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>
1 parent 1ffaddd commit 544c05a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

drivers/vfio/pci/vfio_pci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ static long vfio_pci_ioctl(void *device_data,
789789
case VFIO_PCI_ERR_IRQ_INDEX:
790790
if (pci_is_pcie(vdev->pdev))
791791
break;
792-
/* pass thru to return error */
792+
/* fall through */
793793
default:
794794
return -EINVAL;
795795
}

drivers/vfio/vfio_iommu_type1.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1601,6 +1601,7 @@ static void *vfio_iommu_type1_open(unsigned long arg)
16011601
break;
16021602
case VFIO_TYPE1_NESTING_IOMMU:
16031603
iommu->nesting = true;
1604+
/* fall through */
16041605
case VFIO_TYPE1v2_IOMMU:
16051606
iommu->v2 = true;
16061607
break;

0 commit comments

Comments
 (0)