Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp164674imm; Tue, 7 Aug 2018 16:10:25 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzW36iUD0nyXLQUiPvn+PRh3iUYAGiWovELwMKdbxOPuh//nGTQ8NET0djUmGQ7ykbje5cI X-Received: by 2002:a65:5284:: with SMTP id y4-v6mr262275pgp.283.1533683425616; Tue, 07 Aug 2018 16:10:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533683425; cv=none; d=google.com; s=arc-20160816; b=nwi3dW5dfKOlVGvns59YpQgP8tEogn07v7qwFBbK1nVx1gkQ8p4xcGzVIuSQ4YvZqP hFO8IXkp7LjMlQPp1N95SujBRUDvLVn8URXvn170nu2khP/ZkG7gwC6noVsJwVTccldf bS8+Hboupm8sxZaixgy53ia4zSt8i10Vsu7JmAkcJYMKcctc4KO6dzYusobxE1MURCmI Ri7e6VfyyNkAfRkBhNELVhWHJXCHuYmg+WCzQplyOcgrI+WukOp5hHmLzF9T1bjuPnIx SCOGKwj9iAyExfQ79HIIFGZtRy47W41yQhtKiDYXefcNkeCBsXYzUGpfF/Rp38M4ln+y gUmA== 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:to :from:date:arc-authentication-results; bh=0n7qAgoSzT/4o6QuGtu2hl4yLb2PWbVZ5sChXWd/gU8=; b=hxD/Hv4cuMfUOfd0DQrq7BySW/YiiHjboOykknNNbU0Owhi86UiEzOsr/YjhuJUAab wglii16VRHCL3DQYJ4dHyIxGHfxyVEqzI0LkcYpTrKhGWECSdwfyyEy8n1BYOo8UORCK vE+y2bf1h2RFdha1N8EleEn+4ZC2TcFJc+pyZ9VOKVXbXdCpFu3U1M06Qomb3en3DfMO TrO1Kyz+V2U2ZkECH9Tbhm/tu1uUm9wC91Iphig43ZQUzzrlDz7wWa/Xe6lrmwJr/SDz wOeMUTPshy8E46uVpU6NgPMeBrkdisCIcW0sAffb+pfA6Ror5uJtmB6sF75Eb7mRJ6qv VuIg== 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 v3-v6si1869296plo.208.2018.08.07.16.10.10; Tue, 07 Aug 2018 16:10:25 -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; 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 S1726953AbeHHBZ7 (ORCPT + 99 others); Tue, 7 Aug 2018 21:25:59 -0400 Received: from gateway24.websitewelcome.com ([192.185.50.66]:26167 "EHLO gateway24.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726579AbeHHBZ7 (ORCPT ); Tue, 7 Aug 2018 21:25:59 -0400 Received: from cm15.websitewelcome.com (cm15.websitewelcome.com [100.42.49.9]) by gateway24.websitewelcome.com (Postfix) with ESMTP id 08494BEEB for ; Tue, 7 Aug 2018 18:09:19 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id nB6Ef6mIebXuJnB6JfVo2x; Tue, 07 Aug 2018 18:09:18 -0500 X-Authority-Reason: nr=8 Received: from [189.250.73.102] (port=48024 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1fnB6E-001ogG-2E; Tue, 07 Aug 2018 18:09:10 -0500 Date: Tue, 7 Aug 2018 18:09:09 -0500 From: "Gustavo A. R. Silva" To: "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH 01/33] 8390: axnet_cs: Mark expected switch fall-through Message-ID: <6995d932701f9df0c88b0f071af8a67edc31c8b8.1533675546.git.gustavo@embeddedor.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) 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.73.102 X-Source-L: No X-Exim-ID: 1fnB6E-001ogG-2E X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.73.102]:48024 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 46 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. Addresses-Coverity-ID: 114889 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva --- drivers/net/ethernet/8390/axnet_cs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/8390/axnet_cs.c b/drivers/net/ethernet/8390/axnet_cs.c index d422a12..0b6bbf6 100644 --- a/drivers/net/ethernet/8390/axnet_cs.c +++ b/drivers/net/ethernet/8390/axnet_cs.c @@ -610,6 +610,7 @@ static int axnet_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) switch (cmd) { case SIOCGMIIPHY: data->phy_id = info->phy_id; + /* Fall through */ case SIOCGMIIREG: /* Read MII PHY register. */ data->val_out = mdio_read(mii_addr, data->phy_id, data->reg_num & 0x1f); return 0; -- 2.7.4