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 D13E7C433FE for ; Thu, 7 Oct 2021 11:24:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B458C610A2 for ; Thu, 7 Oct 2021 11:24:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240995AbhJGL0C (ORCPT ); Thu, 7 Oct 2021 07:26:02 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:55890 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232729AbhJGL0B (ORCPT ); Thu, 7 Oct 2021 07:26:01 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtp (Exim 4.92 #5 (Debian)) id 1mYRVB-0008EV-J1; Thu, 07 Oct 2021 19:23:53 +0800 Received: from herbert by gondobar with local (Exim 4.92) (envelope-from ) id 1mYRUm-00051c-R8; Thu, 07 Oct 2021 19:23:28 +0800 Date: Thu, 7 Oct 2021 19:23:28 +0800 From: Herbert Xu To: Andy Shevchenko Cc: Peter Zijlstra , Thomas Gleixner , Randy Dunlap , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-media@vger.kernel.org, netdev@vger.kernel.org, Brendan Higgins , Greg Kroah-Hartman , "Rafael J. Wysocki" , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng , Sakari Ailus , Laurent Pinchart , Mauro Carvalho Chehab , Thomas Graf , Andrew Morton Subject: Re: [PATCH v2 3/4] lib/rhashtable: Replace kernel.h with the necessary inclusions Message-ID: <20211007112328.GA19281@gondor.apana.org.au> References: <20211007095129.22037-1-andriy.shevchenko@linux.intel.com> <20211007095129.22037-4-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211007095129.22037-4-andriy.shevchenko@linux.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 07, 2021 at 12:51:28PM +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 > --- > lib/rhashtable.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/lib/rhashtable.c b/lib/rhashtable.c > index a422c7dd9126..01502cf77564 100644 > --- a/lib/rhashtable.c > +++ b/lib/rhashtable.c > @@ -12,9 +12,13 @@ > */ > > #include > +#include > #include > -#include > +#include > +#include > #include > +#include > +#include > #include > #include > #include Nack. I can see the benefits of splitting things out of kernel.h but there is no reason to add crap to end users like rhashtable.c. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt