summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/spcr.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva2018-02-09 19:08:21 +0100
committerRafael J. Wysocki2018-02-12 10:31:26 +0100
commit5a9e59e8d9dd9586d78c244b9d96fb18156daad3 (patch)
tree23c19cd9119df157039713c74390d74347cb5c99 /drivers/acpi/spcr.c
parentLinux 4.16-rc1 (diff)
downloadkernel-qcow2-linux-5a9e59e8d9dd9586d78c244b9d96fb18156daad3.tar.gz
kernel-qcow2-linux-5a9e59e8d9dd9586d78c244b9d96fb18156daad3.tar.xz
kernel-qcow2-linux-5a9e59e8d9dd9586d78c244b9d96fb18156daad3.zip
ACPI: SPCR: Mark expected switch fall-through in acpi_parse_spcr
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 1465078 Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/spcr.c')
-rw-r--r--drivers/acpi/spcr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/acpi/spcr.c b/drivers/acpi/spcr.c
index 89e97d21a89c..9d52743080a4 100644
--- a/drivers/acpi/spcr.c
+++ b/drivers/acpi/spcr.c
@@ -115,6 +115,7 @@ int __init acpi_parse_spcr(bool enable_earlycon, bool enable_console)
table->serial_port.access_width))) {
default:
pr_err("Unexpected SPCR Access Width. Defaulting to byte size\n");
+ /* fall through */
case 8:
iotype = "mmio";
break;