From patchwork Fri Jul 13 08:48:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Matias Bjorling X-Patchwork-Id: 10522843 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 13CE26028E for ; Fri, 13 Jul 2018 08:50:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 05F4829958 for ; Fri, 13 Jul 2018 08:50:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EDF3E29963; Fri, 13 Jul 2018 08:50:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D21DF29958 for ; Fri, 13 Jul 2018 08:50:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727389AbeGMJDY (ORCPT ); Fri, 13 Jul 2018 05:03:24 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:35979 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731021AbeGMJDX (ORCPT ); Fri, 13 Jul 2018 05:03:23 -0400 Received: by mail-pg1-f195.google.com with SMTP id m19-v6so4789637pgv.3 for ; Fri, 13 Jul 2018 01:49:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lightnvm-io.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9UPgCz6mZo/gxq+gky8+iGIL7r/BsjwIOVVAtPdduZU=; b=sudOSFu+iPbvmfmVsR6CboCibaBXyd1Q0XQ5tCqJDqVJGqThBzcUQdQERbTbVqjhgb XqvB+yd3flPd9508/STdYDRDs/LFYLFDtv06YA7qczXWY1diePGVL732Caodrl3EMDlu 8fQ5adQwCu7Y+usyW348C9dtE4eOjY/rouOeE/tU4biyd1wXAP2huWAe/cqDpQClSEx+ BDjbXlm9hg5VOz2YChDy5vN+F6MfGTq1/82rMRp+0AlhL+b5VkNT+qaZm1N+4fIeWUZX BPlSKRdfuWyYuEaNy//l+j9BBOqwbrgbVG/KPvAPKkXYxpqTy/zeX1/k1Ol3tNf3519L Hkdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9UPgCz6mZo/gxq+gky8+iGIL7r/BsjwIOVVAtPdduZU=; b=NUKoEG63ik7eka1DGetJxoq3g0yWFynoApYIV/fAaD219HgCvj/OSM/aaS2GUyp6Mj CO6+ePOQsdFZnxsnk/q0JmdsN3/A/tiWIGjTZYAwCRczi4WJdSg4icty8yKYuSeoWLqa ioaWeZcixV+SBcE/v0mSWoOlaV06ioOp4jPUgv4csVDjodyHhd/xX0dAW1MN52Ls4my3 pZJ3mwye+lVLkZOSTl3xt8k09Pb6KmwwnfebUeYBFA0le3l9Y1OW9BCmyjUXAoE75NKm iZbtEF4ONa96ZNjbzwlVfOaekNkwiBwFWem8NCp8n2r0wRtXT/hSlSf7592sMbbbkxaW UqWg== X-Gm-Message-State: AOUpUlGv5E0NgoeOO0WZUh6IcAXNAb0CCjnXmJ728jdOpcAJwns6XXLS gODsApcgp/njfW0Cv5NLoWlzug== X-Google-Smtp-Source: AAOMgpdsZrkKH/SNjeAaiZTAQEJtqAYahuc7Ns0MvTNbnZIoxUGJD1EOxWdImePr570MfSlrl834vQ== X-Received: by 2002:a63:107:: with SMTP id 7-v6mr5177447pgb.289.1531471783133; Fri, 13 Jul 2018 01:49:43 -0700 (PDT) Received: from skyninja.hgst.com (rap-us.hgst.com. [199.255.44.250]) by smtp.gmail.com with ESMTPSA id d18-v6sm569357pgo.74.2018.07.13.01.49.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Jul 2018 01:49:41 -0700 (PDT) From: =?UTF-8?q?Matias=20Bj=C3=B8rling?= To: axboe@fb.com Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, bart.vanassche@wdc.com, hans.holmberg@cnexlabs.com, javier@cnexlabs.com, hlitz@ucsc.edu, igor.j.konopko@intel.com, marcin.dziegielewski@intel.com, "Gustavo A. R. Silva" , =?UTF-8?q?Matias=20Bj=C3=B8rling?= Subject: [GIT PULL 08/10] lightnvm: pblk: mark expected switch fall-through Date: Fri, 13 Jul 2018 10:48:43 +0200 Message-Id: <20180713084845.19511-9-mb@lightnvm.io> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180713084845.19511-1-mb@lightnvm.io> References: <20180713084845.19511-1-mb@lightnvm.io> MIME-Version: 1.0 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: "Gustavo A. R. Silva" In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva Signed-off-by: Matias Bjørling --- 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 b829460fe827..00984b486fea 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;