From patchwork Thu Dec 9 12:30:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 12666477 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id D9457C433F5 for ; Thu, 9 Dec 2021 12:30:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 723676B0071; Thu, 9 Dec 2021 07:30:48 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6D38A6B0073; Thu, 9 Dec 2021 07:30:48 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5C2CA6B0074; Thu, 9 Dec 2021 07:30:48 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0133.hostedemail.com [216.40.44.133]) by kanga.kvack.org (Postfix) with ESMTP id 4917C6B0071 for ; Thu, 9 Dec 2021 07:30:48 -0500 (EST) Received: from smtpin11.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 0DBB48248076 for ; Thu, 9 Dec 2021 12:30:38 +0000 (UTC) X-FDA: 78898189356.11.73D6025 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by imf24.hostedemail.com (Postfix) with ESMTP id 4ABDB180002 for ; Thu, 9 Dec 2021 12:30:36 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6200,9189,10192"; a="224954054" X-IronPort-AV: E=Sophos;i="5.88,192,1635231600"; d="scan'208";a="224954054" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Dec 2021 04:30:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,192,1635231600"; d="scan'208";a="658741893" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 09 Dec 2021 04:30:33 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 6AC04329; Thu, 9 Dec 2021 14:30:39 +0200 (EET) From: Andy Shevchenko To: Pavel Begunkov , linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Dennis Zhou , Tejun Heo , Christoph Lameter , Andy Shevchenko Subject: [PATCH v1 1/1] percpu_ref: Replace kernel.h with the necessary inclusions Date: Thu, 9 Dec 2021 14:30:33 +0200 Message-Id: <20211209123033.3492-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-Rspamd-Queue-Id: 4ABDB180002 Authentication-Results: imf24.hostedemail.com; dkim=none; spf=none (imf24.hostedemail.com: domain of andriy.shevchenko@linux.intel.com has no SPF policy when checking 134.134.136.126) smtp.mailfrom=andriy.shevchenko@linux.intel.com; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=intel.com (policy=none) X-Rspamd-Server: rspam04 X-Stat-Signature: 5hj9ufur1yw549gqikm5zndnwdgm4hga X-HE-Tag: 1639053036-929688 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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/percpu-refcount.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/percpu-refcount.h b/include/linux/percpu-refcount.h index b31d3f3312ce..d73a1c08c3e3 100644 --- a/include/linux/percpu-refcount.h +++ b/include/linux/percpu-refcount.h @@ -51,9 +51,9 @@ #define _LINUX_PERCPU_REFCOUNT_H #include -#include #include #include +#include #include struct percpu_ref;