Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2650420imj; Mon, 11 Feb 2019 06:28:44 -0800 (PST) X-Google-Smtp-Source: AHgI3IYoBA7dgrZijyW23976gzUrdRjIzIP0hJD44FJGNv+McNzldtpS4Uwhdw4y8+fPMG06i2G1 X-Received: by 2002:a63:2117:: with SMTP id h23mr656782pgh.375.1549895324564; Mon, 11 Feb 2019 06:28:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549895324; cv=none; d=google.com; s=arc-20160816; b=JIFT24ElsWe5rz/y1n9NEH4K1ASTKEmNnyDnVvGvVSY+yym9mdymowIsEoO4i5pyoG mT9pG8aB9JgK29oVk5+cXvT7Z0dOYulnPN/RCboZqaov+hBDlqDk8SnZgFFtYOCAdz0r kIGCr+6I4ryrSIgWwlH2FtRbMNxgMJLzPCWlx1u0Jtgs+0v++FgeR8+xvDuxyZYrD3rv rDLw2K5Z2LKRgsHFEmqmDjSMFt4n7QN9oAJmp59wVJQRowcAcnQEUYl9KHoVTBNhe37P JD+CCf5W8pfeoXmhxEF8To1cEebfm4O+YfyM+dt4qn9gcF/3vHKXk4tcToJQhYRQCDE9 Xlog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8c0L6ojTlb30c9xj6dYGjVaUch2OUzBzHCr5zvBj3OU=; b=c9e3CGQo6964D9DoU7Z0Kg0qAmv3djRC2RRatN3kUvVR67mpS+CMcF0QF3AaCiQOZK df5WHWmkWB88R/HBaYtSk4yawDAAz/8n3eL6+x6v9yg9MGUNZOZtJMQXkQ4pbOwXi3bS wzXHleV0Ll5s5/yAJDieXGxgGzXtFOi7bG5+zL3DEZIEmL71FLu2ziTUvUyw1vYP6eHU Iin6xqQnpIJ2ZgGb6mSO34x34kz59XEInQGgcWdyUjj9msJ0nIve6d9oOhyjvQ270u2N iH6CbAsd54VbyS+3aI2ChmZzw1GkRkIv5onQH6Uq3T8Vbrx3vU1y0CaHMkvoksPFOQ/H 5MdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=D39yteMc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f35si9326551plh.399.2019.02.11.06.28.28; Mon, 11 Feb 2019 06:28:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=D39yteMc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729587AbfBKO0k (ORCPT + 99 others); Mon, 11 Feb 2019 09:26:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:60476 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728219AbfBKO0h (ORCPT ); Mon, 11 Feb 2019 09:26:37 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B804720844; Mon, 11 Feb 2019 14:26:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549895196; bh=eC0Um43x+3htIXD9TVVZWIIoO/Nz5K+hgMH/jZEIjXA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D39yteMcGdm4Kd0X5ZSh1ILi1QOAjV+gipGKG20viSX7So0a5TRCtRGOLkurmbP9g JryCB+vzVHZ2dVjU7P3z4W3XHIDjBVP2m6KH+6kK6+z7qC8KDACT1GirO7AqsFl5QD XH6mRZazG0Ay/CQx38OLWx5Mk5Pc+i5yIWFivhHg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Felipe Balbi , Andy Shevchenko , Sasha Levin Subject: [PATCH 4.20 126/352] usb: dwc3: trace: add missing break statement to make compiler happy Date: Mon, 11 Feb 2019 15:15:53 +0100 Message-Id: <20190211141854.361927217@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141846.543045703@linuxfoundation.org> References: <20190211141846.543045703@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 54d48183d21e03f780053d7129312049cb5dd591 ] The missed break statement in the outer switch makes the code fall through always and thus always same value will be printed. Besides that, compiler warns about missed fall through marker: drivers/usb/dwc3/./trace.h: In function ‘trace_raw_output_dwc3_log_trb’: drivers/usb/dwc3/./trace.h:246:4: warning: this statement may fall through [-Wimplicit-fallthrough=] switch (pcm) { ^~~~~~ Add the missing break statement to work correctly without compilation warnings. Fixes: fa8d965d736b ("usb: dwc3: trace: pretty print high-bandwidth transfers too") Cc: Felipe Balbi Signed-off-by: Andy Shevchenko Signed-off-by: Felipe Balbi Signed-off-by: Sasha Levin --- drivers/usb/dwc3/trace.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/dwc3/trace.h b/drivers/usb/dwc3/trace.h index f22714cce070..f27c5cbe285c 100644 --- a/drivers/usb/dwc3/trace.h +++ b/drivers/usb/dwc3/trace.h @@ -251,9 +251,11 @@ DECLARE_EVENT_CLASS(dwc3_log_trb, s = "2x "; break; case 3: + default: s = "3x "; break; } + break; default: s = ""; } s; }), -- 2.19.1