Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4230036imj; Tue, 12 Feb 2019 12:05:23 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib12VSMHmq9A3Z+mu2toQSc22sPrBEwPJVUklg3X6oz69aocmgtiWPY6LsBT17NorT3M/8v X-Received: by 2002:a63:460a:: with SMTP id t10mr5262302pga.284.1550001923663; Tue, 12 Feb 2019 12:05:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550001923; cv=none; d=google.com; s=arc-20160816; b=kEJN8lngM4G9nB5RMurBnyAa6rT8vLQz6cZew1uBPg8BfmzV0MdhANBSBHXzMaSYIZ XKSlZPceWJQWJPZD1lBrtLD7ceSUDJ1TesL1MRWXfMDkW+1KZkby/mojsy9TDe5eCBf4 h7lF+CSw5uRJPgBimMOYC7Amh3oqmFIFHRDC9DhsD+VhmWvCljScNy1GPJOqDkRUAcjB yIH3H3KTeaXQUutDCvhYDG37OQjYj03aKLtIpk1zMJ87vQ5fuQLhujfu5e4OwXwlhyX7 +cgh55QF3ueqDUOZwEAONqzeNWgq22wwz/gKC78HNwPEPpHVykxlQSY9/ZJC4wAYC5cH DueQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date; bh=CbBMYdqAMZI4h+O6C/IcIhQnC8cFdHQO4hmfdDN4F4I=; b=regyyYZzmv3SUJ+i/rXR4VrUidjpZ+p6RgTjE/REJbvg68Rt5JDR/MXElWkL41D1Id wLIYXwmX5khaIOkt+uZh88xe+0r3xbmGa0uzt+djxPKYNR47J/CWWBdgl1oZ6wfisOzF uoDGu8WlEZOKlT2L0xp2bT9gWc6R0RNldNhoW0ga0/Ow5K8mcFyYgomcjWM1X385IwKb LRRSvOKQ6dTIRwd0NuOPACwT/NOg5KK4kluQb8H51k9kEoyhTeGHTmFDYgGxFLtTCYFM GvUwAW4CGQGxO7Cxz93RBCfo4qArnYqtHyPoBX0y/jgMQdfiOrfnN1SozjD95cFMjGbg AsaQ== ARC-Authentication-Results: i=1; mx.google.com; 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 u6si13290833pfb.92.2019.02.12.12.05.07; Tue, 12 Feb 2019 12:05:23 -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; 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 S1730460AbfBLT0X (ORCPT + 99 others); Tue, 12 Feb 2019 14:26:23 -0500 Received: from gateway21.websitewelcome.com ([192.185.45.175]:25459 "EHLO gateway21.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729500AbfBLT0X (ORCPT ); Tue, 12 Feb 2019 14:26:23 -0500 Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway21.websitewelcome.com (Postfix) with ESMTP id D80E8400D7417 for ; Tue, 12 Feb 2019 13:26:22 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id tdhGg1yWW4FKptdhGgMgyb; Tue, 12 Feb 2019 13:26:22 -0600 X-Authority-Reason: nr=8 Received: from [189.250.119.20] (port=51644 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1gtdew-002dlX-0l; Tue, 12 Feb 2019 13:26:22 -0600 Date: Tue, 12 Feb 2019 13:23:57 -0600 From: "Gustavo A. R. Silva" To: Bin Liu , Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" , Kees Cook Subject: [PATCH] USB: musb: mark expected switch fall-through Message-ID: <20190212192357.GA15275@embeddedor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.9.4 (2018-02-28) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 189.250.119.20 X-Source-L: No X-Exim-ID: 1gtdew-002dlX-0l X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.119.20]:51644 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 8 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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