From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752037AbdJ3DEe (ORCPT ); Sun, 29 Oct 2017 23:04:34 -0400 Received: from omzsmtpe01.verizonbusiness.com ([199.249.25.210]:14586 "EHLO omzsmtpe01.verizonbusiness.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750929AbdJ3DEc (ORCPT ); Sun, 29 Oct 2017 23:04:32 -0400 From: "Levin, Alexander (Sasha Levin)" X-Host: pioneer.tdc.vzwcorp.com To: Florian Fainelli CC: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , Arnaldo Carvalho de Melo , Adrian Hunter , David Ahern , Jiri Olsa , Namhyung Kim , Wang Nan , William Cohen , Greg Kroah-Hartman Subject: Re: [PATCH stable-4.1.y] tools include: Add a __fallthrough statement Thread-Topic: [PATCH stable-4.1.y] tools include: Add a __fallthrough statement Thread-Index: AQHTUSu5l1d0I3idBUi6j5A4KcOmsw== Date: Mon, 30 Oct 2017 03:03:56 +0000 Message-ID: <20171030030354.fifvokpkcp4g2pdw@sasha-lappy> References: <20171027190558.31241-1-f.fainelli@gmail.com> In-Reply-To: <20171027190558.31241-1-f.fainelli@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: NeoMutt/20170113 (1.7.2) x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.144.60.250] Content-Type: text/plain; charset="us-ascii" Content-ID: MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by nfs id v9U34dPS026520 On Fri, Oct 27, 2017 at 12:05:58PM -0700, Florian Fainelli wrote: >From: Arnaldo Carvalho de Melo > >commit b5bf1733d6a391c4e90ea8f8468d83023be74a2a upstream. > >For cases where implicit fall through case labels are intended, >to let us inform that to gcc >= 7: > > CC /tmp/build/perf/util/string.o > util/string.c: In function 'perf_atoll': > util/string.c:22:7: error: this statement may fall through [-Werror=implicit-fallthrough=] > if (*p) > ^ > util/string.c:24:3: note: here > case '\0': > ^~~~ > >So we introduce: > > #define __fallthrough __attribute__ ((fallthrough)) > >And use it in such cases. Queued up, thanks! -- Thanks, Sasha