Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2721826imj; Mon, 11 Feb 2019 07:30:36 -0800 (PST) X-Google-Smtp-Source: AHgI3IYfX8VMi7t44jpLW/RA+Iijm44bqMYMMqK1sp3CQA0JSNtqlfB05RoGg5y+H6PszPj8eKpQ X-Received: by 2002:a63:d54a:: with SMTP id v10mr34122734pgi.154.1549899036732; Mon, 11 Feb 2019 07:30:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549899036; cv=none; d=google.com; s=arc-20160816; b=HTi24SJMCyI+K50Mtu07B62QjrDT7sB/Dk4CnMcYWy7zH8XhplRYXkwGp3enan2LgF o9jdHuo0m6M0x+yv35NEMqHAna3gzqFoctANPAkBvaEtI/W8XEOMvZSB6aaUFRDAk8l5 kncGyaR26Bd8vOxuntgTPvitA0dXiXkf/lMsahXyB3ZUhf4qs7vhD9o5XoAd/XlhDj9r hq5wPbreCr6NB65tvk6tnVKQdUOhQnH56Uab9V801IrqoaYcSwdlXdHtG8mqC9WRArv3 us/1NvkKpNdemD88AEuWrS7llYxzCE+3PtNcHoak5m0uLCVoF8ZV7bU5/z84cgreRf1G THeA== 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=F0REUuFoEi/TFlOxsbI+kFw12hcmLjQjye4GRJ8PXR4=; b=ihDJXzubHDWTf7AAEk+Oe0Cy00AJsLIb6EbNnEo5cFxkRe2husqVp9I/gdEcVvfKuS vf18E/C+GUKHb06BJDeXW/oGmXxZOK+yCfQzcfHoJRsXlz5skY/dUPkWmisue7ipvohe mMDwARZwuJ4LvjGPWZEGcsfVSTL4kbuFXgB2CUXTuQ6NgD4tsvjK5KFFvQaKWuLbtOc7 DxB6M0+7e8FAMvfeCj4gJs2GNB3B5LKCLZPtwT3VyBVW3GrWog7k/5QFoUirRxlvb3uj g9L8y2r5TqUGJfdWJx2sp6714wai7SroxMqE/eRwCvsvPVQLwhRpcjb50YkxpGmmTRgZ rjAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kz33wj+R; 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 m129si2312194pfb.288.2019.02.11.07.30.19; Mon, 11 Feb 2019 07:30:36 -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=kz33wj+R; 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 S2389341AbfBKO5W (ORCPT + 99 others); Mon, 11 Feb 2019 09:57:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:44710 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389334AbfBKO5T (ORCPT ); Mon, 11 Feb 2019 09:57:19 -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 13A80222A8; Mon, 11 Feb 2019 14:57:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549897038; bh=2HTqHx6/4/EwNmBOhntyGBsMWFvHGVKkVSQxnHS4iJ0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kz33wj+R/w9suPMINKEWSEUG2P3YuD0UUz/BL5e2JgUty64JiyBs18ebgjMbBf5P1 xinmTlgg+shLJKeSEjUMI6xNYx5m6Vp9VNhHZ3TCzAaw+LsoAVbeJziTCRNQAXMt2s sqUVnIGUP0Ip/2TUMGfnS/qG/P5FsvPZmPoot0TQ= 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.14 070/205] usb: dwc3: trace: add missing break statement to make compiler happy Date: Mon, 11 Feb 2019 15:17:48 +0100 Message-Id: <20190211141833.320506250@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141827.214852402@linuxfoundation.org> References: <20190211141827.214852402@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.14-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 6504b116da04..62ec20a26013 100644 --- a/drivers/usb/dwc3/trace.h +++ b/drivers/usb/dwc3/trace.h @@ -262,9 +262,11 @@ DECLARE_EVENT_CLASS(dwc3_log_trb, s = "2x "; break; case 3: + default: s = "3x "; break; } + break; default: s = ""; } s; }), -- 2.19.1