SHA256
1
0
forked from pool/dpdk
dpdk/dpdk-fix-implicit-fallthrough-warning.patch
Marcus Meissner bbfa5c2bf8 Accepting request 734272 from home:jaicaa:branches:network
- Changed to multibuild (bsc#1151455). 
- Added dpdk-fix-implicit-fallthrough-warning.patch to address build error with
  recent kernels (bsc#1144704).

OBS-URL: https://build.opensuse.org/request/show/734272
OBS-URL: https://build.opensuse.org/package/show/network/dpdk?expand=0&rev=109
2019-10-03 08:18:33 +00:00

31 lines
945 B
Diff

diff -ur dpdk-18.11.orig/kernel/linux/igb_uio/igb_uio.c dpdk-18.11/kernel/linux/igb_uio/igb_uio.c
--- dpdk-18.11.orig/kernel/linux/igb_uio/igb_uio.c 2018-11-27 00:36:00.000000000 +0100
+++ dpdk-18.11/kernel/linux/igb_uio/igb_uio.c 2019-08-14 09:49:58.720141734 +0200
@@ -235,8 +235,8 @@
break;
}
#endif
-
/* fall back to MSI */
+ /* fallthrough */
case RTE_INTR_MODE_MSI:
#ifndef HAVE_ALLOC_IRQ_VECTORS
if (pci_enable_msi(udev->pdev) == 0) {
@@ -256,6 +256,7 @@
}
#endif
/* fall back to INTX */
+ /* fallthrough */
case RTE_INTR_MODE_LEGACY:
if (pci_intx_mask_supported(udev->pdev)) {
dev_dbg(&udev->pdev->dev, "using INTX");
@@ -266,6 +267,7 @@
}
dev_notice(&udev->pdev->dev, "PCI INTX mask not supported\n");
/* fall back to no IRQ */
+ /* fallthrough */
case RTE_INTR_MODE_NONE:
udev->mode = RTE_INTR_MODE_NONE;
udev->info.irq = UIO_IRQ_NONE;
Only in dpdk-18.11/kernel/linux/igb_uio: igb_uio.c~