Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2890662pxb; Fri, 8 Oct 2021 18:23:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytIM9DiBRMZxFX/EqWC6fA6idFl2Q+RfXraJxVJh9T8aCGBMr4DU3MLYB7uoUGSer8iScr X-Received: by 2002:a17:90b:3e8d:: with SMTP id rj13mr15256528pjb.183.1633742637039; Fri, 08 Oct 2021 18:23:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633742637; cv=none; d=google.com; s=arc-20160816; b=QHBDj2OosM3WLdudHv/dH6nWk7wLNA62K16X1tPIflE9DThmEx1xrYbkmBRqusamLQ JS2TJZwBAnQRzFOJrw16XGbrtfClw3zwDJ+pSsToqDdzglKhj5DYMC2h9qlXcRtGLytk wZtCO8MpHaM0zd2mL1k1z3fFpEO3UUQ3B77a6qSl19z/tYoo+JoBh6rDSgnABHofMo0t k7ctkHnVYW3cRfxqcOEicIwr1cjmOXsKy9uCp3W3Lt8i7ht8Cp0V71TxuZTshhNWA3DZ H1zjmoyCiLdb5Kxb474tT9tqgGvC89Pq/bAgDt2HjLD/Ea3Tl9HCEPuzI0ZiIAEL5ig/ +mbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=To1K5bu7eDFOtQGaqYwCLlq0QktvJO/U4JQRwmwgeMM=; b=fitwiWpDnfALGO7lYxiFg7pU+r2GmAsyzFS5nL/4BvqJ3RchS2br6QpNMSkfO3jO7K IBRq9fOA1PQS1DfuKTP1Zas4RO2KzMpQPIhRKdPPr5Y0GwXUL9m4EsQz3xbQh7ZWVNqo M8gaBV2eEegN8myOlMFEWAIcz1etoTdykcDbmCtktKLQHPeqVk94DoSWIjJP0HEuypKA Iu22k4wO1wcu1LjPYaDtql0ut8beb0UT/tQOnoSUGPlJXqNFKiec5hWon8tK0Yxj4oBl CghVoSJ3VO0ujgqynKDgmPybxWBOQEtwT5XkHqSYuSn49F+FA8+ffX5eQwQhV6vuupnA mLYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=V2+lXNcU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n2si1154689pgp.319.2021.10.08.18.23.44; Fri, 08 Oct 2021 18:23:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=V2+lXNcU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232196AbhJIBXf (ORCPT + 99 others); Fri, 8 Oct 2021 21:23:35 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:34020 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232001AbhJIBXf (ORCPT ); Fri, 8 Oct 2021 21:23:35 -0400 Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 0DB8B8C4; Sat, 9 Oct 2021 03:21:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1633742497; bh=Kj1tkNvZVt6lDT4dzXil0klr2TSUKdwaLvIsSAQg7JU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=V2+lXNcUqHiXF86Aj1ZZtrhNmvqxrzV/gzXjfDaAMmipiCOyBNe32Wk83kM1yk/EX RiTy0EloHWX/ybYFygn8alYc6Min6s8Wn2amGcSyR9z1hwU0jEfzuUqSHah3/D+UFr KmKxFcy1jG+60ry6oouYjh8ZCxYdWlS5bG2kZt5w= Date: Sat, 9 Oct 2021 04:21:26 +0300 From: Laurent Pinchart To: Joe Perches Cc: Jonathan Cameron , Andy Shevchenko , Brendan Higgins , Peter Zijlstra , Thomas Gleixner , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-media@vger.kernel.org, Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng , Sakari Ailus , Mauro Carvalho Chehab , Andrew Morton , Miguel Ojeda , linux@rasmusvillemoes.dk, Thorsten Leemhuis Subject: Re: [PATCH v4 4/7] list.h: Replace kernel.h with the necessary inclusions Message-ID: References: <20211007154407.29746-1-andriy.shevchenko@linux.intel.com> <20211007154407.29746-5-andriy.shevchenko@linux.intel.com> <20211007171635.2f161739@jic23-huawei> <5b6dc5760b42af6c07c8ffc789466be7d7da358e.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5b6dc5760b42af6c07c8ffc789466be7d7da358e.camel@perches.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 08, 2021 at 05:59:18PM -0700, Joe Perches wrote: > On Thu, 2021-10-07 at 20:29 +0300, Laurent Pinchart wrote: > > On Thu, Oct 07, 2021 at 05:16:35PM +0100, Jonathan Cameron wrote: > > > On Thu, 7 Oct 2021 18:44:04 +0300 Andy Shevchenko wrote: > > > > When kernel.h is used in the headers it adds a lot into dependency hell, > > > > especially when there are circular dependencies are involved. > > > > > > > > Replace kernel.h inclusion with the list of what is really being used. > [] > > > > diff --git a/include/linux/list.h b/include/linux/list.h > [] > > > > @@ -2,11 +2,13 @@ > > > >  #ifndef _LINUX_LIST_H > > > >  #define _LINUX_LIST_H > > > > > > > > +#include > > > > +#include > > > >  #include > > > >  #include > > > >  #include > > > > > > Is there a reason you didn't quite sort this into alphabetical order? > > > > On a side note, if someone with perle knowledge could add a checkpatch > > warning for this, I think it would be very nice. I'm a bit tired of > > asking for alphabetical order in reviews :-) > > As are people that want reverse christmas tree. > Neither of which I will do as I think both are poor form at best. Reverse xmas tree order is just a matter of style, while alphabetical ordering of headers helps catching duplicate, including when merging branches that both add the same header in different locations. I thus think there's a technical value to it. > If you want, this was a checkpatch reverse christmas tree attempt, > as that was more common to some. > > https://lore.kernel.org/lkml/1478242438.1924.31.camel@perches.com/ -- Regards, Laurent Pinchart