From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30453C433FE for ; Thu, 7 Oct 2021 17:26:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 17C6A6056B for ; Thu, 7 Oct 2021 17:26:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242690AbhJGR2a (ORCPT ); Thu, 7 Oct 2021 13:28:30 -0400 Received: from smtprelay0019.hostedemail.com ([216.40.44.19]:46366 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S241958AbhJGR2G (ORCPT ); Thu, 7 Oct 2021 13:28:06 -0400 Received: from omf11.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay08.hostedemail.com (Postfix) with ESMTP id 67D42182CED28; Thu, 7 Oct 2021 17:26:11 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf11.hostedemail.com (Postfix) with ESMTPA id EF9D420A295; Thu, 7 Oct 2021 17:26:06 +0000 (UTC) Message-ID: <04ebb29ccb707bc37df2d3ddd684781114a1a62e.camel@perches.com> Subject: Re: [PATCH v4 6/7] plist: Replace kernel.h with the necessary inclusions From: Joe Perches 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 , jic23@kernel.org, linux@rasmusvillemoes.dk, Thorsten Leemhuis Date: Thu, 07 Oct 2021 10:26:05 -0700 In-Reply-To: References: <20211007154407.29746-1-andriy.shevchenko@linux.intel.com> <20211007154407.29746-7-andriy.shevchenko@linux.intel.com> <1ec405c5a8fd24de9066277ce855d7e39f93e691.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.40.0-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Server: rspamout04 X-Rspamd-Queue-Id: EF9D420A295 X-Stat-Signature: snzj1zzhbiakgpkpo4a971pk3iwuoeqf X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1/s3XrKz8zDDq1N3d6CFOIaxwNFOxHwArU= X-HE-Tag: 1633627566-897448 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2021-10-07 at 20:19 +0300, Andy Shevchenko wrote: > On Thu, Oct 07, 2021 at 10:12:56AM -0700, Joe Perches wrote: > > On Thu, 2021-10-07 at 18:44 +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/plist.h b/include/linux/plist.h > > [] > > > @@ -73,8 +73,11 @@ > > [] > > > +#include > > > > why asm/bug.h and not linux/bug.h ? > > The direct inclusion is from that one. Why linux/bug? A general guideline is to avoid asm includes.