From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757611AbdJKRrW (ORCPT ); Wed, 11 Oct 2017 13:47:22 -0400 Received: from smtprelay0097.hostedemail.com ([216.40.44.97]:35015 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752314AbdJKRrT (ORCPT ); Wed, 11 Oct 2017 13:47:19 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 50,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::,RULES_HIT:41:355:379:541:599:967:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1539:1593:1594:1711:1730:1747:1777:1792:2393:2525:2553:2561:2564:2682:2685:2828:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3352:3622:3867:3868:3870:3871:3872:3873:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:5007:7576:7653:9025:10004:10400:10848:11232:11658:11914:12043:12048:12740:12760:12895:13019:13069:13311:13357:13439:14181:14659:14721:21080:21324:21627:30054:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: trail27_528dfd0e234b X-Filterd-Recvd-Size: 1849 Message-ID: <1507744033.3552.55.camel@perches.com> Subject: Re: [PATCH] rtl8xxxu: mark expected switch fall-throughs From: Joe Perches To: David Laight , "Gustavo A. R. Silva" , Jes Sorensen , Kalle Valo Cc: "linux-wireless@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Arnaldo Carvalho de Melo Date: Wed, 11 Oct 2017 10:47:13 -0700 In-Reply-To: <063D6719AE5E284EB5DD2968C1650D6DD009123C@AcuExch.aculab.com> References: <20171010193027.GA23108@embeddedor.com> <1507717237.3552.48.camel@perches.com> <063D6719AE5E284EB5DD2968C1650D6DD009123C@AcuExch.aculab.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.6-1ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2017-10-11 at 12:54 +0000, David Laight wrote: > From: Joe Perches > > Sent: 11 October 2017 11:21 > > On Tue, 2017-10-10 at 14:30 -0500, Gustavo A. R. Silva wrote: > > > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > > > where we are expecting to fall through. > > > > perhaps use Arnaldo's idea: > > > > https://lkml.org/lkml/2017/2/9/845 > > https://lkml.org/lkml/2017/2/10/485 > > gah, that is even uglier and requires a chase through > headers to find out what it means. Sure, if you think __fallthrough; isn't self-documenting. case foo; bar; __fallthrough; case baz; etc...