Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4233252imj; Tue, 12 Feb 2019 12:08:32 -0800 (PST) X-Google-Smtp-Source: AHgI3IZdRALBHdTz1wfCtJfWwk9U0DXBJ1nRKwSLujAG4VW5sHCoZoBARZHAtFa1tXoVP3h4ZWW5 X-Received: by 2002:a17:902:8304:: with SMTP id bd4mr5473516plb.329.1550002112403; Tue, 12 Feb 2019 12:08:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550002112; cv=none; d=google.com; s=arc-20160816; b=eijjnyIMcPp2yDhfCQa/S4Kxc/4q/eTIja9kLSW7M8fnrMsqCQEQs5U/8ooR/LbIfX mHjQ35EglSfAZMXnbrCfPF1qFjCKEH5ViF205Ho4CXUb3n2vYu/+wYebzp3JRWlcCqO5 6uLtz5RdC3/vQ7yghjuKZlrcZLZgVvw/TvOUMSVjtXYUQVNvzqdW2vooDatGvIMi1X4H GADD6VmKJZIYGSWnbqHsjc0p9hpTKXYrD0jDSP4EMgowdDib4xZW0XUdajCpXCpS7GaC cORnT8qqudRDu/QQjbV3CMj9xFqruwuKeL6XaZKrKRe3u2hSv25ccC0Ns2uBE+C9aHV8 U+7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=lGT3oTNW3AknUQjTZqvPbt5L+TaKUoEKiRJzndyCRpQ=; b=liMYjs5B1MOfz6urU+o0WGSeGn9WdhTFI9ieVjJSd5oBvdewQ5sZz9cr+7YA34+Yt6 XueAWZ/28o3cwIWySCVoB8ndXqlufB5pNck0D5IwuIl4JkZ/Loab3rfjfiDIt/G1gVM6 zMD+yjmAG7hFdwcjHIBE7cnrtkM3P4qvFpZRlwew91vpS5R06neeCJYJwNBQdAdMDOuh 4SaB2tnlJSO40COtIR86i0vLWcniNQunxR/P5j6n/NgJDNQnSgukjwO8eKAMGOGL4xtW 7abXQphRZrZib2Ler/e2y7YmOYPm/uW/OqPLvBeHvYF47VgOTlDpZrL5VJaZE65EIiGP dS6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=aF6g2rI3; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c24si546491pgj.60.2019.02.12.12.08.16; Tue, 12 Feb 2019 12:08:32 -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=@ti.com header.s=ti-com-17Q1 header.b=aF6g2rI3; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732063AbfBLTsH (ORCPT + 99 others); Tue, 12 Feb 2019 14:48:07 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:42010 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727303AbfBLTsH (ORCPT ); Tue, 12 Feb 2019 14:48:07 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x1CJlsKN109549; Tue, 12 Feb 2019 13:47:55 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1550000875; bh=lGT3oTNW3AknUQjTZqvPbt5L+TaKUoEKiRJzndyCRpQ=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=aF6g2rI3gKjWVs4If+fM7wStQ5rz6FNZQ3YwYZR3BTVHlaRdMMeVQorfS2pZdKt5E QO7WaCgQAMKfds19matrhFpTzFDXfUeLTBMQ1WUIkRhGVkM8qp5PRcsGsTUrglcQbk qe92eJQaTS1SQaZF2O0sDVXAbHQ21JvadzDoa0Lw= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x1CJlsLr102609 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 12 Feb 2019 13:47:54 -0600 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Tue, 12 Feb 2019 13:47:54 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Tue, 12 Feb 2019 13:47:54 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id x1CJls2X006249; Tue, 12 Feb 2019 13:47:54 -0600 Date: Tue, 12 Feb 2019 13:47:54 -0600 From: Bin Liu To: "Gustavo A. R. Silva" CC: Greg Kroah-Hartman , , , Kees Cook Subject: Re: [PATCH] USB: musb: mark expected switch fall-through Message-ID: <20190212194754.GA28664@uda0271908> Mail-Followup-To: Bin Liu , "Gustavo A. R. Silva" , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Kees Cook References: <20190212192357.GA15275@embeddedor> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190212192357.GA15275@embeddedor> User-Agent: Mutt/1.5.21 (2010-09-15) X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, On Tue, Feb 12, 2019 at 01:23:57PM -0600, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch > cases where we are expecting to fall through. > > This patch fixes the following warning: > > drivers/usb/musb/musb_host.c: In function ‘musb_advance_schedule’: > drivers/usb/musb/musb_host.c:374:7: warning: this statement may fall through [-Wimplicit-fallthrough=] > if (qh->mux == 1) { > ^ > drivers/usb/musb/musb_host.c:383:3: note: here > case USB_ENDPOINT_XFER_ISOC: > ^~~~ > > Warning level 3 was used: -Wimplicit-fallthrough=3 > > Notice that, in this particular case, the code comment is modified > in accordance with what GCC is expecting to find. > > This patch is part of the ongoing efforts to enable > -Wimplicit-fallthrough. > > Signed-off-by: Gustavo A. R. Silva I've closed my musb tree for v5.1-rc1, if you want to directly pick this patch, here is my Acked-by, or I will take it for v5.2-rc1. Acked-by: Bin Liu > --- > drivers/usb/musb/musb_host.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c > index b59ce9ad14ce..0566d5b6252e 100644 > --- a/drivers/usb/musb/musb_host.c > +++ b/drivers/usb/musb/musb_host.c > @@ -378,7 +378,7 @@ static void musb_advance_schedule(struct musb *musb, struct urb *urb, > qh = first_qh(head); > break; > } > - /* else: fall through */ > + /* fall through */ > > case USB_ENDPOINT_XFER_ISOC: > case USB_ENDPOINT_XFER_INT: > -- > 2.20.1 Regards, -Bin.