Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1772614pxb; Thu, 7 Oct 2021 15:01:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhMtJsOmugN0Xq0qvP7vELxUtAmKWHXFQDILPqBN+dgX7nww9ggYerFov4HFFBy0DoiA5j X-Received: by 2002:a17:902:b909:b0:13a:2d8e:12bc with SMTP id bf9-20020a170902b90900b0013a2d8e12bcmr5936927plb.6.1633644098325; Thu, 07 Oct 2021 15:01:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633644098; cv=none; d=google.com; s=arc-20160816; b=Zih+6TO1hdQUb285Es7j3D6ug2alVj+RB5KUvNeckMT3OUfBJW7XDEvQ5HT2jpAhq1 a1f+a/EiuUsgLjUf8N1GAOFhSevmRl6IwOnIBRjosRcEwIrevTVYXUwLTzaH8sJy7xd0 F8W23ka5kPsDwXVcYl7cqLFmEE3xFGq7l3Zw5z/KctGsGTarFhB/slodPNr+eG0cy0Y0 eW37Whm3WV9ljEwr9au5C5MHX9E8GtThzSnkl0rFNGJDXGgQJcoyPIxzBxyRtypGGnbl PQdQX4yr93lbddJws5R6ntMC2so27DegYuC/9HH9gt36b/1axc77989/TvsfuK49QHdc rJDw== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BxQXv5Wdqd/j1qKpRqTPsBooLhfdiX01YNlbK77g7N4=; b=fvEMhyS6W2Qk5VNitFRitT3H8vqxgLA/WBWdS05ZmssJOFmt7aBoTbg0tc221LhfZY Op3fRPCjCdnYKNwGdokHgPUDo3aetHJb4i4ZaCl5/dfnIX+S1a+1uq/5tU4ekXMsBdSX jdNbSOo+2kAnzmm4PVDqVSUbW0SxTtHN++N4EFYTR4hJnbc+Tt244/lqDXDjkXKIxXdJ 6ETnwy6fZyShJgCiC4tDrb9iyqDGxb+uDZsFtJzgP5Rlb8E+3uzYKuLgU0SkN95JPrQV MLMDRtsiaJBvJOx5sY5QnK93GCTp2Rb78iKl4APqdt3gRoCDrbYOZToEQobxZgnfKL1s g0oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=B0LEwZQz; 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 f185si722304pgc.204.2021.10.07.15.01.24; Thu, 07 Oct 2021 15:01:38 -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=B0LEwZQz; 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 S242351AbhJGRba (ORCPT + 99 others); Thu, 7 Oct 2021 13:31:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242307AbhJGRb1 (ORCPT ); Thu, 7 Oct 2021 13:31:27 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51E45C061570; Thu, 7 Oct 2021 10:29:33 -0700 (PDT) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id C3871DDE; Thu, 7 Oct 2021 19:29:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1633627771; bh=bX70RVpHqIP8+Slj+fBenki+5BKZhXbz2i1z5b0/GWE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=B0LEwZQzwy4hLNE0zUPdQLPkr/DTU58lDjcHQnHI52JCbs6oqbVyjW1fy61uUtbHf BBsBUAisiJNxEqpa/EJGNvIke/rGoyYgIuZMi/NHpSueKJrtPcF/vB+hW0iqT0Er+Q w1yu6wNKyqz+9QXqJ1nGr49pQjzqDTHPbgCp/g3o= Date: Thu, 7 Oct 2021 20:29:21 +0300 From: Laurent Pinchart To: Jonathan Cameron Cc: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20211007171635.2f161739@jic23-huawei> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > > > Signed-off-by: Andy Shevchenko > > --- > > include/linux/list.h | 6 ++++-- > > 1 file changed, 4 insertions(+), 2 deletions(-) > > > > diff --git a/include/linux/list.h b/include/linux/list.h > > index f2af4b4aa4e9..5dc679b373da 100644 > > --- 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 :-) > > -#include > > -#include > > + > > +#include > > > > /* > > * Circular doubly linked list implementation. -- Regards, Laurent Pinchart