Received: by 10.223.185.116 with SMTP id b49csp1137049wrg; Fri, 16 Feb 2018 13:10:06 -0800 (PST) X-Google-Smtp-Source: AH8x22568JRK4UgBbzPSRVF6IRioOSw8ce49yf4Jl3HNeuaKhHteiOv4Z3nkhDRDarvBpb7wwi+E X-Received: by 10.98.105.199 with SMTP id e190mr7305060pfc.70.1518815406426; Fri, 16 Feb 2018 13:10:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518815406; cv=none; d=google.com; s=arc-20160816; b=0r63Tr/IKvoMhTm3xT2x7Md3c6J7FFyqSiSCWvotzNOg70F3Cj3pQ92vUlKEQD6Lns vxa4NrCAT4WPlW8ko04uc+QO+3gdMbv6WGMYsshLddkJPrMqyzcsO4EAudr1WAttPDob YecAejmAc3yxesCfpztKTN4lZ5soK/H2ylHo91+kAkhc2EVA0i23opgAgiIJbbYGHHZQ oZKY1zvZNPrimrygzzRaliqoUCNBEiPMyNcoLCn2f7dvq7lNVOj27UpSwFqIz627/Zsl g5WYbkL2SyD5FPj/XcZZ+AEmlJtaHDtXEMyF3z908mOCbCDA3zuSvy6IQYVJXT2V8ehl ySXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=OyhVlxCuBhUPk6JxXG+qDouxSlkannHDUT6i62iX/2U=; b=Xn/we9BpsiJHAilOz1QIPcbGtER8DFaUglY7BPsscuRzZ92ocUInFuTRAwn4Cx1PZ+ uaHMjoFxqo0KaL5Gav6xC4V1iL+X7P0l3ztXZY1LU6dx4aOjnxMFDVCObAdDHwWv+Rud H6+EK1Lv/qQ2EuB8i0Zl7bnRSZNAt99WqUhGdrC5Wn7RdaIjdlXPEJnT74dVY7n7hF0d Ky1oRdHEK/t8X1NpZfLq956E6HNUDYwmRPcAgPCWIHR+Kg4zdVzRHdlO8eMN3qxBlWG2 ep/tm31F3iEP2I/ZOK7j0C8x75RgG1q0TunGQIIp8wNskVg1IJbpnUvNLT5iX0lL9tv5 z10A== 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 o7-v6si5794379pll.332.2018.02.16.13.09.52; Fri, 16 Feb 2018 13:10:06 -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 S1751134AbeBPVIX (ORCPT + 99 others); Fri, 16 Feb 2018 16:08:23 -0500 Received: from mga01.intel.com ([192.55.52.88]:49335 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750727AbeBPVHT (ORCPT ); Fri, 16 Feb 2018 16:07:19 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Feb 2018 13:07:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,520,1511856000"; d="scan'208";a="18487411" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga008.fm.intel.com with ESMTP; 16 Feb 2018 13:07:16 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 558A23FA; Fri, 16 Feb 2018 23:07:13 +0200 (EET) From: Andy Shevchenko To: "Tobin C . Harding" , linux@rasmusvillemoes.dk, Petr Mladek , Joe Perches , linux-kernel@vger.kernel.org, Andrew Morton Cc: Andy Shevchenko Subject: [PATCH v2 9/9] lib/vsprintf: Mark expected switch fall-through Date: Fri, 16 Feb 2018 23:07:11 +0200 Message-Id: <20180216210711.79901-9-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180216210711.79901-1-andriy.shevchenko@linux.intel.com> References: <20180216210711.79901-1-andriy.shevchenko@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Andy Shevchenko --- lib/vsprintf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/vsprintf.c b/lib/vsprintf.c index a49da00b79e7..28d7aca6a805 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -2081,6 +2081,7 @@ int format_decode(const char *fmt, struct printf_spec *spec) case 'x': spec->flags |= SMALL; + /* fall through */ case 'X': spec->base = 16; @@ -3035,8 +3036,10 @@ int vsscanf(const char *buf, const char *fmt, va_list args) break; case 'i': base = 0; + /* fall through */ case 'd': is_sign = true; + /* fall through */ case 'u': break; case '%': -- 2.15.1