Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp400745ima; Wed, 24 Oct 2018 03:15:40 -0700 (PDT) X-Google-Smtp-Source: AJdET5cq3xVPij9iIi5F+BR54NVKFfam9qcNDUJHfFyDMIeAkbDqn5zlonv0dekfeuIwSdlvMyZl X-Received: by 2002:a63:7986:: with SMTP id u128-v6mr1965204pgc.111.1540376140575; Wed, 24 Oct 2018 03:15:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540376140; cv=none; d=google.com; s=arc-20160816; b=NHzH0wTXehshL7LYjj+2oF9Hzk4nZU6yEaWdFkRWgy+KdXoc6oygl6WsC0nVzWYbiI eKWdkt2ak0CQQvwAAC17RDtVanHl8qf7aNbHt3+w5uyfAh2W+lIOx8PKRDbdbZi3AlWy VCYUf5j7HWUGwMlBf/9wTj1QNPgysHLFV1QBTbi5s43GHvPlWLJf0omv0ux3bpz4p/1/ JxWYt2tftxcv/PkCH33Kl0nxROeSqurrVq3T+tvGvMIYFXs9ddGI59b2PhfZYfagykmV 7InRp3/RO4TzwYkwgxR1VEbbUZhoKA/AvZ6qv3CG2MCTGCb1NMUtMwwt0qs/2/4MCuPB uX/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=oB4LPrdsC6prsPiTM2k551qqwPKIEW5onZ65Xobmi9s=; b=b16jrHOF4/nUefWY/80lk8D23e7tLG2D8zkmNLS54ri0xyFz5lJ6AvOf/ITIb/Cndq aBN4ZJZHqsg01mXpiBPsdqLC3qTKuEFxo3iDJCbnokkkPNw0+Cl7/3wmyTNcLGwrLWm0 mVMs0l4yk17urSSyl721nO7p6ZCE7bGLGlROIgA4CIOjF1MCQz6RArARUo0YPjVCPM8N dulWqjp0K3pmqnHRyxQ0fE4hZXFDMkcQ//dIq4WT+RMkDtYnDrzdIWVkugGvKruK91MV EVOIPCDXMgzbn8BzFLcr4fZWinUktrMEaQEj+MF9kd+nMSopoUqCLep7KFGOdoyY3T1S H2Kg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3-v6si4414467plh.124.2018.10.24.03.15.24; Wed, 24 Oct 2018 03:15:40 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727000AbeJXSlO (ORCPT + 99 others); Wed, 24 Oct 2018 14:41:14 -0400 Received: from mga09.intel.com ([134.134.136.24]:34650 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726301AbeJXSlO (ORCPT ); Wed, 24 Oct 2018 14:41:14 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Oct 2018 03:13:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,420,1534834800"; d="scan'208";a="98120672" Received: from smile.fi.intel.com (HELO smile) ([10.237.72.86]) by fmsmga002.fm.intel.com with ESMTP; 24 Oct 2018 03:13:41 -0700 Received: from andy by smile with local (Exim 4.91) (envelope-from ) id 1gFGAW-0003cn-58; Wed, 24 Oct 2018 13:13:40 +0300 Date: Wed, 24 Oct 2018 13:13:40 +0300 From: Andy Shevchenko To: Joe Perches Cc: Jacek Anaszewski , Dan O'Donovan , linux-kernel@vger.kernel.org, Mika Westerberg , Heikki Krogerus , Lee Jones , Linus Walleij , Pavel Machek , linux-gpio@vger.kernel.org, linux-leds@vger.kernel.org, Carlos Iglesias , Javier Arteaga Subject: Re: [PATCH v2 2/3] leds: upboard: Add LED support Message-ID: <20181024101340.GR10650@smile.fi.intel.com> References: <20180421085009.28773-1-javier@emutex.com> <1539969334-24577-1-git-send-email-dan@emutex.com> <1539969334-24577-3-git-send-email-dan@emutex.com> <16591e6735e32baad10f083c688119ce79d12911.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16591e6735e32baad10f083c688119ce79d12911.camel@perches.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 23, 2018 at 12:23:13PM -0700, Joe Perches wrote: > On Tue, 2018-10-23 at 20:50 +0200, Jacek Anaszewski wrote: > > > diff --git a/drivers/leds/leds-upboard.c b/drivers/leds/leds-upboard.c > > > new file mode 100644 > > > index 0000000..34a6973 > > > --- /dev/null > > > +++ b/drivers/leds/leds-upboard.c > > > @@ -0,0 +1,104 @@ > [] > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > > The last include should go first to keep alphabetical order. > > There is no accepted single kernel style for #include > file ordering. There is a rule of (subtly) better maintenance. If you need to add / remove some header later in a (long) list of unordered list, it would be error prone. Just run `make includecheck` and see the result. I personally fixed some header duplications and removal of init.h in unsorted lists, which have been missed by some reasons. > drivers/leds does not use a single style nor is this > particular variant documented anywhere to my knowledge. Neither does kernel in general. But kernel is evolving and styles also. When you do such statement consider to divide by a time period when certain code was pushed to upstream. > Until such a time when either a local preferred style > document or a treewide preferred style exists, please > stop asking people to modify #include ordering for > various styles like reverse christmas tree by length, > alphabetic ordering, or other individual styles. Why? It makes a sense to ask for new code (and even for patches against old one in some cases). > My preferred style would always have kernel.h first > as that may help with precompiled headers and overall > kernel compilation time one day. How ordering would screw this up? -- With Best Regards, Andy Shevchenko