Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp105197imj; Wed, 13 Feb 2019 05:29:30 -0800 (PST) X-Google-Smtp-Source: AHgI3IZdKtD3YsFB4pfhIlcD3ohg4vyui+6VF9ZE53XJXniY2MLOwHZjzv2QDe3o2DQZT1ZC1/JG X-Received: by 2002:a65:6497:: with SMTP id e23mr476355pgv.89.1550064570055; Wed, 13 Feb 2019 05:29:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550064570; cv=none; d=google.com; s=arc-20160816; b=xtKExzJkpQXZjP3FC15ABUIJAtc7JFEZRy/P8XqcoSAQqr2LspRKOv661CkSnR0uVg XVzoo53HhFiXFdfRF0jPRH1v3ZfQvHnvav6hkWV1fR4QD09qUvcfYJwyn8D1yH7xymHk +kE9XJFMl+N2uQvVprmun5rDbymYMC9BEwNuUu8Kwx3CYBsww6+tjonwrHuL7cViIV04 9W7w2Efq0CsaAGFLnEi2ltNYb+eH3mkffuPybQk/99diwn/xMqL6czJDBtBjMEM/jMU5 eFLKz2P+eDZUJh9I4yCpgMxL6FfZWJub4KjCPQQSsd2lehzb+9UIibV6APm5mERL/xx/ ekkg== 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:message-id:subject:to:from:date:dkim-signature; bh=AtKitwCBD+5KiwtgGzKV8/K95HTRb3oj4tg3PCw8u7E=; b=jCx4jvCsY9WeZNZ+ng4goaA+/xKi8P7Ed+iCnwNwwAZscDaexVpV83BuNvwvv2PbP0 +tnamKfjzbaVlUvuTuSI9/M7+08fGbkgQOngVnvLQsd78Wpo00JSTVWEQxEEiWbfNA7h W11GnbzxhXyY51rKLHpKJCTBlboilWqhf4aibLxcpXFIsLuAsbK1nTiMKjh4TeqzEyPO 4VlBxWcrTrnyQZNq+kXKLTuq8qEserc8RlcxmPyNYEr9jdyyCtaGRYGxk2WD0IBZ4jv1 7pjNElsTA22Fin8lxYClQvG34sKnnEsLABWaR7iO/PWz+GzdNM3ArA/VkSU9wEwiva8O Z0kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BATWDy70; 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 b10si14507075pgw.388.2019.02.13.05.29.07; Wed, 13 Feb 2019 05:29:30 -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=BATWDy70; 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 S2391263AbfBMJIH (ORCPT + 99 others); Wed, 13 Feb 2019 04:08:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:52600 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727384AbfBMJIG (ORCPT ); Wed, 13 Feb 2019 04:08:06 -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 CD339222BB; Wed, 13 Feb 2019 09:08:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550048886; bh=JsaF4YeH/sz6+7v6O4ySyW7HgACXtdz+dE+eQx38WS8=; h=Date:From:To:Subject:References:In-Reply-To:From; b=BATWDy70BsCq3LHnzpawB9RYMUV+Flboo9MbtvD4fdszeZHFjxjjRILoUF2deu46w 5daD9sbmFLu41umV1NU54Q1p2VZzeReDzKXl3mNzRHbb6f6MzT+hCi8P880OTqzmWF Z9QvU38J3V/fJKcoRemJtCNY/p8kbIcC9QsYcCIk= Date: Wed, 13 Feb 2019 10:08:04 +0100 From: Greg Kroah-Hartman To: Bin Liu , "Gustavo A. R. Silva" , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Kees Cook Subject: Re: [PATCH] USB: musb: mark expected switch fall-through Message-ID: <20190213090804.GB1347@kroah.com> References: <20190212192357.GA15275@embeddedor> <20190212194754.GA28664@uda0271908> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190212194754.GA28664@uda0271908> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 12, 2019 at 01:47:54PM -0600, Bin Liu wrote: > 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 I'll take it directly, thanks. greg k-h