Received: by 10.213.65.68 with SMTP id h4csp73239imn; Fri, 30 Mar 2018 14:36:22 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+QdEZKOszSOg3JCgYUkY+huKHQUh/IL4gU6TRXhLS+gATPJhkl+OKIigSxUaxfhJkehSZz X-Received: by 2002:a17:902:b086:: with SMTP id p6-v6mr646465plr.392.1522445782816; Fri, 30 Mar 2018 14:36:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522445782; cv=none; d=google.com; s=arc-20160816; b=c4+Rb1Gc+a6N39MbFkDGxMcYocsD0wxBn3KxWfZnj1i+gk/CbKDJXn8Sjg3RLNaEsC L6qQFxiyTc6N4HOss+iJRf8m9/1NVhvFBtU1U1lHEu6vBC2JOxqd7qatqrMIRNcI4iUo C1ZEi6EIO5kYmwgSCNuJjT2et/FFBFNugl2ZoA+lsh6AioWBONrM6TTMXBT+mHLIY/+D uIDw30nVRUyEBx+jDsCsie9tuIBXKDhkEvgG+TN8Y6KV9MW5wtV1S7BzrvTtj4WqnfXJ kzZ4GaNxHdnTEgJtWkU/hLy6cI4UnWWtdDllDOB2XaD49IEQK8pYySRuictffBn0kz70 Mzpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date :arc-authentication-results; bh=Bvm1ciuT7D7CGPTaf+1RfvI2eNWzisjKQZUKmgJ8pPI=; b=nYKsoK2BWc0S4bqBvj9HhOuu7PM+aKsOEXk6Djk/QBbF33ZCmF3H3SacZN617eZOlv cSDCOgQfz79/CWHSSKYzATtcoGh6EMPx6LdiZYuPr4mHghjHVxT9YF3ITCOej6my9VvL 5wyXf4+L5VUbXaLZC4GuTH7NU085UqY9ZoRq1ZXO/C8VFflvrqX1bFZwWrC6omE67hAJ ZZGS1DrrN7A2IoZLmJkHH2N9HKTj2CWYF77f2XcyzPKLTYmU21THspAiA22FvTNJjNSf av3epCSKBJuRmxAQpAR/D2JOAwJb0OFiD0R1zbp24hpyw0uMhGtT6Kf5wr8jtSbuo5Re XBHA== 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 u8-v6si9279906plr.50.2018.03.30.14.36.07; Fri, 30 Mar 2018 14:36:22 -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 S1752832AbeC3Veo (ORCPT + 99 others); Fri, 30 Mar 2018 17:34:44 -0400 Received: from gateway20.websitewelcome.com ([192.185.69.18]:40156 "EHLO gateway20.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752759AbeC3Ven (ORCPT ); Fri, 30 Mar 2018 17:34:43 -0400 Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway20.websitewelcome.com (Postfix) with ESMTP id 3C711400C7A2A for ; Fri, 30 Mar 2018 16:12:25 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id 21Jxf7dvgQUwq21Jxfx3Xb; Fri, 30 Mar 2018 16:12:25 -0500 Received: from [189.145.54.187] (port=45350 helo=embeddedgus) by gator4166.hostgator.com with esmtpa (Exim 4.89_1) (envelope-from ) id 1f21Jw-0015do-PK; Fri, 30 Mar 2018 16:12:24 -0500 Date: Fri, 30 Mar 2018 16:12:23 -0500 From: "Gustavo A. R. Silva" To: Jakub Kicinski , Kalle Valo Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH] mt7601u: phy: mark expected switch fall-through Message-ID: <20180330211223.GA22497@embeddedgus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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.145.54.187 X-Source-L: No X-Exim-ID: 1f21Jw-0015do-PK X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedgus) [189.145.54.187]:45350 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 11 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. Signed-off-by: Gustavo A. R. Silva --- drivers/net/wireless/mediatek/mt7601u/phy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/mediatek/mt7601u/phy.c b/drivers/net/wireless/mediatek/mt7601u/phy.c index ca09a5d..9a90f1f 100644 --- a/drivers/net/wireless/mediatek/mt7601u/phy.c +++ b/drivers/net/wireless/mediatek/mt7601u/phy.c @@ -795,6 +795,7 @@ mt7601u_phy_rf_pa_mode_val(struct mt7601u_dev *dev, int phy_mode, int tx_rate) switch (phy_mode) { case MT_PHY_TYPE_OFDM: tx_rate += 4; + /* fall through */ case MT_PHY_TYPE_CCK: reg = dev->rf_pa_mode[0]; break; -- 2.7.4