From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D12E7C4363A for ; Thu, 8 Oct 2020 14:05:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 92D932184D for ; Thu, 8 Oct 2020 14:05:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730428AbgJHOFq (ORCPT ); Thu, 8 Oct 2020 10:05:46 -0400 Received: from verein.lst.de ([213.95.11.211]:40641 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729840AbgJHOFp (ORCPT ); Thu, 8 Oct 2020 10:05:45 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 71C9067373; Thu, 8 Oct 2020 16:05:42 +0200 (CEST) Date: Thu, 8 Oct 2020 16:05:42 +0200 From: Christoph Hellwig To: Bartosz Golaszewski Cc: Christoph Hellwig , Joel Becker , Linux Kernel Mailing List , Bartosz Golaszewski Subject: Re: [PATCH 02/12] samples: configfs: order includes alphabetically Message-ID: <20201008140542.GA10275@lst.de> References: <20200924124526.17365-1-brgl@bgdev.pl> <20200924124526.17365-3-brgl@bgdev.pl> <20201007134323.GA764@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 08, 2020 at 03:23:11PM +0200, Bartosz Golaszewski wrote: > On Wed, Oct 7, 2020 at 3:43 PM Christoph Hellwig wrote: > > > > On Thu, Sep 24, 2020 at 02:45:16PM +0200, Bartosz Golaszewski wrote: > > > From: Bartosz Golaszewski > > > > > > The preferred coding style is to order all includes alphabetically for > > > improved readability. There's no need for the configfs header to come > > > last. > > > > Is it? People seem to have all kinds of weird opinions, but I don't > > think any ordering really makes sense. What does make sense it dropping > > the pointless empty line, so I've folded that into the next patch. > > This is not just a baseless opinion, keeping headers sorted clearly > has an advantage: you more easily avoid duplicating includes, you see > right away if a header is already included or not. Many maintainers > will require ordering in new patches. Various maintainers required all kind of crap. I've not seen one I deal with require alphabetic ordering, but I've seen the equally insane reverse christmas tree. > It's your call but it's better code with not much effort. No, it is not in any quantifyable way better. It is different and you might prefer that, but in the end change it is just churn.