Commit 1d09d577 authored by Mathieu Malaterre's avatar Mathieu Malaterre Committed by Bjorn Helgaas

PCI: Mark expected switch fall-through

There is a plan to build the kernel with -Wimplicit-fallthrough and
these places in the code produced warnings (W=1).  Fix them up.
Signed-off-by: default avatarMathieu Malaterre <malat@debian.org>
[bhelgaas: squash into one patch, drop extra changelog detail]
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent bfeffd15
...@@ -861,7 +861,7 @@ static int pci_raw_set_power_state(struct pci_dev *dev, pci_power_t state) ...@@ -861,7 +861,7 @@ static int pci_raw_set_power_state(struct pci_dev *dev, pci_power_t state)
if ((pmcsr & PCI_PM_CTRL_STATE_MASK) == PCI_D3hot if ((pmcsr & PCI_PM_CTRL_STATE_MASK) == PCI_D3hot
&& !(pmcsr & PCI_PM_CTRL_NO_SOFT_RESET)) && !(pmcsr & PCI_PM_CTRL_NO_SOFT_RESET))
need_restore = true; need_restore = true;
/* Fall-through: force to D0 */ /* Fall-through - force to D0 */
default: default:
pmcsr = 0; pmcsr = 0;
break; break;
...@@ -2260,7 +2260,7 @@ static pci_power_t pci_target_state(struct pci_dev *dev, bool wakeup) ...@@ -2260,7 +2260,7 @@ static pci_power_t pci_target_state(struct pci_dev *dev, bool wakeup)
case PCI_D2: case PCI_D2:
if (pci_no_d1d2(dev)) if (pci_no_d1d2(dev))
break; break;
/* else: fall through */ /* else, fall through */
default: default:
target_state = state; target_state = state;
} }
......
...@@ -2138,7 +2138,7 @@ static void quirk_netmos(struct pci_dev *dev) ...@@ -2138,7 +2138,7 @@ static void quirk_netmos(struct pci_dev *dev)
if (dev->subsystem_vendor == PCI_VENDOR_ID_IBM && if (dev->subsystem_vendor == PCI_VENDOR_ID_IBM &&
dev->subsystem_device == 0x0299) dev->subsystem_device == 0x0299)
return; return;
/* else: fall through */ /* else, fall through */
case PCI_DEVICE_ID_NETMOS_9735: case PCI_DEVICE_ID_NETMOS_9735:
case PCI_DEVICE_ID_NETMOS_9745: case PCI_DEVICE_ID_NETMOS_9745:
case PCI_DEVICE_ID_NETMOS_9845: case PCI_DEVICE_ID_NETMOS_9845:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment