Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp920186ybh; Sat, 3 Aug 2019 13:01:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzv9lMbU+0Ke4/FJtuvL0Ncpn6WHn2gT6cH4bnHexbK2IunDBa3HXVwtAheug1ds01za1q1 X-Received: by 2002:a63:3006:: with SMTP id w6mr8011681pgw.440.1564862467376; Sat, 03 Aug 2019 13:01:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564862467; cv=none; d=google.com; s=arc-20160816; b=bHWas8KOBC3zdAzdJ5XKnyzWooypy93RgUwBcsLmlRto7OWqZ7D+o1+CEKtgXr1FNk C0a8mDi/yHO9VHpqUkCHOS/vqX7qEG5q7NAwoDshwohj3dz4NeRRC7TROAdoJ1IeilrH 0MZamPVT4K7sJ7t3g+5ELiuj7EyJw5/1wTz1Jxnw4nO4gvEH6gDiFbfwm7xsxV4TjqDV HxC/6zeKa9ZxpNSBfQbsWLx/mHZ1BG2/iqXUP+YSlRmw6mBnMdT8d0JISsYoIyE7lyos u3eeMBO5GeujYat3f6mQ7Pcum7pMIx7XvlFYW9c9tbQBMsI6uPEVdYMXe2RQ+o+4PgfJ 4o5Q== 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=K/2TKAA2eHey/AJMPKbULt2KgA6zmWugOWMLV/zLdIQ=; b=u5mOq1MiU2XZGgUKmDWLtp9aepMoBXUVeJx1+cf/U6nUH21MdI00FMiWKzSXdiFpk4 mKC03olARLpwoglR51QORDU0mWoMHMOzh7cxsniXg3dtWDN01kG3wolKL95dd2X7GYEF lZgo+FS40wAlt52FS+FAdYvr4tvdNKf9JqwGQAvQYRG7pedTAAtTwO3XfkCER4Jss+r7 U9aDniQQTe3hNCIalRF9pJWMExxVeEKLdwjqMwZuqZRKmtRfMCHZZ/O6DPvjiadg4wAz nF2raJ6zVlC8aLm9u8dsYhjuxkprcwIC0t4G7XVcLl+NDLARsI8vcpCLIGGYoBQwR8RY XKJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MOnyX+EN; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 61si36800933ple.275.2019.08.03.13.00.47; Sat, 03 Aug 2019 13:01:07 -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=@linaro.org header.s=google header.b=MOnyX+EN; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2395166AbfHBPRB (ORCPT + 99 others); Fri, 2 Aug 2019 11:17:01 -0400 Received: from mail-vs1-f68.google.com ([209.85.217.68]:34989 "EHLO mail-vs1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731569AbfHBPRA (ORCPT ); Fri, 2 Aug 2019 11:17:00 -0400 Received: by mail-vs1-f68.google.com with SMTP id u124so51552972vsu.2 for ; Fri, 02 Aug 2019 08:16:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=K/2TKAA2eHey/AJMPKbULt2KgA6zmWugOWMLV/zLdIQ=; b=MOnyX+ENZwETJxfcOsqblof0a5+oHsd548wkWcaufdcOARpVP6mirV4rDTs4r7nNNz Q9PYFbuq0inCJjPWfvp39vJaHis4Nu+BLljBFrXmXlRwNDQQgCs69XrFlq414pfJRcaX ut5O1R9I3YkEUZ/nYExGXOuKC2JyQ/8GLhadgne5IeTAfdTLisHwcSrN5RuUDDyORs8e uviMnn0lHnuUeweHEmQg3w2gWVpi8/DCOGJ8MtKbxy0FKVf/WycngUTDR9yiAbo5zRcQ nO2R/Nx/Idv316NUzQqBsUUwRnfk/xMUvir/CPfTu7KmcA67Fw6b7kl6/iRqnN7j78zO CB6g== 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=K/2TKAA2eHey/AJMPKbULt2KgA6zmWugOWMLV/zLdIQ=; b=opR9PceD1N4OYSi0xaN4Yv/FVrnWA22LmvSGNdWrBMr5ATFszh4gIbuvU79SonBkht weMyytM73EZ4w0fR/x3BEyNwDTFE+WKV3dWNJpo61JNU8jo+L8qafUAp8Ca0MfUllbco +Z5drH29vGHQ7Nfnb6PNqfGeFTjcnKAyUgbenWlXQ0eBK519J63axDftpzV/Dbhm/NL4 LZ4wIEhRpiBTWZuiTbOn9VNHeSCWsccSzQ3cyGv4ab7VAUaZ3T6tN78AB0W4y3ceZmwE vqQUTX5yYWS4gi+J84FPH5/SQjWfEOXA8m/le4nHQoUH76wsn7zWyfOi3u557Ys/jLPA sQ1Q== X-Gm-Message-State: APjAAAVK0ghuHJTBn9s/bP0TzpCB9n/Z0HgRFpa10IUHG8Fh1OCCT3BR lBu2/oW3qQRTisUfSwUlbdClA5NZFd0+Wiepd3Tx1Q== X-Received: by 2002:a67:8709:: with SMTP id j9mr86962584vsd.35.1564759019207; Fri, 02 Aug 2019 08:16:59 -0700 (PDT) MIME-Version: 1.0 References: <20190729000123.GA23902@embeddedor> In-Reply-To: <20190729000123.GA23902@embeddedor> From: Ulf Hansson Date: Fri, 2 Aug 2019 17:16:22 +0200 Message-ID: Subject: Re: [PATCH] mmc: atmel-mci: Mark expected switch fall-throughs To: "Gustavo A. R. Silva" Cc: Ludovic Desroches , Nicolas Ferre , Alexandre Belloni , "linux-mmc@vger.kernel.org" , Linux ARM , Linux Kernel Mailing List , Stephen Rothwell , Kees Cook 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 Mon, 29 Jul 2019 at 02:01, Gustavo A. R. Silva wrote: > > 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 Applied for next, thanks! Kind regards Uffe > --- > 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 >