Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7096420imu; Mon, 21 Jan 2019 23:49:58 -0800 (PST) X-Google-Smtp-Source: ALg8bN6tPwcxVoEW4t57hfdMrXeg2G/HG7qOg4j0pmcf8ZgI6UNy321WRg1SSR/hUynPqGJZpt/z X-Received: by 2002:a63:f515:: with SMTP id w21mr30722463pgh.220.1548143397952; Mon, 21 Jan 2019 23:49:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548143397; cv=none; d=google.com; s=arc-20160816; b=f5Hvz9IU/znaM5Qc0pWvbpCVcpNLwNfXTGefB/CW1xm22WGo8Ga5MZRtKiEEb6luOJ lEIC6kiYr3JmowQnsSl+5HRFhZtI0m6GyC9MqxOR4pAYHI2dUbBb6IX/UtrnbZvhHQlb Ufe2ALsdOHku0eraRhWv8ExFnwO2//BrXw1NtxHnr/iupNvfrJIMIl+oSrz93Tm37/sH Mh7Exo83i89nLM1vDIJxZKQDzGmHKz6XOuMg/Lsmij1oRhk90C7aCnKnBehs3vrNnr5E r26eKQH8yxpgwRI4lLJGx+Zy4VgPgdaxvGO3Xo2cKjJTIRycFM1pGJyzNJSaKcJqawxU bClg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=C0ADUYQ/JbodKc0VnKOxqZ7sbZiQN1ji/+G/neIGxBM=; b=0Y5gKrKyPyP/YI8KMMh+dnlm9feox+Z4Yd9n/SUeOOpKKq9XVxHJnEBeHzcYXdhrlO dtULFFiWQ4dpeMjwBzOyUUMjxedWjV/kmZmhzn1XIAEqobpvgNqwEE36jhhMV8m2Njku Ig1qF1JwCUNUkekgzIB0WOOza7H8W/cfaCUDYrkiv7vdlmf1p45135WcpdAV/rcp8DM5 FwJ+ZKexybLy6rBK/5l7FW6EDiG/S7IXBq6m7aLYFmZSk8jOlrBVbYnWW33KGPe2OduB 6Y6lEXmxa/d0X5s3SgQVGiQH3wbyq/eZ6CHXj+v8WEzY6R5Fox7OpyhbAQDOskX/Qw0O LxcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A2Co8wGI; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m20si12663396pgk.323.2019.01.21.23.49.42; Mon, 21 Jan 2019 23:49:57 -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=@linaro.org header.s=google header.b=A2Co8wGI; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727476AbfAVHsa (ORCPT + 99 others); Tue, 22 Jan 2019 02:48:30 -0500 Received: from mail-ua1-f67.google.com ([209.85.222.67]:33259 "EHLO mail-ua1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727455AbfAVHs2 (ORCPT ); Tue, 22 Jan 2019 02:48:28 -0500 Received: by mail-ua1-f67.google.com with SMTP id t8so7775018uap.0 for ; Mon, 21 Jan 2019 23:48:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=C0ADUYQ/JbodKc0VnKOxqZ7sbZiQN1ji/+G/neIGxBM=; b=A2Co8wGI0hSgcoSrtO+TtKH5YLWKk+fXTXkk+y7Y830u1z8M5OqagjvxOqFZlLqJtw A/0aT5JEK75QMHc1rB/smASxTraBg/7JozHXGUV6pqCihl4i+tihFj8xi+O+8SOOJ5TP IVmP8s2aTN6F0qJBXkKcRaXPXKm8yP/o385zI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=C0ADUYQ/JbodKc0VnKOxqZ7sbZiQN1ji/+G/neIGxBM=; b=qD1GyZfPq6PHL3A7vohNlRQ4yDpU4V5e5+CRSDhWu8VNEboBP62OfJ4TTYxE7AIzSK Y+WuT8CRb8aLGCy4kX74/W154TjPtezmM5avfD157t/eM7zkhve8DYvI5I/+a4XGr+gR EWcKf3f1nK9g5r8gSCyCuhw7Dc7MRJZDWvEoKqdSQWUlrsKvzUt7iAUVnX8S6ywDfiFo o5x+0mRe9HW7yJam5D9aRUtjKSlPCYEw+yAnfNILYWV61hcjKYwEBVC4pLl/hFkV7xZz FS1sBHCBeb9ZCjSFQt3JRVc3Q08rKYVO9TOmM4OjPROgALwKAQeVmyrSy7IZbEOKURna d3sw== X-Gm-Message-State: AJcUukftDB9sz5KiEpgzBR+EtnYiyLKdxlPpUpdCCwmGEFmwsXTrHjoy htoNmHc/0wNJ2OwLmTF60StDG7FZq/JQBo748+HCi/8S X-Received: by 2002:ab0:31d5:: with SMTP id e21mr13316972uan.107.1548143306973; Mon, 21 Jan 2019 23:48:26 -0800 (PST) MIME-Version: 1.0 References: <20190114204211.21386-1-malat@debian.org> In-Reply-To: <20190114204211.21386-1-malat@debian.org> From: Ulf Hansson Date: Tue, 22 Jan 2019 08:47:51 +0100 Message-ID: Subject: Re: [PATCH] mmc: core: annotate implicit fall through To: Mathieu Malaterre Cc: "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 14 Jan 2019 at 21:42, Mathieu Malaterre wrote: > > 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 Applied for next, thanks! Kind regards Uffe > --- > 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 >