Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1518846pxb; Thu, 7 Oct 2021 09:17:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwldA0F3Pc/bmFNUnVE/GqK6J6gg1HLOSsOy+Y1GQyMQJGNrpMCg/FbU5Z530TXbZcl5ph1 X-Received: by 2002:a17:902:76c3:b0:13c:957d:561f with SMTP id j3-20020a17090276c300b0013c957d561fmr4553651plt.27.1633623475775; Thu, 07 Oct 2021 09:17:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633623475; cv=none; d=google.com; s=arc-20160816; b=T/4cS380MiDAVmwjt+JZBP60AMDR1f1MGjD/g8vrFyWTJos4/JHRXEuo50lDyCb5Dq b8sVq2GpRDc5s0jupZAalOV0Wi7LWi5PFul2nihNFnllfM59P//b+DiwUjnZKbLnzX5R CybylJbST8u+XxossOPc7IzP8KfhdT8Gi8VTVlz0/7nnT3805hxZMHonU3iBXBz2EoeM SjkLeRdvrT/D5TvdDJVois8hEEeVqpmyzM7BPp49DSKAqJNMk8FgU6jXLzK2Qt2LQ69k PvfbMuwAJ5R/8HwLJ+e02QrcF0l3xHgttWioKHQ73/t/6p/J3SDud3K+FlyT1Ed5j2hq hc0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=bxvOHjZiTFFKpF0ceP+6f6h705TUSxKw3m+UWEi3A5I=; b=L/4kf3+/lbEY8NPD0mT0JvSY6ehLB2PttaBk4o4jRYfs12jDyv2Ymsdr6fuq9UrMkB CIVrSlun/kwyNDDwMKdsZXZezCvttojWO45QdQ33cgaOUn80JxJZcrIvk57MXoBju5+P U836mKq52R/Co4w5M269coXpXul+Pzw2HbhPmpqVU9dBfJgHbdUl6k0+IOQm897AOxql TlTIk62EGF0vN2U9EzG9q2NYgmmopszjxPmoC/U9yCn1Krb29/fhAD6ylExDYckI02dr 1JeA1VWP71vVmfGlDqlsgcc+Wn4XLBk00coivrSRdzWzJLUBughjgEDqCHnPfE4hh0to xYaw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a4si48413plp.147.2021.10.07.09.17.41; Thu, 07 Oct 2021 09:17:55 -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; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242405AbhJGQOd (ORCPT + 99 others); Thu, 7 Oct 2021 12:14:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:60814 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231366AbhJGQO3 (ORCPT ); Thu, 7 Oct 2021 12:14:29 -0400 Received: from jic23-huawei (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 911A461074; Thu, 7 Oct 2021 16:12:31 +0000 (UTC) Date: Thu, 7 Oct 2021 17:16:35 +0100 From: Jonathan Cameron To: Andy Shevchenko Cc: 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 , Laurent Pinchart , 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: <20211007171635.2f161739@jic23-huawei> In-Reply-To: <20211007154407.29746-5-andriy.shevchenko@linux.intel.com> References: <20211007154407.29746-1-andriy.shevchenko@linux.intel.com> <20211007154407.29746-5-andriy.shevchenko@linux.intel.com> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > -#include > -#include > + > +#include > > /* > * Circular doubly linked list implementation.