Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4008581imu; Mon, 14 Jan 2019 13:08:52 -0800 (PST) X-Google-Smtp-Source: ALg8bN5mmlBqVifnBZIYNdDLCieZxkAZEgeuLg6kq805Cehc15bZfIBs5gm2wvXcvW6s8cuukrUn X-Received: by 2002:a63:2222:: with SMTP id i34mr408302pgi.83.1547500131994; Mon, 14 Jan 2019 13:08:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547500131; cv=none; d=google.com; s=arc-20160816; b=j+11eNKKRu+ACV58/kwKhK3He5plrSHp7Ng1V6JnEwa6bSOD+0pMzY3pteqdYnKLy4 gLnKdijPwAIArv75pjifLpCJmaslenEluNxAXL6MxwipR9ykr3IucHqcUYoUhnwid8ES jXsrG23jwhLd81vVb2T2bwDb9fSMzNVi2+6V8jpgMPrrBC/nawM4hajHAKDjVxJQKsRq ofkNoOl/yoW5c+w3WO6aWemnPJ+VvR/XpTeIpxyT9aCbAB6Dnk0kn6zktniFMyDpmv4E j1TAxdFznquUGLD3P4XMHBUuiwO3zFfFzCScmCzMlisXj1eBF8l1846G4xsieiFbRgrz suow== 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=u1X8widkxjzFCt7qYP5uhHpGWaiDbn9FDeciXRrBbyc=; b=rkgPBGzXqmN8h69cD//zbnsX6dzGG5jYyMFoM2vSQ7HlgqxOmGbhIOShvApiA9sQeN ywtn7ngo8OO4vrdlMSZVujqZQ5h4jVd42NJ3i+uH/hOPm8piTVqvWWekDfEUcJAEMdum 6PrZ58Knahi2aK0YpBag1GCfzeHKJWUI3YNCkRUA7SzbjUZh1qpDQ/gtZAxn2lDepRcq G9Pk0WWLtD97Mfffm5LEagGblTgDolEComa/qyCcVFdUol0A3IoAD7bzWaFaGYDDHzmh xG6agJoeNosxAPE8QmLIivnby7Kx5ZFKEHj017zKXLZf/NOF/XR22ZwINcs/r1rC3XAk j7JQ== 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 63si1235559pfv.38.2019.01.14.13.08.36; Mon, 14 Jan 2019 13:08:51 -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 S1726927AbfANVHR (ORCPT + 99 others); Mon, 14 Jan 2019 16:07:17 -0500 Received: from gateway32.websitewelcome.com ([192.185.145.122]:15094 "EHLO gateway32.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726777AbfANVHR (ORCPT ); Mon, 14 Jan 2019 16:07:17 -0500 Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway32.websitewelcome.com (Postfix) with ESMTP id E8FC24E924 for ; Mon, 14 Jan 2019 15:07:16 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id j9S0g1CZK4FKpj9S0gRX3R; Mon, 14 Jan 2019 15:07:16 -0600 X-Authority-Reason: nr=8 Received: from [189.250.130.205] (port=50882 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 1gj9S0-000bzK-El; Mon, 14 Jan 2019 15:07:16 -0600 Subject: Re: [PATCH] lib/cmdline.c:: annotate implicit fall throughs To: Mathieu Malaterre , Andrew Morton Cc: linux-kernel@vger.kernel.org References: <20190114202143.14130-1-malat@debian.org> From: "Gustavo A. R. Silva" Message-ID: <5f05caf6-836e-bc2b-cd2b-009ed1073a5b@embeddedor.com> Date: Mon, 14 Jan 2019 15:07:12 -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: <20190114202143.14130-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: 1gj9S0-000bzK-El X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.43.131]) [189.250.130.205]:50882 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 6 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:21 PM, Mathieu Malaterre wrote: > There is a plan to build the kernel with -Wimplicit-fallthrough and > these places in the code produced warnings (W=1). Fix them up. > > This commit remove the following warnings: > > lib/cmdline.c:137:7: warning: this statement may fall through [-Wimplicit-fallthrough=] > lib/cmdline.c:140:7: warning: this statement may fall through [-Wimplicit-fallthrough=] > lib/cmdline.c:143:7: warning: this statement may fall through [-Wimplicit-fallthrough=] > lib/cmdline.c:146:7: warning: this statement may fall through [-Wimplicit-fallthrough=] > lib/cmdline.c:149:7: warning: this statement may fall through [-Wimplicit-fallthrough=] > > Signed-off-by: Mathieu Malaterre Acked-by: Gustavo A. R. Silva > --- > lib/cmdline.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/lib/cmdline.c b/lib/cmdline.c > index 171c19b6888e..dc59d6216318 100644 > --- a/lib/cmdline.c > +++ b/lib/cmdline.c > @@ -135,18 +135,23 @@ unsigned long long memparse(const char *ptr, char **retptr) > case 'E': > case 'e': > ret <<= 10; > + /* fall through */ > case 'P': > case 'p': > ret <<= 10; > + /* fall through */ > case 'T': > case 't': > ret <<= 10; > + /* fall through */ > case 'G': > case 'g': > ret <<= 10; > + /* fall through */ > case 'M': > case 'm': > ret <<= 10; > + /* fall through */ > case 'K': > case 'k': > ret <<= 10; >