Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3988349imu; Mon, 14 Jan 2019 12:45:02 -0800 (PST) X-Google-Smtp-Source: ALg8bN7Xl5YXKs/BUF8gmMoGdAvBGQnOXdbPzAE8UVgtINvcQ5FAfNIag93mQOrOlKu6cjzhxc26 X-Received: by 2002:a63:9402:: with SMTP id m2mr346413pge.93.1547498702694; Mon, 14 Jan 2019 12:45:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547498702; cv=none; d=google.com; s=arc-20160816; b=MtH6tvIYhejPPNQQ1UnWByEG4RkHOI4ZGNGzceNDCgWZtm02LeVfCnKhK+Coe9/t8v bY27BErygk88DbqyMdZKVbPx9SKNQ60n9W67jTnzBtW8fvB+5p22grajUk53o91sjd1g DW52LXiex2nFpZO63KZFslHjwNV+leulODe3bd9GWlE7lW/+Gtw4yTCiSqcXK2r7ON6Z rP1fe00YoDmQWD/NY+Uhj1MtK4C+qi5oMrs0F2gNyHvxXyAG2csgmUrD0kAS36b/awr0 gchRFdz0GSRBXKKJTi8raaE29pCTBObbYs+qmbtAoL2pxLJ/8nzffcDWY7IDXsaBu9q9 HWwA== 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=MLWXQwLvr9hb7Fk+ZmcM5gEYv8XZb3b6HMKxsoSdYW8=; b=k+EIiPNzKJcIoUH9QY5BTfVcIQdxEGB2sbh/T/X5iDoZPV6vFl6Kb8fxp3RbHl3QqJ qg/AuFO7IOOBXkI+mu0JH+tlP9LqhYZm+2qHhZlqlp+aPbvwEfjhn+JTwfGtXNgdxQdp aRitIiQNrn5pbbHQnWrfIzzmyBR2IBO4D0Q93pzMAYrbSYWD0+80wImz4c9K7sFARkyD 9vGtrrMSZfjOas94HNfWrTgvqLJJAsLkF1sVDLO+zqZTLvCaZR4ncEamNrSZDkaVy6ah ppmHwRWExuakzCDgqWUY3Hw4kY3Yf+jzmDqocRUd366N72RIw6DUK+iIugvjU9rrEtco yBNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=CNszd5RX; 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 r18si1162822pls.115.2019.01.14.12.44.47; Mon, 14 Jan 2019 12:45:02 -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=CNszd5RX; 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 S1727089AbfANUmR (ORCPT + 99 others); Mon, 14 Jan 2019 15:42:17 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:51190 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726777AbfANUmR (ORCPT ); Mon, 14 Jan 2019 15:42:17 -0500 Received: by mail-wm1-f65.google.com with SMTP id n190so1074214wmd.0; Mon, 14 Jan 2019 12:42:16 -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=MLWXQwLvr9hb7Fk+ZmcM5gEYv8XZb3b6HMKxsoSdYW8=; b=CNszd5RXY93a697cxSO0ftos0HSjDQxl3iKIfM9c1hDiHXB0iUBh+pYugzJfL85dwq fvk5iNH7LSqulFxCfvlpJoke2W31lQY0jJlSh9ZCE6MYdd3XQPDQexrXFaW7iwahCd+j 4kgqeGJ2nrgB881jlJAuH7jQa+uvH4row4t4FDpj1b7lLzbtrYp0LD1vkNvhSiOV10ex /upGzibAYAvsgBbc1AAvojBQ/C8RFhVTYyl/Dhi3qaHuKwJ+GH/oByQbYZ/UB5oD+B+Q 3nFDXwb7eAbFiBpD7px8JwlS3blNxoCDhnUByX15FnVKYZGMaoKDHyktcoNs5r8h5bVo GXRg== 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=MLWXQwLvr9hb7Fk+ZmcM5gEYv8XZb3b6HMKxsoSdYW8=; b=tyfYFtjs+mI864JJg2LyoNQrdT+ClsSG+hq5WMuY3AKIvINvTVscNk6r8nBikyZzvb NMm2/ZxvyPzprWRddQTxodGf/4y0TxMjIcoZCEy4SJHcp5mcSyHdTOTSycclb7qZycDB HKVWPhXx8DzRgB1+EQBtXYbjx0saz+7F9YarVh7MGGzjgfRBF7uzENY7UGCEG1Urb94C RgKegMRJHKvnsYuPHHJOomDItojtFRQyCXUhwKceE0ngIcIpwwp+RuBiLdzcW5sgyij7 JblkgtxkTneT0BAFpnyxUlo9jUbjdNPpP60WiuiDdQ/uFuPPSOBMBYJ6eELIcjUUOPbN GnVQ== X-Gm-Message-State: AJcUukcl/T5Ilk1OuPosrj+NoEt989xbnrpPDb5LAZ8vtSb6nsIZqHtQ iGl2Xsw5NjMEsO1hohxXZCg36iCb X-Received: by 2002:a7b:ce8e:: with SMTP id q14mr756704wmj.10.1547498535257; Mon, 14 Jan 2019 12:42:15 -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 e17sm123327308wri.36.2019.01.14.12.42.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 12:42:14 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 6488511422AD; Mon, 14 Jan 2019 21:42:13 +0100 (CET) From: Mathieu Malaterre To: Ulf Hansson Cc: Mathieu Malaterre , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] mmc: core: annotate implicit fall through Date: Mon, 14 Jan 2019 21:42:11 +0100 Message-Id: <20190114204211.21386-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 this place in the code produced a warning (W=1). In this particular case rewrote the comment to start with the string "fall through", so as to match the regular expression expected by GCC. Truncate the comment slightly to fit the max line length of 80 characters. This commit remove the following warning: drivers/mmc/core/host.c:196:14: warning: this statement may fall through [-Wimplicit-fallthrough=] Signed-off-by: Mathieu Malaterre --- drivers/mmc/core/host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c index f57f5de54206..0052d6fed7c8 100644 --- a/drivers/mmc/core/host.c +++ b/drivers/mmc/core/host.c @@ -194,7 +194,7 @@ int mmc_of_parse(struct mmc_host *host) switch (bus_width) { case 8: host->caps |= MMC_CAP_8_BIT_DATA; - /* Hosts capable of 8-bit transfers can also do 4 bits */ + /* fall through - Hosts capable of 8-bit can also do 4 bits */ case 4: host->caps |= MMC_CAP_4_BIT_DATA; break; -- 2.19.2