Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp776642ybc; Sat, 16 Nov 2019 08:29:59 -0800 (PST) X-Google-Smtp-Source: APXvYqyDfKdBEBjBAt08c5snU0rCE5KhkXrmU+rYGAuBFN/lZ6prdc8P8+3GQdQBVVMWf6+md0Zo X-Received: by 2002:a17:906:11cf:: with SMTP id o15mr11326381eja.208.1573921798904; Sat, 16 Nov 2019 08:29:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573921798; cv=none; d=google.com; s=arc-20160816; b=JFzOuvFepgD4xbbHIOXzlMQ6+M8dUfWMfexETdSNLv0sO9u5EYCXAj7NlhGB4iNbKS 1QLd3yfP28pP68coA/382FIqA/8JP3yT2b4HyJGwy5jwO+io1DeQPoL8XyUlAI7V63AP EA7cBelUGH/cTQMtqcz6LImsRyIm+VfsRXjufCTj7NbvdKWs3baZCgp+K3n3sTBcfWIe T9dl2XbVFglO40R4UMxd4mQ8PJ1/L3C9EPgQCB39ly/hNTlJxlTL9kdiXdqUXzz+nkCC CbtBZUVAXj2eFRJTLJRxPwGYFhq3JVZ3dR2Q4yaZq1YF6ddFcE9CC6OYlVWPyOkGaOOx 8F4w== 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:date:subject:cc:to:from :dkim-signature; bh=RYfKn3hwbUIIlV9D4b+CQtadfYuiYdrMdCB3NwIk5vg=; b=U+mkjFR60/1TdEk0S1kyUv0g8hoOmZGfTWRTkRIdXFPzjtnt1CdD57+6uUgXTSyX6f yI14+Xiq7HhXLX+9LgcE/iP+gNZ9MdjSGQ0DCEgxK0BUoA8+fACNmx169cIxCR4pBRvI gysX3/JG2TENhs2KPi6urN6yyoZ14wFeDtDuRE4CsZImJtTtLkAXo9iDdLCgoJZ3yULO HJyvQZHk5Bd37Rl7PnVsAqOGFyG17mK6NarT4Bg5jX5vQeAXO9wIffw8JJ6nM61I81sR utJ/o/w6mE7DXRlNRFYajUWaMB/wyqgoRjAOK8DQpIJY6a0nkqeCzxjr3FjEJX032VR1 cxjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TVfMaCZc; 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 v11si9046204edc.410.2019.11.16.08.29.34; Sat, 16 Nov 2019 08:29:58 -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=TVfMaCZc; 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 S1728918AbfKPQZL (ORCPT + 99 others); Sat, 16 Nov 2019 11:25:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:45702 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728198AbfKPPmL (ORCPT ); Sat, 16 Nov 2019 10:42:11 -0500 Received: from sasha-vm.mshome.net (unknown [50.234.116.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C90892075E; Sat, 16 Nov 2019 15:42:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573918930; bh=Qu4UXCaOZOleywbTOQooncLWSu1yX+qQ4EtAGc3XE4c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TVfMaCZcp/C5cr4yZQe+mE2Xj3pRVEM6afsnqHMWn3/JNWdtWgRKT4c6cWMBd6M4H Oau0VHSRCYqmfGVHQAAeHaDKyjpndlRwWExLi+f3AQTYP+K2uhPxxbeLiZTR74tsgl 8QResSjiYLnu7AfT2NnlN/VhXnL0uNXY8duyK/hA= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Bart Van Assche , James Smart , Christoph Hellwig , Sasha Levin , linux-nvme@lists.infradead.org Subject: [PATCH AUTOSEL 4.19 057/237] nvmet-fcloop: suppress a compiler warning Date: Sat, 16 Nov 2019 10:38:12 -0500 Message-Id: <20191116154113.7417-57-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191116154113.7417-1-sashal@kernel.org> References: <20191116154113.7417-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bart Van Assche [ Upstream commit 1216e9ef18b84f4fb5934792368fb01eb3540520 ] Building with W=1 enables the compiler warning -Wimplicit-fallthrough=3. That option does not recognize the fall-through comment in the fcloop driver. Add a fall-through comment that is recognized for -Wimplicit-fallthrough=3. This patch avoids that the compiler reports the following warning when building with W=1: drivers/nvme/target/fcloop.c:647:6: warning: this statement may fall through [-Wimplicit-fallthrough=] if (op == NVMET_FCOP_READDATA) ^ Signed-off-by: Bart Van Assche Reviewed-by: James Smart Signed-off-by: Christoph Hellwig Signed-off-by: Sasha Levin --- drivers/nvme/target/fcloop.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvme/target/fcloop.c b/drivers/nvme/target/fcloop.c index 5251689a1d9ac..291f4121f516a 100644 --- a/drivers/nvme/target/fcloop.c +++ b/drivers/nvme/target/fcloop.c @@ -648,6 +648,7 @@ fcloop_fcp_op(struct nvmet_fc_target_port *tgtport, break; /* Fall-Thru to RSP handling */ + /* FALLTHRU */ case NVMET_FCOP_RSP: if (fcpreq) { -- 2.20.1