summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2021-07-13 13:21:22 -0500
committerGustavo A. R. Silva <gustavoars@kernel.org>2021-07-13 13:59:12 -0500
commit54325d0849d60ed52ee9316f76d116b52b53669b (patch)
tree0d3aa78960abc34eecf3b0650268684a86edc85a /drivers/pci
parent223fa873facce6eef165009294d01e18c191c609 (diff)
downloadlinux-stable-54325d0849d60ed52ee9316f76d116b52b53669b.tar.gz
linux-stable-54325d0849d60ed52ee9316f76d116b52b53669b.tar.bz2
linux-stable-54325d0849d60ed52ee9316f76d116b52b53669b.zip
PCI: Fix fall-through warning for Clang
Fix the following fallthrough warning (arm64-randconfig with Clang): drivers/pci/proc.c:234:3: warning: fallthrough annotation in unreachable code [-Wimplicit-fallthrough] Reported-by: kernel test robot <lkp@intel.com> Link: https://lore.kernel.org/lkml/60edca25.k00ut905IFBjPyt5%25lkp@intel.com/ Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/proc.c b/drivers/pci/proc.c
index 9bab07302bbf..d32fbfc93ea9 100644
--- a/drivers/pci/proc.c
+++ b/drivers/pci/proc.c
@@ -230,8 +230,8 @@ static long proc_bus_pci_ioctl(struct file *file, unsigned int cmd,
break;
}
/* If arch decided it can't, fall through... */
-#endif /* HAVE_PCI_MMAP */
fallthrough;
+#endif /* HAVE_PCI_MMAP */
default:
ret = -EINVAL;
break;