Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp81412imm; Tue, 3 Jul 2018 14:22:31 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcI+Vm2YEsuf/KTeX3x34yqtoEZIGXSoIP3Z0KLesawj1pPIMJhi1UALxLlSpBcgzTVd/Hb X-Received: by 2002:a62:f50b:: with SMTP id n11-v6mr21279611pfh.120.1530652951046; Tue, 03 Jul 2018 14:22:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530652951; cv=none; d=google.com; s=arc-20160816; b=xYHsSW+LVhiCJXGiPgD66xW8aUEIsw+7KgP7PhPiHUYPiiVZLoJliF+dCl6rT/Wx7T l6gAgothRwj1G3KRonN6TGjPZSOpjPn5X+Y4EW2lwRgZ3xM5fJBpJosAJoysGOgU/GHp GLGdrkMaAVG+tq2AVEv4IYflHVi+vEpVkUMGuglDsNzAoPUxrffHv8hybk1A3PZ0DLQ8 szzPK6Yvlio1T5EDNpvbX3YrT4D2Z58AT62n+cB4xeLIs4xOncp/gBxcJV/qXY/oZABU d4dsBqOtn5wIx4X56ARlDBjXLYE3WH1t0a1q1wtoeKgrrg4AyWQu4Q8tB9AcgDImrYcS FEmA== 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 :arc-authentication-results; bh=nCST6tesnKq5WrNuO05UhaTqt/pKIHnZMI9O/h+n0OY=; b=J/Rh7/JrAJ/y474oAuGYF7rueOELyRjAQLUZj7d6/ZvdHouri1LI8UFhWaWDztsXap ugksu3Ss6QIyKaPFWwj7voDRiaGbibbOW1FzWHy2EbuPoRsBAue2KOAcjbZiIgqCSQ// PjjUH222R1KxizVYAZXJErH90gBTjI+bAsGqg9SRhwdd70u9kCwPdKU8yoc1o3X9UNpj OeFNcPpK64kEDuwxlEsHEZsZodXp4x63Tzssm6ojgfUGkriS0E2bcxZFu4iMJnk7vMVC 2rOsYsSD5gZLCAoNxadVy3UIoNvNSslOnWHOxErYSJrMcPYIstTbXiyANVCRPnEG5QNo YowQ== 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 x19-v6si1391223pgk.80.2018.07.03.14.22.16; Tue, 03 Jul 2018 14:22:31 -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; 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 S1753262AbeGCVVb (ORCPT + 99 others); Tue, 3 Jul 2018 17:21:31 -0400 Received: from gateway31.websitewelcome.com ([192.185.143.40]:25935 "EHLO gateway31.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752706AbeGCVVa (ORCPT ); Tue, 3 Jul 2018 17:21:30 -0400 Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway31.websitewelcome.com (Postfix) with ESMTP id A48805FC56 for ; Tue, 3 Jul 2018 16:21:28 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id aSjmfHczMSjJAaSjnfmZS1; Tue, 03 Jul 2018 16:21:28 -0500 X-Authority-Reason: nr=8 Received: from [189.250.65.56] (port=50574 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1faSjm-003Wid-4F; Tue, 03 Jul 2018 16:21:26 -0500 Date: Tue, 3 Jul 2018 16:21:25 -0500 From: "Gustavo A. R. Silva" To: Matias Bjorling Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH] lightnvm: pblk: mark expected switch fall-through Message-ID: <20180703212125.GA29262@embeddedor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) 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: 189.250.65.56 X-Source-L: No X-Exim-ID: 1faSjm-003Wid-4F X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.65.56]:50574 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 8 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 In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- drivers/lightnvm/pblk-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/lightnvm/pblk-core.c b/drivers/lightnvm/pblk-core.c index ed9cc97..9c93334 100644 --- a/drivers/lightnvm/pblk-core.c +++ b/drivers/lightnvm/pblk-core.c @@ -264,6 +264,7 @@ void pblk_free_rqd(struct pblk *pblk, struct nvm_rq *rqd, int type) switch (type) { case PBLK_WRITE: kfree(((struct pblk_c_ctx *)nvm_rq_to_pdu(rqd))->lun_bitmap); + /* fall through */ case PBLK_WRITE_INT: pool = &pblk->w_rq_pool; break; -- 2.7.4