Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1397371imu; Sat, 26 Jan 2019 01:54:28 -0800 (PST) X-Google-Smtp-Source: ALg8bN67OPt4fDMVs2Nb8wPNPoHnD6BSsy9RtPPKL3uxR6pOQtf984pfol7rH7rw5zkgneHIfiEw X-Received: by 2002:a63:1c09:: with SMTP id c9mr12824186pgc.200.1548496468498; Sat, 26 Jan 2019 01:54:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548496468; cv=none; d=google.com; s=arc-20160816; b=JIqpvDOYCQA0QIDv5tZxiJt8rCndQX+bEz6IkH1B9nasTG6gL0UUj1NiBpIkc3xIVn K1UWx+9WlC63KlY7fD1nKotnHsTlse50nlCWb1AwnVDGJ9y5kbjcrlhyrLJPb+JlT2w4 CPx2x6buDnOq6oJUoeWNumeAzvGqhUpBscQixDQ2PLcaOGX+aMIe5jFtB600mkt5UfDM wTZNa4HZY7sSfE00TPm3i/Oggm2Cj7eZuTgsyCrXvSAmcidngU+ma0KQe43uc9iYDlzc oV0dlM9cmaTzWmt8ml0jib9a85M89DFIxSUowLmZDigtXQJbtIL9prnRj0NgruChkPVU w0dQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Gr9x4PcRWIC+KE/tKIs2+uDPT5YhJrSZ88cDyxwCY4Q=; b=jI3U0uIXTtyn51zjCZwJK5OfnZMMvsdD/Bq0hxYUFlJ2HlsNb+gcjdJRR7tMQG5uX/ 6I58roGI5Nds9rjYuzsVl7VmeedK0F4QTpUyOKNOYB1JeKzojR70CHr1TmCYWDhyFNtK Fmil19aI85F+HN/G8UJRTIP+nNt8bt/lw9BLp+bnTIEnEOug3QcB8R6REYaZ4M4lOkOz zW4ufY3wzoM2vP9TBquWx38ssqXIl7nfUai/o1+McS7PtA6KDyHMvrEaCDj5yQ4fKibf 3Rgfn6+5IbzW9aNygg2HxxGnWczzXwEEG0Z6oEKBpu/cBn1T1PiWogduL+UVZ1p9Og9y 7WKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=J6+IFAvH; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 4si28827860plc.320.2019.01.26.01.54.13; Sat, 26 Jan 2019 01:54:28 -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; dkim=pass header.i=@kernel.org header.s=default header.b=J6+IFAvH; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729824AbfAZJw3 (ORCPT + 99 others); Sat, 26 Jan 2019 04:52:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:56672 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726165AbfAZJwW (ORCPT ); Sat, 26 Jan 2019 04:52:22 -0500 Received: from bbrezillon (91-160-177-164.subs.proxad.net [91.160.177.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C7AB6214C6; Sat, 26 Jan 2019 09:52:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548496341; bh=NvJwRTne2XBLYpaa43t+2CusW49FJOtCICODfrZ8D+k=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=J6+IFAvHadi5Fi32frk9X7fK1WAk40QgNpSHA0k9lP4yAwtg+q75FN/2WBsMTmjWb i8zrnYxIiyCA89WyCGeQAdyq5ve9VJeRVOLZO5vmuDH8id2dV5IZiRpv0vXbPPiQXC xqPXfIhWlalcWpADrK3nL+ua4wFYWKRa9o8afNpg= Date: Sat, 26 Jan 2019 10:52:08 +0100 From: Boris Brezillon To: "Gustavo A. R. Silva" Cc: Kyungmin Park , Miquel Raynal , Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , Wan ZongShun , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Kees Cook Subject: Re: [PATCH] mtd: rawnand: mark expected switch fall-throughs Message-ID: <20190126105208.221a2051@bbrezillon> In-Reply-To: <20190125210950.GA27855@embeddedor> References: <20190125210950.GA27855@embeddedor> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 25 Jan 2019 15:09:50 -0600 "Gustavo A. R. Silva" wrote: > diff --git a/drivers/mtd/nand/raw/nandsim.c b/drivers/mtd/nand/raw/nandsim.c > index 933d1a629c51..d33e15dc4cdc 100644 > --- a/drivers/mtd/nand/raw/nandsim.c > +++ b/drivers/mtd/nand/raw/nandsim.c > @@ -2251,9 +2251,10 @@ static int __init ns_init_module(void) > > switch (bbt) { > case 2: > - chip->bbt_options |= NAND_BBT_NO_OOB; > + chip->bbt_options |= NAND_BBT_NO_OOB; > + /* fall through */ > case 1: > - chip->bbt_options |= NAND_BBT_USE_FLASH; > + chip->bbt_options |= NAND_BBT_USE_FLASH; You miss a '/* fall through */' here. > case 0: > break; > default: