From patchwork Tue Dec 4 20:10:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 1007840 X-Patchwork-Delegate: miquel.raynal@bootlin.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="sZqi01/k"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="X0ZLwjEa"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 438Y0W6HX3z9sBn for ; Wed, 5 Dec 2018 07:11:23 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=4nBQg1UplzDNbHgbCNuuErm6JYySsdS+LV+WEVqBmGE=; b=sZqi01/k+PBYx5 Z3vONgFQOLulBFZmyLnlx0aZy+J5UbHYIAi7UOfsZzfhgo8T/RpoWTVjPkK+AOeDAMFprqpjyt+MQ J403zBzHYIuwRVR+MmnOIa/bhQHmahmXGkC/k3ZVQ7AcGnjAZDTLb6rmg1x691BeSbP9UcfiFgR8L QEbXu2ObbQA4hKHjPF4xa7RvYobc+QSCpZBbAHVELQM0L4BcVHX27kjikOIbDNWe8zf+F5t3A03TO lEQLlSHdl+FKHeo1VCkMPlkbGdAhBqkXVTf+wGlUDdyGTfL9ld5jDxltqXpqAWhW+8692Ue2gxlmr +H3iRAvPR/DiFClweI3A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gUH2O-00059B-8E; Tue, 04 Dec 2018 20:11:20 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gUH2L-00058F-H0 for linux-mtd@lists.infradead.org; Tue, 04 Dec 2018 20:11:18 +0000 Received: by mail-wm1-x341.google.com with SMTP id y1so10888962wmi.3 for ; Tue, 04 Dec 2018 12:11:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0V8p0CTYgcbpfzrxiZxqv+Go/DUrlDa0VjPxfipib4g=; b=X0ZLwjEaNOUa1WKo3BwTeiqJDnneBYr329xK2+6f3GHGAy0bhFu9VFvnZBvNlSgj0t CpNjBS+B2JGD738GAnrw6UBeE4Qn7DE2DOLdDCLWCH86NmIIVfp0HzQN+IpG0OOaALi9 02oYxtVRUY/CtX/exCzXk3mVsmiwE0kg7x+F06ksT8cXZU0YQeXp1qVU3rYbRKNJhZuQ aSBSuFb23+66uw6+2xhpSym4JHYJVFmQbtyhxHVIJ1PorvJycVuHb5LOeWOJME6yQrNb CuuZ4utdSo+UhVMrBbuD/M5Ce3hMHZZe/PsO24Eq/v1INkvr2PLBpZwNYjSxs4PJvqWA HtJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=0V8p0CTYgcbpfzrxiZxqv+Go/DUrlDa0VjPxfipib4g=; b=qjyhZEy1/9EjGPgRAahdhlMO3lKs5dKYxEJe+Vz82ub8Av2YK28L8t6oX+twILLdh0 q3XiO4vG3a0WzW9m01Fv8PAH44gVtuHlF3ebN9M+rxgt001WMfFmwIUk07JGtsAzlNG4 Y+G1GeE1IGeKBlubuJelR/wob1mMfY7fJva91Dd/RJk3ZiECn/QKTfnSMMcD4dVNYTaj F6+c56hPzj9Mxk6ndr7JQpkzzQ0VGn8L37HL9NQ9uAjlzPf/DwhpX42VFGy7e/SDijAg vSLfPzTYksAZ1P7L2QAsWnT8E8xc4anHfMtQTcmqBBsKWSz4YlHKDjd4T9Y+DaE44nqP aCVQ== X-Gm-Message-State: AA+aEWbKsHq5zPs47HjT+XmjMhXdOQ7TzUYaDFwzUrBlalEXJnU4OUqb OBoCRCyFCAL5wcE2VqCG/Uo= X-Google-Smtp-Source: AFSGD/VL6HrNh+uyfKtVCrz1bfOHbhpEX+/m0AJS1zdtoNbHVt/AHf8xQnf0FXBFraMD/lSrIjKoMQ== X-Received: by 2002:a1c:174f:: with SMTP id 76mr12834444wmx.116.1543954265494; Tue, 04 Dec 2018 12:11:05 -0800 (PST) Received: from macbookpro.malat.net ([2a01:e34:ee1e:860:6f23:82e6:aa2d:bbd1]) by smtp.gmail.com with ESMTPSA id w8sm22270181wrv.7.2018.12.04.12.11.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Dec 2018 12:11:03 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 62E151144AA5; Tue, 4 Dec 2018 21:11:02 +0100 (CET) From: Mathieu Malaterre To: Paul Burton Subject: [PATCH v2] mtd: rawnand: jz4780: annotate implicit fall throughs Date: Tue, 4 Dec 2018 21:10:57 +0100 Message-Id: <20181204201057.30733-1-malat@debian.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181203212214.8862-1-malat@debian.org> References: <20181203212214.8862-1-malat@debian.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181204_121117_565235_1AEB891A X-CRM114-Status: GOOD ( 12.58 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (mathieu.malaterre[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:341 listed in] [list.dnswl.org] 0.1 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: trivial@kernel.org, Marek Vasut , Mathieu Malaterre , Richard Weinberger , kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Boris Brezillon , Harvey Hunt , linux-mtd@lists.infradead.org, Miquel Raynal , Brian Norris , David Woodhouse Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org There is a plan to build the kernel with -Wimplicit-fallthrough and these places in the code produced warnings. Fix them up. Signed-off-by: Mathieu Malaterre --- v2: fix subject prefix non sense drivers/mtd/nand/raw/jz4780_bch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/nand/raw/jz4780_bch.c b/drivers/mtd/nand/raw/jz4780_bch.c index 731c6051d91e..7201827809e9 100644 --- a/drivers/mtd/nand/raw/jz4780_bch.c +++ b/drivers/mtd/nand/raw/jz4780_bch.c @@ -136,8 +136,10 @@ static void jz4780_bch_read_parity(struct jz4780_bch *bch, void *buf, switch (size8) { case 3: dest8[2] = (val >> 16) & 0xff; + /* fall through */ case 2: dest8[1] = (val >> 8) & 0xff; + /* fall through */ case 1: dest8[0] = val & 0xff; break;