Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp411797imu; Fri, 25 Jan 2019 04:37:08 -0800 (PST) X-Google-Smtp-Source: ALg8bN4netKg/trx9IkNy7xsGbhAxjvZ63uHR07PRMHXNWk+L0at4qXgE4yAgqQzYJws0nZ7zTeh X-Received: by 2002:a17:902:128c:: with SMTP id g12mr10412596pla.146.1548419828568; Fri, 25 Jan 2019 04:37:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548419828; cv=none; d=google.com; s=arc-20160816; b=xRkzPW/DSnODRJT2FZ94xoWCRB4+Gz2+ZQfYfPfnpCnp3roSV97sR3dS4JjgqgKd87 d5EemYgSTONMPS5w+aKhBgxE5lLsP/zRIo6Eb2n8URk2rcF6+HOm9Q0fxIsocOc7rlDM xNp9A0yuhBmXeSddZSuYfCE2C/vrQIJpmKOnY6zHxNLgQ9oZ/rprmPg4fnjEDiFwfDC+ jxtI6xO61EWeWQaCK4pdgMadJ6rjpMN4TJn/93+EK/eEcjrzMby8n0gNa7XzJz1O2EpH x2ObkiQSxFKsxwOa8QSYTVPwiGvPFDAyZpRf7gDglgEQ3ZgvWyu4ywf0dofzOWdZQfKc Ghfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=k1xMfu1TAhi7pKvBtJGC1VCMHL8Xp29dsDFnLd6TSEU=; b=KJvM+5K8jC8frx31Mmgr2/icPu/gHyWChDg7sLiG0KjN2AgAwSJHrulIWU2H7RfAC+ Yn60BgIrmNIs+QqDw1tU9Ck7YaHa722hBgPGaFhlBesVttAmPZAGePr96HSp21JptMVR bwaUSuGk0lH3NOPuyCYdMyhDIVi176LpXxL9XlJHjoZlDGnrkj9A4UwhkI/GEDGkkXwV ZX2T2SvnFdav/OEc4TosnfdsfojhcrSKT0VrEtvG59e1oiQhGql5IoQZuD6poYfE5Yos kR1MzEKMoILpxzedOiv0S8drT3AXSLvZhCHQU2XFKEuS4QLzFKF36vRN+csQ1YQPtffC YoEA== 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 z10si25866942pfm.37.2019.01.25.04.36.52; Fri, 25 Jan 2019 04:37:08 -0800 (PST) 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 S1728542AbfAYMgc convert rfc822-to-8bit (ORCPT + 99 others); Fri, 25 Jan 2019 07:36:32 -0500 Received: from mail.bootlin.com ([62.4.15.54]:49219 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726108AbfAYMgc (ORCPT ); Fri, 25 Jan 2019 07:36:32 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id E539C209B6; Fri, 25 Jan 2019 13:36:29 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.2 Received: from xps13 (aaubervilliers-681-1-87-206.w90-88.abo.wanadoo.fr [90.88.29.206]) by mail.bootlin.com (Postfix) with ESMTPSA id A89C5207AD; Fri, 25 Jan 2019 13:36:19 +0100 (CET) Date: Fri, 25 Jan 2019 13:36:19 +0100 From: Miquel Raynal To: Mathieu Malaterre Cc: Boris Brezillon , Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] mtd: Annotate implicit fall through in nand_command/nand_command_lp Message-ID: <20190125133619.5991c2d4@xps13> In-Reply-To: <20190116195004.2499-1-malat@debian.org> References: <20190116195004.2499-1-malat@debian.org> Organization: Bootlin X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mathieu, Mathieu Malaterre wrote on Wed, 16 Jan 2019 20:50:03 +0100: > There is a plan to build the kernel with -Wimplicit-fallthrough and > these places in the code produced warnings (W=1). > > This commit removes the following warnings: > > drivers/mtd/nand/raw/nand_legacy.c:332:6: warning: this statement may fall through [-Wimplicit-fallthrough=] > drivers/mtd/nand/raw/nand_legacy.c:483:3: warning: this statement may fall through [-Wimplicit-fallthrough=] > > Signed-off-by: Mathieu Malaterre > --- > drivers/mtd/nand/raw/nand_legacy.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/mtd/nand/raw/nand_legacy.c b/drivers/mtd/nand/raw/nand_legacy.c > index 43575943f13b..f2526ec616a6 100644 > --- a/drivers/mtd/nand/raw/nand_legacy.c > +++ b/drivers/mtd/nand/raw/nand_legacy.c > @@ -331,6 +331,7 @@ static void nand_command(struct nand_chip *chip, unsigned int command, > */ > if (column == -1 && page_addr == -1) > return; > + /* fall through */ > > default: > /* > @@ -483,7 +484,7 @@ static void nand_command_lp(struct nand_chip *chip, unsigned int command, > chip->legacy.cmd_ctrl(chip, NAND_CMD_NONE, > NAND_NCE | NAND_CTRL_CHANGE); > > - /* This applies to read commands */ > + /* fall through - This applies to read commands */ > default: > /* > * If we don't have access to the busy pin, we apply the given Applied to nand/next with the subject prefix being "mtd: rawnand:" Thanks, Miquèl