Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1294034imu; Wed, 16 Jan 2019 16:35:29 -0800 (PST) X-Google-Smtp-Source: ALg8bN7JXZ4SqPRnYSRUgpcevAPYRAqkTznCg8ikN9oDGlGlsMpinyo0LHW9H23BzbE/aTZGK2tO X-Received: by 2002:a62:1484:: with SMTP id 126mr12550042pfu.257.1547685328934; Wed, 16 Jan 2019 16:35:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547685328; cv=none; d=google.com; s=arc-20160816; b=vOrldR+0rVE7e3xEeIFxVrFxJ7SIzkrj9wMPsJ52SfViV5CRTBLITVNAt9awWPLdts dgJAQ9AQLVZpvTiSsPZnQ2tSv+POe5G/bQeN73pGW6ng5PxIb2+4nXhBAT/IURs4vDnb u0tnFS9wRtwKhqDlpYqVb8ptpdNBnkEQIaEeQXOkGBN6hpNdkqwO7hMJdlTpFXFBCNJ1 3H7lQ/49xDK14KkQwGjEx24Ijl6JCMrJ/oSaI/YmcQvl5DVuXDVW+iux94444/2YoROl b1Ewz3RNOaJtZkSOqbBd19Ti/281tywg0JUQ2GwUjTeJJB4cdlafKUzAJC8AyVRc5g+z xyCg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=pU5De/zpgHU6ZeUDONuRyzBSjstl6eMJUmrIaCUGIpc=; b=KfQTGdLN+YcIjHvrgcDmfDEK4uWXChbsg97D5bzymdEi+nuAhxEkgl8a6CI14C1xAM 0tyGHk0zrRwvjK9bbVnIhTpfuEdNesyoYn8UhGD+rhFQyVJKfMPtZ8K+b7dEZB+kk1G4 Fk/pFfKu7LAe1T+GQRbjDnFUV2t/wMQTvaPa+BZh4KfJByP1nEfmxo5H2i8moLqTPx4K K8XPPiUQoO79jy1K4cYRK8U/ESBIEtalvps+zvZRUjsF6cDaDwgLQiHWp2EeSFEnEsiK VrstMAxptSA1WvGtXD46nD2MGFVjepdxJrGyJvA5+M7VJ6uof8tiX3uRw4vgUYzgV3vB ckWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=PXeL45xD; 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 87si7948679pfs.7.2019.01.16.16.35.10; Wed, 16 Jan 2019 16:35: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=fail header.i=@gmail.com header.s=20161025 header.b=PXeL45xD; 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 S1731964AbfAPTw3 (ORCPT + 99 others); Wed, 16 Jan 2019 14:52:29 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:42700 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731691AbfAPTw3 (ORCPT ); Wed, 16 Jan 2019 14:52:29 -0500 Received: by mail-wr1-f65.google.com with SMTP id q18so8349221wrx.9; Wed, 16 Jan 2019 11:52:28 -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:mime-version :content-transfer-encoding; bh=pU5De/zpgHU6ZeUDONuRyzBSjstl6eMJUmrIaCUGIpc=; b=PXeL45xDanU5WGmyL91lyrTcHMuYTaEwyTQGTy4ZkokeJ1RisOze0g1oLgMdUWbC48 Wd0C6G91jHDNcQBSF01O9EOu1Zb4xtsTxVhP/uefJCZZlzBv6pGYCJP6OmEuuIj4Aoo+ BWonfdDq0Hrk3INDFoLirn7fwbAQrNoY1sIZpKmTBJ/DXyCwSnie7cdm/00+/pIecj2X xkPjXZE/4c7n0exMR+Ffm5vrXvTF0NKMUEmboRTtkk+j7yamMF9hNgycb8FQ2cdVcIlN ppZFvKK7IPcUoJaERO4qxy5X+/v4MmVCqvUMugkSF2agodC4sEHG4GWd1mXzqX+8lLKn o76A== 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 :mime-version:content-transfer-encoding; bh=pU5De/zpgHU6ZeUDONuRyzBSjstl6eMJUmrIaCUGIpc=; b=p4HeZVed4M1xk+WqXR8MBDb47tXLPsze/x4260nbV1ciHCzPrihGo5PvAzWB2X410A hjeyzdoch62twF4AERZSgH2eXMbUsb04jDI3ziHRBrFgH7ku+BjMm/cuG8/onukh+8+r b/BAh6P6UvHzDeMF8wICGNhVtdS3ChuNx1EcTJGrnEKtE3kcJbsOo8twAoksunEAtSBr /mtHNXwbkd75hyMi3kd/m7ySB65yn4zMaJIVKLJloiwL4VKFhuh5CKEq+xGbVNlKAF1V rnSkkmstJOJYxpYw9ODaTxy456QQ6saSeRzpw3xHGPQ79xJI2QGRujSmjYTQ2Tf0VOA6 jySg== X-Gm-Message-State: AJcUukcJ08jSE3CHtbajw4Tw9ZBPAYAj90IRe0Q/C+xs8csnlAs349Ya 1JfDd40JjWWi8OhO3lG3oh2VvgAC X-Received: by 2002:adf:9205:: with SMTP id 5mr8872160wrj.189.1547668347183; Wed, 16 Jan 2019 11:52:27 -0800 (PST) Received: from macbookpro.malat.net (bru31-1-78-225-224-134.fbx.proxad.net. [78.225.224.134]) by smtp.gmail.com with ESMTPSA id y145sm27699973wmd.30.2019.01.16.11.52.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 Jan 2019 11:52:26 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 3B3EB11423A3; Wed, 16 Jan 2019 20:52:25 +0100 (CET) From: Mathieu Malaterre To: Ulf Hansson Cc: Mathieu Malaterre , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] mmc: Annotate implicit fall through in jz_mmc_irq_worker Date: Wed, 16 Jan 2019 20:52:19 +0100 Message-Id: <20190116195219.2897-1-malat@debian.org> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is a plan to build the kernel with -Wimplicit-fallthrough and these places in the code produced warnings (W=1). This commit removes the following warnings: drivers/mmc/host/jz4740_mmc.c:745:3: warning: this statement may fall through [-Wimplicit-fallthrough=] drivers/mmc/host/jz4740_mmc.c:779:3: warning: this statement may fall through [-Wimplicit-fallthrough=] Signed-off-by: Mathieu Malaterre --- drivers/mmc/host/jz4740_mmc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/host/jz4740_mmc.c b/drivers/mmc/host/jz4740_mmc.c index 33215d66afa2..a1df8bc0b964 100644 --- a/drivers/mmc/host/jz4740_mmc.c +++ b/drivers/mmc/host/jz4740_mmc.c @@ -743,6 +743,7 @@ static irqreturn_t jz_mmc_irq_worker(int irq, void *devid) break; jz_mmc_prepare_data_transfer(host); + /* fall through */ case JZ4740_MMC_STATE_TRANSFER_DATA: if (host->use_dma) { @@ -777,6 +778,7 @@ static irqreturn_t jz_mmc_irq_worker(int irq, void *devid) break; } jz4740_mmc_write_irq_reg(host, JZ_MMC_IRQ_DATA_TRAN_DONE); + /* fall through */ case JZ4740_MMC_STATE_SEND_STOP: if (!req->stop) -- 2.19.2