Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3971379imu; Mon, 14 Jan 2019 12:23:20 -0800 (PST) X-Google-Smtp-Source: ALg8bN7rwOw+gPFmgcwaZGvB3C8Pq0Ll22jl0pEFRc7fC/3VI92U3aB9qQsf5hnMToAMA4k6yN1v X-Received: by 2002:a63:5518:: with SMTP id j24mr295337pgb.208.1547497400306; Mon, 14 Jan 2019 12:23:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547497400; cv=none; d=google.com; s=arc-20160816; b=EnQ9cT6nSZ+N9RAj0z5Elom7ZKQbpTInHrPaSzfwE5KF4JJLjrSi3E23rP5tL9JCJz Bfvi4qpFkmd/CfeyF4Hk4UCfrBsI3XrfBp/InWYQYCJGUGAfUvaoEAZR2XwvJpQZ28t6 2yGTt6Pd6u9brkoktE9T8jUqiLnyuw+X3xC8TMmawC0IHFIfvsFrmQo787//NbtnUJfA z1jIH8KtDAxcu2cpqwFeeytYvdDixmA9Cfy7A9gLuciS2qxm1r2ogBlZn1MZTQSgwvCL /vQIjav+Jk8pf2Sni6ma0AnVp4A+D/Hszo+kg1ikw2Z0B4pc9gWrxtl2MXYZ9sYyglXU fRaA== 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=xeuM7QQA5Gxu6SkBFFLlqSjRQ6G2P+DWauTXJpVJV1w=; b=nJjCH4tjbDHQGJzZV1boSdhYBplnW6zYydCxQ0gx6F1dUSdQK4yRg0ZlxuTrOpw8Q9 zLKbsklL+o+Vx8BqMKzR6jnGEN7IWfFgTU0v9NvF/Ui2KLcYSZlt/XXk3bvoaRbBEfN3 nU6YGsWj69kuOrnLw+1oXVCukWUaRii/rnHBAsEP1WWpMjZO3OqtMV12SNIQPANPXETE /ZRABZQy8qJG0wCIp5w4YeloLJxQ3ide5i2GCaM0wmLoQCQf+N7v+b7DyBKn78D2APTm xntApMtbhM/gL1R2yvz+50IdE10cG8bfuv+0WA+1pSkeXxURK1JlEfAXTFsO7IFeBlBM UCKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=mQeO6nfG; 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 cd2si1260954plb.39.2019.01.14.12.23.04; Mon, 14 Jan 2019 12:23:20 -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=mQeO6nfG; 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 S1726865AbfANUV6 (ORCPT + 99 others); Mon, 14 Jan 2019 15:21:58 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:42498 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726760AbfANUV5 (ORCPT ); Mon, 14 Jan 2019 15:21:57 -0500 Received: by mail-wr1-f68.google.com with SMTP id q18so369111wrx.9 for ; Mon, 14 Jan 2019 12:21:56 -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=xeuM7QQA5Gxu6SkBFFLlqSjRQ6G2P+DWauTXJpVJV1w=; b=mQeO6nfGVl8RtKai4UIw+SvgF316Gs1QGCUr5nCPCbzGhRtX/RWaVER8/6lNnJfcka NJrKAC3qV6IBrN5dC4piPlzR2iAwVabacGUAU0Mop9XCAjYiD1sFdXq3zMUr+9v8RQWf xaumPgvF94dkABOzZ7d0ydXDvaZRWq9iKhn8EpXdoEauH8KQQVGXYRH7LFdEHlyV9jZb INFveEfs1OrNregNn3AzQSikf6BXQv0sh5sQVyh5Jad3JB9UUqdCr14Qrs4VxFKH9cYN b8rOmp3+Z3dmq0IY9fN/AHW3pasXObNnLF/FAXrVUwNnI5N6ArjrlmKLBzWeKK7DwRNy /VLw== 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=xeuM7QQA5Gxu6SkBFFLlqSjRQ6G2P+DWauTXJpVJV1w=; b=SPk4MKuI2mT98w+LF6qVz3Or/WCD36XRVRlldxbtJlOrYknJPjFZa5AEMD/3Qh0fiD fr3qnJOAZ+klQXDFvH2aBDPZ0IWvCh+PLtwJCRYcaGeqEwJPno1sSmdxSC9WfnYMsD4H Db5/9TVbLaaWYS7kgIe6/kwO5+Y2oo86Ig/KEsDaTdwx+OMGhb2vKTo4uxPPHq9WyMi6 e22XB6rHuN/QTTGvA3wyrmsW0hu4kkdzGuB+xKzfazD5uw96xHr+I+g+HSihorVPwy+y I9iIlfWhj9Sn+//07F6vitAEtJ1hbeVam3RilGwPhWpF41UZFnkn2VhrdnbIse4w9rl8 Csbg== X-Gm-Message-State: AJcUukcFwCOLFcQDPeADgYj5axk4HaqK/AuFQmlds9XIoWXP4xEC2MPv na4QPq87LWqUuQuaNarJscqsgmBv X-Received: by 2002:a05:6000:1c8:: with SMTP id t8mr192711wrx.146.1547497315993; Mon, 14 Jan 2019 12:21:55 -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 p139sm57427802wmd.31.2019.01.14.12.21.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 12:21:54 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 85B3C11422AD; Mon, 14 Jan 2019 21:21:53 +0100 (CET) From: Mathieu Malaterre To: Andrew Morton Cc: Mathieu Malaterre , linux-kernel@vger.kernel.org Subject: [PATCH] lib/cmdline.c:: annotate implicit fall throughs Date: Mon, 14 Jan 2019 21:21:42 +0100 Message-Id: <20190114202143.14130-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). 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 --- 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; -- 2.19.2