Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp6596imd; Wed, 31 Oct 2018 13:41:08 -0700 (PDT) X-Google-Smtp-Source: AJdET5dJdmAhLjz/nSLL55zGZQw1mc9+FnbFMnb0OEA70N6hcQYxNoSCdaJ0HpfI+KQXb5sRTh/X X-Received: by 2002:a65:664e:: with SMTP id z14-v6mr4387301pgv.347.1541018468783; Wed, 31 Oct 2018 13:41:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541018468; cv=none; d=google.com; s=arc-20160816; b=A7WJG9iwl+2EmF7vhXeikL1JTOIhFlru2ezR51V7yIzxUFUN/1ckr2xGQ1tUeNeveG jcfRVjtY5DVMxAg9aRiq/BqJcPLd3P9/mcjrZsF41BPbfnavy6Ppa+SN+ZxoBx4G4dKr +T4xNpESTZ+wDEUPREe9wB0imPgxWFbQPce6SQpNkjH9PbwzvBNv0wvfUaQo2FtiRrcJ oKWQeEeRyiptWxhbPB8igvvS/XETtnHkQXd6d9pvOUh3k32AZ2x42hZ3v2sizODvzKnu VJStA+hu91Z7iXAaWDkvffIwoy7pML27qNnx3/x1nitVeT5b1ctmYF/K/wNSBTEtW4bw AznA== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Ag4afwnhR8XA7llS/tQw37jN52nk9/rKkgOf/Fc7jjY=; b=CpjWlNANEJxjt6CLAcF653poVDHPyMpPLvzITVPWPolhyghFPT7Qsr5Zlpyejjewzy 3aIcVK5TSui7805blGkliASSCJWAr2CvGjTayyPQLZhsSsh9TzuLXXwKcMfTrQAhlwqM zao04wBgtCRrzRX0/vfKMEsxJ9IPplfS/9bz0q9/ERrpdhUCP7yBaKHde+eqJWu4Z7V+ HdpohFtwuSEfcikrvVbksTTDuqHIoDYHhDeMHMczRyMfmnJEStBhBMkQgsMjNqskKGNq tDMbiiWzguBx4ktwrUI795OKqerg2HnuBVNMMvS7dOUHcZivPWXUxbAkmIqJvVtMdDNM Ez7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kudzu-us.20150623.gappssmtp.com header.s=20150623 header.b=lwwtlawa; 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 k71si15445153pgd.351.2018.10.31.13.40.53; Wed, 31 Oct 2018 13:41:08 -0700 (PDT) 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=@kudzu-us.20150623.gappssmtp.com header.s=20150623 header.b=lwwtlawa; 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 S1730035AbeKAFjf (ORCPT + 99 others); Thu, 1 Nov 2018 01:39:35 -0400 Received: from mail-yw1-f66.google.com ([209.85.161.66]:43053 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729361AbeKAFjf (ORCPT ); Thu, 1 Nov 2018 01:39:35 -0400 Received: by mail-yw1-f66.google.com with SMTP id j75-v6so7046364ywj.10 for ; Wed, 31 Oct 2018 13:39:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kudzu-us.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Ag4afwnhR8XA7llS/tQw37jN52nk9/rKkgOf/Fc7jjY=; b=lwwtlawamrBUOKa0k51eAUywWnV2ma/ETey5VpOyZdx65bhXGGvo2RuygS9N6zvOEC OhOrZibdOs+PSuxUyE4bIDIXWIGM9y5ogAYnc4lhnlk3mGhbF/+G++kt4tCffU9Nv8do 3KKLF0Mtr1rtu2siu66qxNdwRyoO1FEmbbHAZy7BRP83i1faXnfpOcHyIU+/cDbx+D1t jXJSEEG1VZxKICohFcUNBIDz+gDUqPcRRNz939s85mynBDrZ4kXu7r81ig4yX3GXhjgm bW03DSgKNRf3KVvh7UCu6ImEIc7TS0IWIvC3CduFQt9KFgUkWcM59tr01YhMp5UvUMXy WPqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Ag4afwnhR8XA7llS/tQw37jN52nk9/rKkgOf/Fc7jjY=; b=HWFIyqKw84jNH2zs3sbuLt0DeRmI562QxwHERAuHhasD9dnxMEour8D5E42rvGo+T9 PL12ujW6TzvfqOG/CYTLBXS+MXwKw6FBaZu9KBlMqaxCNYvX+S1mW1bp1s1aGuP3VJH9 FMJeTWZ+g8j2p6nJjxmS6DGMyVcTzulrfNAyXBL4qU4oMHcmMIa2Xo4Qb5TDn395hdcc kO7yaHfD2KdsUtkYUg/bxAyqZ2qPibw9g8ZgkhL8FcgRB1DWYM/rYDOVd9+HG5VMxFsz EKtY3Psy+IE+hOWiTJ+Frgp0//ApGLLEotnRwjcFgzEUpbPY36ztw13LptC/ufP+/5YR wS2Q== X-Gm-Message-State: AGRZ1gLffY3knny/Mv7B+v0H7DzeGs3XGe7amLTKjxu85NK5rnELZOor WoCdfYxqEfOtE0pNYZ+cNUwz1w== X-Received: by 2002:a81:ad58:: with SMTP id l24-v6mr4623632ywk.64.1541018394458; Wed, 31 Oct 2018 13:39:54 -0700 (PDT) Received: from kudzu.us (76-230-155-4.lightspeed.rlghnc.sbcglobal.net. [76.230.155.4]) by smtp.gmail.com with ESMTPSA id n62-v6sm6635749ywf.105.2018.10.31.13.39.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Oct 2018 13:39:53 -0700 (PDT) Date: Wed, 31 Oct 2018 16:39:52 -0400 From: Jon Mason To: Allen Hubbe Cc: gustavo@embeddedor.com, dave.jiang@intel.com, linux-ntb@googlegroups.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ntb: ntb_transport: Mark expected switch fall-throughs Message-ID: <20181031203951.GC22474@kudzu.us> References: <20181005071234.GA8803@embeddedor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 05, 2018 at 01:03:01PM -0400, Allen Hubbe wrote: > On Fri, Oct 5, 2018 at 3:12 AM Gustavo A. R. Silva > wrote: > > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > > where we are expecting to fall through. > > > > Addresses-Coverity-ID: 1373888 ("Missing break in switch") > > Addresses-Coverity-ID: 1373889 ("Missing break in switch") > > Signed-off-by: Gustavo A. R. Silva > > Acked-by: Allen Hubbe Applied Thanks, Jon > > > --- > > drivers/ntb/ntb_transport.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/drivers/ntb/ntb_transport.c b/drivers/ntb/ntb_transport.c > > index 9398959..c643b9c 100644 > > --- a/drivers/ntb/ntb_transport.c > > +++ b/drivers/ntb/ntb_transport.c > > @@ -1278,6 +1278,7 @@ static void ntb_rx_copy_callback(void *data, > > case DMA_TRANS_READ_FAILED: > > case DMA_TRANS_WRITE_FAILED: > > entry->errors++; > > + /* fall through */ > > case DMA_TRANS_ABORTED: > > { > > struct ntb_transport_qp *qp = entry->qp; > > @@ -1533,6 +1534,7 @@ static void ntb_tx_copy_callback(void *data, > > case DMA_TRANS_READ_FAILED: > > case DMA_TRANS_WRITE_FAILED: > > entry->errors++; > > + /* fall through */ > > case DMA_TRANS_ABORTED: > > { > > void __iomem *offset = > > -- > > 2.7.4