From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757485AbdJKNe4 (ORCPT ); Wed, 11 Oct 2017 09:34:56 -0400 Received: from mail-qt0-f171.google.com ([209.85.216.171]:55145 "EHLO mail-qt0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752123AbdJKNey (ORCPT ); Wed, 11 Oct 2017 09:34:54 -0400 X-Google-Smtp-Source: AOwi7QDhgwmsSkvak9whPALuR1hvfla6V/Nv59vOEyg4c/wOUSvtaUKee/ka2DDtZfSh3mazWecoHw== From: Jes Sorensen X-Google-Original-From: Jes Sorensen Subject: Re: [PATCH] rtl8xxxu: mark expected switch fall-throughs To: Kalle Valo Cc: "Gustavo A. R. Silva" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20171010193027.GA23108@embeddedor.com> <5f5f0f54-d901-90be-9025-0a1c4b909368@gmail.com> <87o9peqdo2.fsf@kamboji.qca.qualcomm.com> Message-ID: Date: Wed, 11 Oct 2017 09:34:51 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <87o9peqdo2.fsf@kamboji.qca.qualcomm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/11/2017 04:41 AM, Kalle Valo wrote: > Jes Sorensen writes: > >> On 10/10/2017 03:30 PM, Gustavo A. R. Silva wrote: >>> In preparation to enabling -Wimplicit-fallthrough, mark switch cases >>> where we are expecting to fall through. >> >> While this isn't harmful, to me this looks like pointless patch churn >> for zero gain and it's just ugly. > > In general I find it useful to mark fall through cases. And it's just a > comment with two words, so they cannot hurt your eyes that much. I don't see them being harmful in the code, but I don't see them of much use either. If it happened as part of natural code development, fine. My objection is to people running around doing this systematically causing patch churn for little to zero gain. Jes