Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp687278imm; Fri, 5 Oct 2018 10:04:06 -0700 (PDT) X-Google-Smtp-Source: ACcGV60dzn+VnWPEFMkD2XzdXMG2/bGFmxmND4qXMOOB5dtl2cEf1PnzYA599ksoq4kJ5Z3vVLBs X-Received: by 2002:a63:2903:: with SMTP id p3-v6mr5736527pgp.188.1538759046012; Fri, 05 Oct 2018 10:04:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538759045; cv=none; d=google.com; s=arc-20160816; b=saaX6uenC5TGvM6xmPGiz1j9+nfX/t8Z66F/dwvRLSAPcbxTKE6dwQtN7BZM+inkCe R8Z0CmxibXpezCFXCT3tXjd08OBmRhLIPepIMv05pqQpJgKrHWjrSbXQk4glBj7CDsL4 Uqt0R8aJdC6R6gf06YRUlVLouYeUJIjKQotCoYEYCPv6elIulFb5UeyefEQtQ1cRozdg Vszkymzsw/FgUxQGqOJoFfQ0D8q6OMbbZmLaXVf4RemiH9Z5WPwMtFuATW3vV+1G3S8S 1D3JEZxC5tRliil3fhvKDTvvpXJlRzbey6h/gS2ZV3n7k9roChHqkLOy0p0oHAtJzpyT aWpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=+6xQNPup1xQjIR0+We24WXHQYKF4tHYaVxahBjByoos=; b=XYCwYxd53Tl1Mh9jglhZ9Tcd4opFCtcUFJFF7MQExB0jfptq1/UJ577MPsTRATuF1Q mIE+RHI+tegYknUUs7c8DrS+Nis/byrRxPeNxHt//DNorNm4mUrh3OX80AKAUazdrtoB zNH4P78K8YuOeFqq4MSqoMcwPQsdlO/SCUHV5P+8DLiclq3eIbhy7LLldN0+9qHFgXyC 2CQCB+c5JHilASGcM8n9maM6LlAtDEK1jy1mOsH039gI2/qWhk4vXqRJUn06FbP2PQpL AcDpx1Ddw3q75N6voEYiGuxP86QE+UyN+cZgAuD0dodB09HDVxyXOhDkhdEsmMLUIa5t XjUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=u+jXrjyu; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c20-v6si9925644pfc.18.2018.10.05.10.03.50; Fri, 05 Oct 2018 10:04:05 -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=@gmail.com header.s=20161025 header.b=u+jXrjyu; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729375AbeJFACu (ORCPT + 99 others); Fri, 5 Oct 2018 20:02:50 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:43060 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728214AbeJFACt (ORCPT ); Fri, 5 Oct 2018 20:02:49 -0400 Received: by mail-lj1-f193.google.com with SMTP id r8-v6so12204199ljc.10 for ; Fri, 05 Oct 2018 10:03:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+6xQNPup1xQjIR0+We24WXHQYKF4tHYaVxahBjByoos=; b=u+jXrjyup3yi0DlhNaeT2Ynx0qOGA+dtK6bjYEK6Gl/vL8AwQx1aDJ80KtwkinjlN/ 9yuXKHc9TZbb2YwAiMKgE7VDZuOeu0SRbAyur4iSbq6OvCRAJTThn1gtTr9tePoRyCJz pFsB3doCnAjrQsvMSTcBRJ2cdM23NwikCyOJM5ztgWMwcxR4LILTLb+H2mf5HpiLmMQ1 B2cGZYfmrJhbYfDiHdOP63fU6cYdgTegKjOSrqxgUfS3WN/sYpWRKWyNhgzc7SMeeUGV M3JiIbEsXJ0AAztsvdQIMBx9IEWnsXte7kxvkPGS3F6DmZUTNS2l9FM8PAcasjTIfSky Djlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+6xQNPup1xQjIR0+We24WXHQYKF4tHYaVxahBjByoos=; b=MTNxotS9IsGTS4M4+g6vz0r0RilrbFenqZgsbZ0oYrqJt9IEpO7I9b0VcbIx1X4vXo a5Sn1eA30fXpGOBsjHL8JBl/aByo6Ulj1nxLf7T0utUOYKFMXCiOLNvmBhN89cM8Y38s zynI9f34euJ5NDpN2wme2+vg/HVzv/iVXIZi2W0XdH7buQUruoaoEE6uQV1oMyhTa/X3 WNrDpPZEpkOMqIR/AZshqBR0Ne00TY3MJ97bxDgs+XbIxqNyXVE96t94UG3cJw62Ws7P 0I5uWSOBVpUefMVZC61TVgE481WdoscxX8CMKTocw/jhseyRf0z3WtifVZVndT24fvKg knaw== X-Gm-Message-State: ABuFfogIJ1FM+VCi1oemKZobmF5ehu2X7ZuF4Z1OZSE57Gbfmb7g5BQU K1llOHwqnuJcORZ7JtKUGMKW0XD3VOykg4SW1x4= X-Received: by 2002:a2e:900c:: with SMTP id h12-v6mr8403910ljg.121.1538758992394; Fri, 05 Oct 2018 10:03:12 -0700 (PDT) MIME-Version: 1.0 References: <20181005071234.GA8803@embeddedor.com> In-Reply-To: <20181005071234.GA8803@embeddedor.com> From: Allen Hubbe Date: Fri, 5 Oct 2018 13:03:01 -0400 Message-ID: Subject: Re: [PATCH] ntb: ntb_transport: Mark expected switch fall-throughs To: gustavo@embeddedor.com Cc: Jon Mason , dave.jiang@intel.com, linux-ntb@googlegroups.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > 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