]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Mark expected switch fall-through
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Fri, 2 Aug 2019 01:22:48 +0000 (20:22 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 8 Aug 2019 20:13:34 +0000 (15:13 -0500)
commit23426a434a88f538ed8168607f9a330130375fd3
tree2196f3d0b6dceec1e1bb09d2454f01be43bbc92c
parent804f5a70d916b441b4ca97c1348f0b476803ba88
PCI: Mark expected switch fall-through

Mark switch cases where we are expecting to fall through.

This fixes the following warning (Building: allmodconfig i386):

  drivers/pci/hotplug/ibmphp_res.c: In function ‘update_bridge_ranges’:
  drivers/pci/hotplug/ibmphp_res.c:1943:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
 function = 0x8;
 ~~~~~~~~~^~~~~
  drivers/pci/hotplug/ibmphp_res.c:1944:6: note: here
case PCI_HEADER_TYPE_MULTIBRIDGE:
^~~~

Link: https://lore.kernel.org/r/20190802012248.GA22622@embeddedor
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
drivers/pci/hotplug/ibmphp_res.c