Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1333868pxb; Thu, 7 Oct 2021 05:51:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWL0KGbCXYLjOR9OHXTtIvCe5U/Wry1WIZl91/dX68tWb0vBaxmDy5POMsKxN/TP5HxHSX X-Received: by 2002:a17:906:3fc8:: with SMTP id k8mr5300524ejj.217.1633611075039; Thu, 07 Oct 2021 05:51:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633611075; cv=none; d=google.com; s=arc-20160816; b=WhBO0D18qDJSRz0LVihaI17N6xNcydRuDtqAzmmM0EYBcTLrqEQAkOFr08TxOKZGiG qfHfzcLd7n+berytRsQCmo8dHw1E6Kkj5QWZO6UYXHL2jHXhIPPXjC7W8n9buwv+QWt/ RJkpMTuNCko4AgXnr3pg2QhSxBFzQA/7IvHKhTUgjc4B3vf+arqzUp/qkDUiONkjwEDk tzPeuufnh4hcmNEgU1ioXF6FCx/Yr1wHwJK1y31qpsxy73VAJSCYDhxWnloqFwvY+GNP fLArx9swiSyL7aHPrp2nMk8DYaHrWb4spy/hK933iTNQ/+dQdF5pTwDUB8/qfqVrJnmV gijA== 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:date:subject:cc:to:from; bh=ohaoLMFltawe63n20OTLS+XN35/U7It7fIohyxDoBGQ=; b=NGpypDk9X/wXVvCigAkKplCdGoe3i9Wikml2hI+SAoeTF6HkvVPyLDTeGfznn0Fitc 8NM8i1rCnQs/wE9vXd7CrNWVnqKQ2FmfzBuq1U2oORm4YQjRp/67+JguuE8svjaR/i1/ NX8iCPPzEOWzuLUz5NTNTFYhdSFlbtpQ0kfcolSkjJrXPHnGecNlpxBvi86bSWD1qqYe BKOk7Vgcpk+MyIkpfhcqaHDb8WkoYxOtLhsAwPYe57rdGOCRnNKBt361rzYVEj1qxjxS HKyf6F5uA4rQA4yXeDJUbo+yCsJbQGh9rABoNtsBX83558zV3El6qiNZxBGcjNeFsYFn JpoA== 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o2si13712550ejy.80.2021.10.07.05.50.37; Thu, 07 Oct 2021 05:51:15 -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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240742AbhJGJx3 (ORCPT + 99 others); Thu, 7 Oct 2021 05:53:29 -0400 Received: from mga06.intel.com ([134.134.136.31]:46353 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232662AbhJGJx2 (ORCPT ); Thu, 7 Oct 2021 05:53:28 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10129"; a="287094687" X-IronPort-AV: E=Sophos;i="5.85,354,1624345200"; d="scan'208";a="287094687" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Oct 2021 02:51:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,354,1624345200"; d="scan'208";a="568576676" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga002.fm.intel.com with ESMTP; 07 Oct 2021 02:51:29 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 1E24C3A3; Thu, 7 Oct 2021 12:51:36 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , 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 Cc: 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 , Herbert Xu , Andrew Morton Subject: [PATCH v2 3/4] lib/rhashtable: Replace kernel.h with the necessary inclusions Date: Thu, 7 Oct 2021 12:51:28 +0300 Message-Id: <20211007095129.22037-4-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211007095129.22037-1-andriy.shevchenko@linux.intel.com> References: <20211007095129.22037-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.33.0