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 977AAC433F5 for ; Tue, 9 Nov 2021 02:32:43 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 5E5C760FC1 for ; Tue, 9 Nov 2021 02:32:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5E5C760FC1 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 07D266B00A3; Mon, 8 Nov 2021 21:32:43 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 029DF6B00A5; Mon, 8 Nov 2021 21:32:42 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E80C16B00A6; Mon, 8 Nov 2021 21:32:42 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0121.hostedemail.com [216.40.44.121]) by kanga.kvack.org (Postfix) with ESMTP id D95626B00A3 for ; Mon, 8 Nov 2021 21:32:42 -0500 (EST) Received: from smtpin08.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 9222182499A8 for ; Tue, 9 Nov 2021 02:32:42 +0000 (UTC) X-FDA: 78787818564.08.6E07C85 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf12.hostedemail.com (Postfix) with ESMTP id 3C91310003F7 for ; Tue, 9 Nov 2021 02:32:42 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 6DC9761207; Tue, 9 Nov 2021 02:32:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1636425161; bh=gLvCIZzkF6wkrrje1AA7SZ105gqis/4MBNBzQOu6AKA=; h=Date:From:To:Subject:In-Reply-To:From; b=Yes3Txmf8VuN+Y6TQsTB6eUVGYLrU5QRn0HilTsT0UpTjw1vrP5jFlNPU/bxRck3a qf6Ze9V6wGt2QlsCo02gyXXuOrl09/abeDpH9BpRUYMm1m70JRFP1bzL6wZSobjZaw 8Bc3wzkY8F3MX5Qwq7U0j/OUtRHzFMVDJYR0jbm0= Date: Mon, 08 Nov 2021 18:32:41 -0800 From: Andrew Morton To: akpm@linux-foundation.org, andriy.shevchenko@linux.intel.com, linux-mm@kvack.org, mm-commits@vger.kernel.org, torvalds@linux-foundation.org Subject: [patch 24/87] include/linux/generic-radix-tree.h: replace kernel.h with the necessary inclusions Message-ID: <20211109023241.0I8DheIWD%akpm@linux-foundation.org> In-Reply-To: <20211108183057.809e428e841088b657a975ec@linux-foundation.org> User-Agent: s-nail v14.8.16 X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 3C91310003F7 X-Stat-Signature: 9ch3ooigts38ccz311skxx49h9f8kj6e Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=Yes3Txmf; spf=pass (imf12.hostedemail.com: domain of akpm@linux-foundation.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none X-HE-Tag: 1636425162-422820 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: From: Andy Shevchenko Subject: include/linux/generic-radix-tree.h: replace kernel.h with the necessary inclusions 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. [akpm@linux-foundation.org: include math.h for round_up()] Link: https://lkml.kernel.org/r/20211027150548.80042-1-andriy.shevchenko@linux.intel.com Signed-off-by: Andy Shevchenko Signed-off-by: Andrew Morton --- include/linux/generic-radix-tree.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/include/linux/generic-radix-tree.h~generic-radix-tree-replace-kernelh-with-the-necessary-inclusions +++ a/include/linux/generic-radix-tree.h @@ -38,8 +38,9 @@ #include #include -#include #include +#include +#include struct genradix_root; _