Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1216664pxu; Mon, 23 Nov 2020 14:59:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYT8QsTm7QVcJYJkcQfG3Dkh9+u0JlwljZ1RTaqzCBp/lVwwBkS7H05b2ydkggSL9eu6l9 X-Received: by 2002:a17:906:fc4:: with SMTP id c4mr1753401ejk.490.1606172359897; Mon, 23 Nov 2020 14:59:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606172359; cv=none; d=google.com; s=arc-20160816; b=nDjG18T1xJq3lQfCv3GBKKNoS3mPBPpa2lTSeeuPC5MVlk4C6fSQUjSsHsnhV4DJHX LCwhDQ8Vbs2H36TgNZH6lAk7LE7l55Obv8I19LIoPBcAxiUFuao/wig9ZpXIH5adaAA8 Ylg9iT/66xxyeP99WZIGmIeA38dUJrz2tQFaRj8RPTablA4XUipm0Q8gr4Ld12y+Lo+C tbFjRMGo6fh44WlMpRAwX8xAW2gIMeKjFZyCxo/UadYUywnz3YOKFxQBM3EPPWOtvhd2 I/kYCGWceKpJ+rv/JcW1KiKAbsNw0TyDdRSZchL0LszF76QXuJUCp3S3Uw59oR9kzbZj 618g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=u9Kd/sXPio+koHHZeGZekhPVu5Sp+MfxRk8Tlwa+3I8=; b=X6ocyEp9yCeET/S/G//FqOzvnvGYxkEzpLUiD0gPAxMMx66Nhwux2ONpI6XstC+mIm tTJa9Gher4rdvBCPs4SQoSrNi6aABtgOOnSfCMsUH0GF0ghKye1bHSfgO00RDl9+O3R/ rGamga+jNwgCdBIja3wluYq2x0/n/TMMPVQZqCfbUF860irMxV2hmgd95JTV6NNF4Whr RYS8SifRiMaWFNaeyZFE+SHCA5GlwuMWnVZFsGR4M30gW/7jl+uvhGiRU3MEOjDtANUh JEMy84zDc7AbKgAWSl4fFUB1Hzc8FuS8pmYfbTCB+SCzkGytjGqGtaSN83BuGcjNMI3G EuLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Hd8DEuKD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id l12si7465551edq.55.2020.11.23.14.58.57; Mon, 23 Nov 2020 14:59:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Hd8DEuKD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2387888AbgKWWxt (ORCPT + 99 others); Mon, 23 Nov 2020 17:53:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:51798 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387487AbgKWWxq (ORCPT ); Mon, 23 Nov 2020 17:53:46 -0500 Received: from embeddedor (187-162-31-110.static.axtel.net [187.162.31.110]) (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 E0DFC206D8; Mon, 23 Nov 2020 22:53:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606172025; bh=Y754Uxsb+oRdteJzxeLGJZ0Nr6qJ2w8yPhIjK1E9ygw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Hd8DEuKDlU/OBnXmphx1Bjt66POq5VZAkAJuwm05bXMWgCP0KNMsZhuX1pGccgVAQ CuJqNVszqNMvfApMAr7ZRwkEnkR59sOEF5TtNw+vX34N/EMP+A/lHmONMXhkr1ttvy rNUTWmbmeyjT6VfheHX8QTYB5CtlRKh4XbeKEb9c= Date: Mon, 23 Nov 2020 16:53:59 -0600 From: "Gustavo A. R. Silva" To: boris.ostrovsky@oracle.com Cc: Konrad Rzeszutek Wilk , Roger Pau =?iso-8859-1?Q?Monn=E9?= , Juergen Gross , Stefano Stabellini , Jens Axboe , xen-devel@lists.xenproject.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH 058/141] xen-blkfront: Fix fall-through warnings for Clang Message-ID: <20201123225359.GP21644@embeddedor> References: <33057688012c34dd60315ad765ff63f070e98c0c.1605896059.git.gustavoars@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 20, 2020 at 04:36:26PM -0500, boris.ostrovsky@oracle.com wrote: > > On 11/20/20 1:32 PM, Gustavo A. R. Silva wrote: > > In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning > > by explicitly adding a break statement instead of letting the code fall > > through to the next case. > > > > Link: https://github.com/KSPP/linux/issues/115 > > Signed-off-by: Gustavo A. R. Silva > > --- > > drivers/block/xen-blkfront.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c > > index 48629d3433b4..34b028be78ab 100644 > > --- a/drivers/block/xen-blkfront.c > > +++ b/drivers/block/xen-blkfront.c > > @@ -2462,6 +2462,7 @@ static void blkback_changed(struct xenbus_device *dev, > > break; > > if (talk_to_blkback(dev, info)) > > break; > > + break; > > case XenbusStateInitialising: > > case XenbusStateInitialised: > > case XenbusStateReconfiguring: > > > Reviewed-by Boris Ostrovsky > > > (for patch 138 as well) Thank you for both reviews, Boris. > Although I thought using 'fallthrough' attribute was the more common approach. I've got it. I will consider that for a future patch. Thanks -- Gustavo