Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2878671pxb; Fri, 8 Oct 2021 18:04:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJya3Kv88T4UMelqqLZEH6ODUrk8lIuz18ROkBb18JDYbB5cIkSfzn5Dxi/j3Xr/sR2Ez42O X-Received: by 2002:a17:902:a38b:b0:13d:9c41:92ec with SMTP id x11-20020a170902a38b00b0013d9c4192ecmr12550474pla.39.1633741483770; Fri, 08 Oct 2021 18:04:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633741483; cv=none; d=google.com; s=arc-20160816; b=DuVBzlr+ItOL0quEX8cGS8lXJl49wdhZlGd0jOpFKYlwQQUZdTo865AP6WOOTQV4xf XHa33DINpuKZAI+nL53O0p5Iv68gimOkeevg3QChwQ9yp32k3tnYE1L2DzzvHKpATN/C XSGd7JEDNXBa4YiueH/5O3/YJIUCNepWmbB5T7IrIIpZz46n0xasIFkBUzOpFvcjU2Rw 6gJwIqtwDmebQfDfiCyK/Vu+iqObjl5c2N+Hw0zqPg629+h/x0wsDErb2EI9kEGq26Q7 z/Pqlko/0MzxU6EHqAEWHCi1lST9ZBtdt242YyI0RKbrPpnqTVN7TgvHXSsKdCp7dLJ3 eaRQ== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=RcqkCy9DKenfmpQynzySF1l+SH3teTiHWkMU7Wu2SU0=; b=NMbhHFQ7IqZM4frNpIXtV6YuO0VqyY5w6ZqAL9ltenZbtyBA6zQu/991wMtfrlFzdx wEKezp4ifBU8j/QGNJwPygDDR2fi1UlSEaTxIO3kk8I2zXabhviuDtJH4AqUNa6DoSuU /tXXtpg4+jSpBTa/FIzP7BOZ25iipMAYjsie6PdvOQfLeyxyWeStHlL5sZHEdCiuC8Vu GMQnX5uhz7qVqaDGU4bLVqUD5wK6FzdmihFACr6u3aAs8tZ8jKqPUr1DRyorIJ+TsC/+ M+sKV7wHns71BnyKbDm3NBdOUksuHOp2h5gQ1SGs17kgYdAtNEcv+xtynosy9nQ/t3gc T/Rg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id il3si1808390pjb.22.2021.10.08.18.03.45; Fri, 08 Oct 2021 18:04:43 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244026AbhJIBBV (ORCPT + 99 others); Fri, 8 Oct 2021 21:01:21 -0400 Received: from smtprelay0081.hostedemail.com ([216.40.44.81]:55618 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231996AbhJIBBU (ORCPT ); Fri, 8 Oct 2021 21:01:20 -0400 Received: from omf07.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay08.hostedemail.com (Postfix) with ESMTP id 9A08C182CED28; Sat, 9 Oct 2021 00:59:23 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf07.hostedemail.com (Postfix) with ESMTPA id 5105C315D75; Sat, 9 Oct 2021 00:59:19 +0000 (UTC) Message-ID: <5b6dc5760b42af6c07c8ffc789466be7d7da358e.camel@perches.com> Subject: Re: [PATCH v4 4/7] list.h: Replace kernel.h with the necessary inclusions From: Joe Perches To: Laurent Pinchart , 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 Date: Fri, 08 Oct 2021 17:59:18 -0700 In-Reply-To: References: <20211007154407.29746-1-andriy.shevchenko@linux.intel.com> <20211007154407.29746-5-andriy.shevchenko@linux.intel.com> <20211007171635.2f161739@jic23-huawei> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.40.0-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspamout05 X-Rspamd-Queue-Id: 5105C315D75 X-Spam-Status: No, score=-1.40 X-Stat-Signature: zd745zhjiud6c1zmjfw9r5nwy89k5iif X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX184NsuyxE4r3AJbQ/TLzn6fTZhsBYBNplw= X-HE-Tag: 1633741159-16292 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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/