summaryrefslogtreecommitdiffstats
path: root/arch/mips/cavium-octeon
diff options
context:
space:
mode:
authorPaul Burton <paul.burton@mips.com>2019-07-17 22:12:23 +0200
committerPaul Burton <paul.burton@mips.com>2019-07-18 23:41:49 +0200
commit2a15d6481741a418837a22df3a440d5bd8b9c412 (patch)
treec86c575891f32e5a521e8ec7cfc1bcb28cecf585 /arch/mips/cavium-octeon
parentMIPS: Annotate fall-through in kvm/emulate.c (diff)
downloadlinux-2a15d6481741a418837a22df3a440d5bd8b9c412.tar.xz
linux-2a15d6481741a418837a22df3a440d5bd8b9c412.zip
MIPS: Annotate fall-through in Cavium Octeon code
There's an intentional switch case fall-through in Cavium Octeon USB code, which triggers compile errors with -Wimplicit-fallthrough due to -Werror being enabled for arch/mips. This can be encountered when building cavium_octeon_defconfig. Fix the build issue by annotating the intentional fall-through. Signed-off-by: Paul Burton <paul.burton@mips.com> Cc: linux-mips@vger.kernel.org
Diffstat (limited to 'arch/mips/cavium-octeon')
-rw-r--r--arch/mips/cavium-octeon/octeon-usb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/cavium-octeon/octeon-usb.c b/arch/mips/cavium-octeon/octeon-usb.c
index 1f730ded5224..cc88a08bc1f7 100644
--- a/arch/mips/cavium-octeon/octeon-usb.c
+++ b/arch/mips/cavium-octeon/octeon-usb.c
@@ -398,6 +398,7 @@ static int dwc3_octeon_clocks_start(struct device *dev, u64 base)
default:
dev_err(dev, "Invalid ref_clk %u, using 100000000 instead\n",
clock_rate);
+ /* fall through */
case 100000000:
mpll_mul = 0x19;
if (ref_clk_sel < 2)