Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3628494imu; Mon, 28 Jan 2019 08:05:59 -0800 (PST) X-Google-Smtp-Source: ALg8bN5iV6Ymc0icsVJ7sZAMqe/+kkU5GhUh/pgwYDqYOWlrhzRG/KlGAlGnrJXpV7sks7SjE2Fo X-Received: by 2002:a65:4ccb:: with SMTP id n11mr20648367pgt.257.1548691559779; Mon, 28 Jan 2019 08:05:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548691559; cv=none; d=google.com; s=arc-20160816; b=D7jXSNIBoZzKh4/FldttHsD660DGwViOkw3DOx/DI9qMXrVH9+ZFC8oxbx6Ew78WDD q2bUUoDNWArOYzOokv44jUhwjEt702FSVhHzDchM53n/hOKyXvAU1Rk5zIWxfKZK1ReQ 3J2io+SvsU4c6l2RKhHK3qA5Tq1oFZx/j4nxGd/hU2QFQgD3y5pW3oRZ5kYFphFOfkgf 8ns7NSNuI86V03lpMrGMEAS/ZDtzHyY0Kqf90v0oRBqCEpv++bnHGtcueEnrrEmnnbo5 zH6liMqgLgJcsU45fEsMd89aXbxBlM7Kdib34wIv44VO45ocsz2+vYS5Kwqwo4djpovN g09w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=49xNfT3U7d0UBCa1A9HBNjE0j0dhp4/1KZ0nv4OdgVA=; b=mn992MLi7cCE0HnWeFHFgJHn92B2o4PV7/dN/xG1xDWoB6zyWBnoA40eXuw+sTrVHy gUdT5cK0ac77btRndurcytFY5hMo85s5EbABpycFMyB8bMJ6VpjsbDMB/EKru6OwNEJn Dm1wvgZVRfFQuF1eHZ7bnWS2/RoZwkvGYHWLe7O9BDhxIV2IpmNxMyfg/jSExqx8PX+A yfHr7e0b0zl+tJ9vJMsPpnTSwlhxXo+fdsJmbFSOBJEf41ROSNw0fspRR29Jhcx5qC1w skSGnlt9j4ev/CI019a9qjEcU83klFCeb3gxWCAnBnEnEv/HX0Zax/Jx+11gNYeH9IKD oV5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MiSVaW08; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 20si18472114pft.177.2019.01.28.08.05.44; Mon, 28 Jan 2019 08:05:59 -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=MiSVaW08; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731299AbfA1QE4 (ORCPT + 99 others); Mon, 28 Jan 2019 11:04:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:50872 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730579AbfA1QEx (ORCPT ); Mon, 28 Jan 2019 11:04:53 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C5AD32171F; Mon, 28 Jan 2019 16:04:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548691493; bh=qVUGKLn1oZlGkSYc7fAkk1MSkxd/5KT9j5a6K6ebgIo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MiSVaW08uXhJ1XSYAuhbj2Ey7dzLEAL1tUdXA/7mr2hakAiPxLf4tQHkrpksqPLke hUXJXkd60L602KeDkgDTo8xz8Q6/ktAexsYXHlK/eQktgtsYEjxLksZFFHzvR0/J9i 33EJBnqIqXFjZkJ0JdeiqPEfrHE2CQYa0HOi3y6c= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Andy Shevchenko , Felipe Balbi , Sasha Levin , linux-usb@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 114/258] usb: dwc3: trace: add missing break statement to make compiler happy Date: Mon, 28 Jan 2019 10:57:00 -0500 Message-Id: <20190128155924.51521-114-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190128155924.51521-1-sashal@kernel.org> References: <20190128155924.51521-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andy Shevchenko [ 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