Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4026618imu; Mon, 14 Jan 2019 13:30:30 -0800 (PST) X-Google-Smtp-Source: ALg8bN6zWxNE2mn+3vXIY9eMzS0rzocaLJmIkIuZuzjAAFEAiLCOA0j8NNB1ZF0Ep8fBk+AslGuZ X-Received: by 2002:a63:ea15:: with SMTP id c21mr465179pgi.361.1547501430687; Mon, 14 Jan 2019 13:30:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547501430; cv=none; d=google.com; s=arc-20160816; b=KRIpvstI2oRnELUBJfg6rUK0IeYFbcCbEi0g0Tr9FID9fac4yE6shk0XVtXIOc6QOr gCnZi3TeNVsXv7f7NWHSvcvAbesS8KUMY2ytorgblwBuB6KEUS3DoSn6MdXhNwByEQQ3 KiKm6mJUErwI52AdMBILAoSIQnDnUYdSfOqwwOhyyaEJkhiWrPzrxXTpsEoxSGbBGwnK CyO8jXexTyWNC0kAc+0TuupXeUUz1FmveJCTamcuVTxjNcQDQ1uXEjV1gxh2Cz58SEDD TaLncoF1o+qVfmtXpiWzLCzcJxGNrGEbcR0d5zPcy/E0QCKgJzsFkX8+FMYPELO6saYp 6AIg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=SDPWP60IZpypT0OVnFH6Ab1TG6SZlvpvwf9SjZcD1nw=; b=EWxeLxmP+C6aOdlsMxntb6d0trpSfvQz0EGJv0cEd40rh8KEPvQmYv9yT2zsrY9HO/ 3Mm/NXvG+5TQ4xQnfMSopOlaEK8AbcNr1SxrU9Dx2h3mDZH9baocxChmg+f4LBr17F3J WxCLHpkv2Xdfdc5ebo6RWiR6DltP2IxMaFmEYb44eqm8AVVOErxzLlrhjEtMGVALyo4Q dwxdphUMMPQ/BCIkxpP5jBeO36wx8GVIzd+dUqJlD+B3t6ttWx5Q4r8IEYyuiC5SHEWv 9Rh832rcrfZKgcb52L3C4AIfv5Xu1gUhlqsZpByhPVsYLKYRKXbpJeYCa63Cpnz0+hbB IsHA== ARC-Authentication-Results: i=1; mx.google.com; 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 v3si1206511pga.556.2019.01.14.13.30.14; Mon, 14 Jan 2019 13:30:30 -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; 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 S1726998AbfANV3L (ORCPT + 99 others); Mon, 14 Jan 2019 16:29:11 -0500 Received: from gateway34.websitewelcome.com ([192.185.148.109]:36220 "EHLO gateway34.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726809AbfANV3L (ORCPT ); Mon, 14 Jan 2019 16:29:11 -0500 Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway34.websitewelcome.com (Postfix) with ESMTP id DFE4448DB08 for ; Mon, 14 Jan 2019 15:29:10 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id j9nCgUD2ziQerj9nCgUZhM; Mon, 14 Jan 2019 15:29:10 -0600 X-Authority-Reason: nr=8 Received: from [189.250.130.205] (port=51342 helo=[192.168.43.131]) by gator4166.hostgator.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gj9nC-000nhP-1k; Mon, 14 Jan 2019 15:29:10 -0600 Subject: Re: [PATCH] mmc: core: annotate implicit fall through To: Mathieu Malaterre , Ulf Hansson Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190114204211.21386-1-malat@debian.org> From: "Gustavo A. R. Silva" Message-ID: Date: Mon, 14 Jan 2019 15:29:05 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20190114204211.21386-1-malat@debian.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 189.250.130.205 X-Source-L: No X-Exim-ID: 1gj9nC-000nhP-1k X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.43.131]) [189.250.130.205]:51342 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 25 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/14/19 2:42 PM, 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 Acked-by: Gustavo A. R. Silva Thanks, Mathieu. > --- > 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; >