Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2751987ybi; Sun, 28 Jul 2019 17:02:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqx8Dwb5VOlX61iyt8nBnKwO7Znd/ORp3oiGRXykGgfTRHUvSWx7i9TZY4ySyPv7ljQi7uF9 X-Received: by 2002:a63:c008:: with SMTP id h8mr99977155pgg.427.1564358539938; Sun, 28 Jul 2019 17:02:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564358539; cv=none; d=google.com; s=arc-20160816; b=FG6jeLJTsvSLZSYlVeIRYxHIueA0HgKma+pYVcS7beSaVnvu31KwANXSGBEETfhezI j5++XJ+3kMku0tUtIfHULGqRkbYbYQ6UGoJOqcjbzoCLSj0j6rHVmCRVOulOks1xKJWd hbvd/NXZ7yNo2YxlBRu3KgSH463mPrPmZwk22smt4xdhM2UlWuhABjXeDFvp94iyv3pz sr64RT2nxL4jz5I/cWbO0dduTa6eH6AgrwBId2gVrLl3dyE+vrrEHDY7SXxCYxTewSDF SI9pRD4X3EkRIrl1zZAQqB/dN4ZhLYq9m0xUTUVn7ARFOA5Y44UQKbiUUTstiqSgD1CP GQiQ== 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:dkim-signature; bh=I9uOKHxVbt8UeBd3GkXgx66REfHuRvFkiJYnkeKfdME=; b=PvzBJGzOiHg/hRMkIdOK8NEJc5oCjJWJ+UW8TSqIzKXy9vrvUUkOW53CZxOVb1p5O5 n52ha+aw4YXltdIb46GjcFZLCM20yaPGfBDq5UTO1/AY2Mbe3VD/gj5JEHliTElpn8pR W0WTzM9bp23bc+um8ZIYbvHK+OTjUYX8BgZNWkHQ/y7MJp6BZoagI6RBNzd/TAqw99s6 l9Z+Xqo91X54EhBCyKYUmlYO1MbY7Ny/OFcT/QlA/UYd1wYYshsuQhRNsvSW/Dw83Xov jgDeGSBF+8f4jAuCgbB0lt37JSwRnF5M+zMHf0Fxe/ZFuqPUlxQtvzpYWFwBkjwLnkts ihFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@embeddedor.com header.s=default header.b=sPPzipz0; 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 v32si23087056plg.3.2019.07.28.17.02.04; Sun, 28 Jul 2019 17:02:19 -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=fail header.i=@embeddedor.com header.s=default header.b=sPPzipz0; 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 S1726314AbfG2AB0 (ORCPT + 99 others); Sun, 28 Jul 2019 20:01:26 -0400 Received: from gateway34.websitewelcome.com ([192.185.149.62]:18952 "EHLO gateway34.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726248AbfG2AB0 (ORCPT ); Sun, 28 Jul 2019 20:01:26 -0400 Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway34.websitewelcome.com (Postfix) with ESMTP id 03F9B4111F2 for ; Sun, 28 Jul 2019 19:01:25 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id rt6ShEPFkiQerrt6Shderw; Sun, 28 Jul 2019 19:01:25 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=embeddedor.com; s=default; h=Content-Type:MIME-Version:Message-ID:Subject: Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=I9uOKHxVbt8UeBd3GkXgx66REfHuRvFkiJYnkeKfdME=; b=sPPzipz0aQZkir5rbCZc/LsTW4 7VTuB9XmG+yuadoPyxL4T8CglDxGgDyFw5mYV2qkySG4vU2U8NfGTEBa+D1vDWcMyEQ9Hacr5RdqD BVCOy71YUdA8LyKugLGPodqigEha2td6bMTsNkq5V/KPVv5xLxMcO3xJoqSpm21EyYclq322FyuCD s6i+a8l4nlqvuykhP3EnQWr+YMnzqD/UlwXeaGJfb1x7wyrgqc5vn/9hgFKlOXavCiJRlXvdJ/vyJ 1pP+ZNa+9fLhbEFYT9nqyROtbDqYiKuP+JmRhBwvZKFvWuAHn2zpZT9QGCymUsUQLVRIH6N5tV3MW 4pvmc8DQ==; Received: from [187.192.11.120] (port=39644 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.92) (envelope-from ) id 1hrt6R-003owE-Nk; Sun, 28 Jul 2019 19:01:23 -0500 Date: Sun, 28 Jul 2019 19:01:23 -0500 From: "Gustavo A. R. Silva" To: Ludovic Desroches , Ulf Hansson , Nicolas Ferre , Alexandre Belloni Cc: linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" , Stephen Rothwell , Kees Cook Subject: [PATCH] mmc: atmel-mci: Mark expected switch fall-throughs Message-ID: <20190729000123.GA23902@embeddedor> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) 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: 187.192.11.120 X-Source-L: No X-Exim-ID: 1hrt6R-003owE-Nk X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [187.192.11.120]:39644 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 7 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 Mark switch cases where we are expecting to fall through. This patch fixes the following warnings: drivers/mmc/host/atmel-mci.c: In function 'atmci_get_cap': drivers/mmc/host/atmel-mci.c:2415:30: warning: this statement may fall through [-Wimplicit-fallthrough=] host->caps.has_odd_clk_div = 1; ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ drivers/mmc/host/atmel-mci.c:2416:2: note: here case 0x400: ^~~~ drivers/mmc/host/atmel-mci.c:2422:28: warning: this statement may fall through [-Wimplicit-fallthrough=] host->caps.has_highspeed = 1; ~~~~~~~~~~~~~~~~~~~~~~~~~^~~ drivers/mmc/host/atmel-mci.c:2423:2: note: here case 0x200: ^~~~ drivers/mmc/host/atmel-mci.c:2426:40: warning: this statement may fall through [-Wimplicit-fallthrough=] host->caps.need_notbusy_for_read_ops = 1; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ drivers/mmc/host/atmel-mci.c:2427:2: note: here case 0x100: ^~~~ Reported-by: Stephen Rothwell Signed-off-by: Gustavo A. R. Silva --- drivers/mmc/host/atmel-mci.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c index 9ee0bc0ce6d0..c26fbe5f2222 100644 --- a/drivers/mmc/host/atmel-mci.c +++ b/drivers/mmc/host/atmel-mci.c @@ -2413,6 +2413,7 @@ static void atmci_get_cap(struct atmel_mci *host) case 0x600: case 0x500: host->caps.has_odd_clk_div = 1; + /* Fall through */ case 0x400: case 0x300: host->caps.has_dma_conf_reg = 1; @@ -2420,13 +2421,16 @@ static void atmci_get_cap(struct atmel_mci *host) host->caps.has_cfg_reg = 1; host->caps.has_cstor_reg = 1; host->caps.has_highspeed = 1; + /* Fall through */ case 0x200: host->caps.has_rwproof = 1; host->caps.need_blksz_mul_4 = 0; host->caps.need_notbusy_for_read_ops = 1; + /* Fall through */ case 0x100: host->caps.has_bad_data_ordering = 0; host->caps.need_reset_after_xfer = 0; + /* Fall through */ case 0x0: break; default: -- 2.22.0