From patchwork Tue Oct 24 13:46:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suren Baghdasaryan X-Patchwork-Id: 13434532 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 F1179C25B6C for ; Tue, 24 Oct 2023 13:46:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C557A6B0258; Tue, 24 Oct 2023 09:46:53 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BE0356B0259; Tue, 24 Oct 2023 09:46:53 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9E2666B025A; Tue, 24 Oct 2023 09:46:53 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 83DAA6B0258 for ; Tue, 24 Oct 2023 09:46:53 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 30CBCA0789 for ; Tue, 24 Oct 2023 13:46:53 +0000 (UTC) X-FDA: 81380480706.05.8E6111C Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) by imf12.hostedemail.com (Postfix) with ESMTP id 66E1240023 for ; Tue, 24 Oct 2023 13:46:51 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=B2sDiW0X; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf12.hostedemail.com: domain of 3yso3ZQYKCG8fheRaOTbbTYR.PbZYVahk-ZZXiNPX.beT@flex--surenb.bounces.google.com designates 209.85.128.202 as permitted sender) smtp.mailfrom=3yso3ZQYKCG8fheRaOTbbTYR.PbZYVahk-ZZXiNPX.beT@flex--surenb.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1698155211; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=griUcA7GUXZ/C94ijw+khTWkXdhOo9/SkZ3zjzjerBg=; b=nHIK/srnhgTXp+vXs41Y0cnNvt65iY27Tf7OYNTgpLLvo+hGa+b4Rg+BBZKwRmsc/TKZWW koZuJ5izKENCscJRTcXVdClk9NIiNhK1tES93fSg1SbkL682a0Whms3IfbvcY5/a2CZ9aC GxJe3AXhEaCSDDzTFH/FuK3hSaq6Ojg= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=B2sDiW0X; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf12.hostedemail.com: domain of 3yso3ZQYKCG8fheRaOTbbTYR.PbZYVahk-ZZXiNPX.beT@flex--surenb.bounces.google.com designates 209.85.128.202 as permitted sender) smtp.mailfrom=3yso3ZQYKCG8fheRaOTbbTYR.PbZYVahk-ZZXiNPX.beT@flex--surenb.bounces.google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1698155211; a=rsa-sha256; cv=none; b=0g/Qfc2DzpCoxGYgmdgaOPe0uFO9ezLL4tUcEc4pqJ+jUe9gpw2R0OnaOLyIJydYdI0I+g w/XFAkE29M8HJ/+ElipYbtW9BsHmy8Sg6QN71CJPvrgWbmMMy2Z+Fn5lV6Xr72kWSyAjd1 bcifa44Y0azJEmS1ed9apU05zalkZjs= Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-5a81cd8d267so84819747b3.1 for ; Tue, 24 Oct 2023 06:46:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1698155210; x=1698760010; darn=kvack.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=griUcA7GUXZ/C94ijw+khTWkXdhOo9/SkZ3zjzjerBg=; b=B2sDiW0X+HCpv5iqfHTrmoS8Cw7AdCwbg6F14xMCi2AubCkzRmyK+ENvLw5glyHVLv sccH+y4DIEd61yEEVGjgO8hgjuyzAAF1lK+FEd/qEevhTX47iXsCNtGToiYzxBUkCcNa Ka4gyHQq9XlqlA+Hn3J1AnPuw9+bKsrIx6aVyxclabV9gVD7UdG57KCU3lRsAUFBiXmN UsriTfqPsljwu5wsPkJeRdVucVMJzJuYnAoJr4/DZYg7qx6p3mDx8sr+cFRP+iGJ3t9F 6N4INgYGhQX0pa2gC+rwwSoyXmIsyBss9JSkYtt/4mTrwf/w3blEZe5LhdeitNyxvByv 0bXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698155210; x=1698760010; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=griUcA7GUXZ/C94ijw+khTWkXdhOo9/SkZ3zjzjerBg=; b=P4mW0dP4Lfpj5pEqYlX8JIXmr2BpKDdzUI7jAhlzJNfo3WXn4VbjClCGxRL1AXyuN/ QbwZ6/bQjSEI5/O1Awr2TquStZXzavyLDUjPXB1JubVw/Bo2gcKJhH77z9rXn7qfmCLC sg6Zfu2hxEUburtKM128Myi69a9QdcE3aGQKiWnIV3cdlp/b9+DRcp0v70ZYHs56c6jO iV2lahYpVOxC+XLe3dJH0rB4Nooy3s21IrIStgF5FoehdVmnSGNuU1DJ0Ro/ZwQcx9Jl lK6QhJB7Ia3CtIMenA9P1/ObjbUik2JZicJg2lEhXMdG8RpKbcW7TiO9/1LlVRryAmKZ edzw== X-Gm-Message-State: AOJu0YwWSjF9n1npdZo8YjymxXE4iCw/O+EVT0kHmzjQ9wDhtwsKejRT FwIWXq3mTn7ya5Y6E88y+bVzJ7kij6w= X-Google-Smtp-Source: AGHT+IEpwWcHxe3pWwBFpCZZha+IjIrDrruma7abx61pSV1ETO4xUZC89g08mISvSSxLbel6DAK32ekX/R8= X-Received: from surenb-desktop.mtv.corp.google.com ([2620:15c:211:201:45ba:3318:d7a5:336a]) (user=surenb job=sendgmr) by 2002:a25:7485:0:b0:d9a:cbf9:1c8d with SMTP id p127-20020a257485000000b00d9acbf91c8dmr216225ybc.12.1698155210387; Tue, 24 Oct 2023 06:46:50 -0700 (PDT) Date: Tue, 24 Oct 2023 06:46:01 -0700 In-Reply-To: <20231024134637.3120277-1-surenb@google.com> Mime-Version: 1.0 References: <20231024134637.3120277-1-surenb@google.com> X-Mailer: git-send-email 2.42.0.758.gaed0368e0e-goog Message-ID: <20231024134637.3120277-5-surenb@google.com> Subject: [PATCH v2 04/39] nodemask: Split out include/linux/nodemask_types.h From: Suren Baghdasaryan To: akpm@linux-foundation.org Cc: kent.overstreet@linux.dev, mhocko@suse.com, vbabka@suse.cz, hannes@cmpxchg.org, roman.gushchin@linux.dev, mgorman@suse.de, dave@stgolabs.net, willy@infradead.org, liam.howlett@oracle.com, corbet@lwn.net, void@manifault.com, peterz@infradead.org, juri.lelli@redhat.com, ldufour@linux.ibm.com, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, peterx@redhat.com, david@redhat.com, axboe@kernel.dk, mcgrof@kernel.org, masahiroy@kernel.org, nathan@kernel.org, dennis@kernel.org, tj@kernel.org, muchun.song@linux.dev, rppt@kernel.org, paulmck@kernel.org, pasha.tatashin@soleen.com, yosryahmed@google.com, yuzhao@google.com, dhowells@redhat.com, hughd@google.com, andreyknvl@gmail.com, keescook@chromium.org, ndesaulniers@google.com, vvvvvv@google.com, gregkh@linuxfoundation.org, ebiggers@google.com, ytcoode@gmail.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, bristot@redhat.com, vschneid@redhat.com, cl@linux.com, penberg@kernel.org, iamjoonsoo.kim@lge.com, 42.hyeyoo@gmail.com, glider@google.com, elver@google.com, dvyukov@google.com, shakeelb@google.com, songmuchun@bytedance.com, jbaron@akamai.com, rientjes@google.com, minchan@google.com, kaleshsingh@google.com, surenb@google.com, kernel-team@android.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux.dev, linux-arch@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-modules@vger.kernel.org, kasan-dev@googlegroups.com, cgroups@vger.kernel.org X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 66E1240023 X-Stat-Signature: nums4dyfhjwhc43uqxp9zfgsue1inu81 X-Rspam-User: X-HE-Tag: 1698155211-706641 X-HE-Meta: U2FsdGVkX18001rQmN6f/Q3aL50BMaUguTpdgYc6Z9WepkFZRKNkOgpQvaTbIkMU6gMs4eaVLbBFeepjB7w7URxIFaRSJPC5rl4Yu58/Ej/Y0Yn6mvSZzgXK0VpX/BrUBO7cQma7W2iSMs+tXFm1ClNZwotPymtxTXUagKKyWanzF5WLCjvgnqxZFXuVr+3fx7pdzbw2yTPTjUkIqbpCl/1RnL9D4DGr61YOx7cCU9ur5+laVFiZNdUPw8fy/pFB7IQsQ0wBP9edg9COGVbKtdJ9tf01fuPbrTynndAqUazgkZyxnuKUPVwOZzbFdsJ+VuybQEoyss8p5e+DUiMm1446b1SMOIUA1FCxGZG+HRfpo8Cvo8npr92NL6jBMFZQog3CfQGYozDUV8yIS8rc3COtOTaI6miPCafyTY0xMfpGi4M9bAY4i4ucszHwGn1xTBknpSdUQ2pL1g9wuEobRBrRJbcVqN2SFKuDIAYuRTt5cHFXI/MEw+olLig52c9G7MqtgOjInaP9PL1X3OFMAEqBRsb7283GximRL5PtWEpKyLKFbhftjRTxE+rhDEbaIdlN9CtZ27sIvRiCYm7HQEcZshVslHNJ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CIklKdxFa91bEa5coZaKlLXKgFMC9qcbuU6TqTt1jHYHzVuj39KQmrLgDTcKHgEfJsTAsbNn1aTs5YQLUrZURELK4Lca9KW+efK1OLVHMnOeVHSiHhLGVXCw== 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: List-Subscribe: List-Unsubscribe: From: Kent Overstreet sched.h, which defines task_struct, needs nodemask_t - but sched.h is a frequently used header and ideally shouldn't be pulling in any more code that it needs to. This splits out nodemask_types.h which has the definition sched.h needs, which will avoid a circular header dependency in the alloc tagging patch series, and as a bonus should speed up kernel build times. Signed-off-by: Kent Overstreet Signed-off-by: Suren Baghdasaryan Cc: Ingo Molnar Cc: Peter Zijlstra --- include/linux/nodemask.h | 2 +- include/linux/nodemask_types.h | 9 +++++++++ include/linux/sched.h | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 include/linux/nodemask_types.h diff --git a/include/linux/nodemask.h b/include/linux/nodemask.h index 8d07116caaf1..b61438313a73 100644 --- a/include/linux/nodemask.h +++ b/include/linux/nodemask.h @@ -93,10 +93,10 @@ #include #include #include +#include #include #include -typedef struct { DECLARE_BITMAP(bits, MAX_NUMNODES); } nodemask_t; extern nodemask_t _unused_nodemask_arg_; /** diff --git a/include/linux/nodemask_types.h b/include/linux/nodemask_types.h new file mode 100644 index 000000000000..84c2f47c4237 --- /dev/null +++ b/include/linux/nodemask_types.h @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __LINUX_NODEMASK_TYPES_H +#define __LINUX_NODEMASK_TYPES_H + +#include + +typedef struct { DECLARE_BITMAP(bits, MAX_NUMNODES); } nodemask_t; + +#endif /* __LINUX_NODEMASK_TYPES_H */ diff --git a/include/linux/sched.h b/include/linux/sched.h index 77f01ac385f7..12a2554a3164 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -20,7 +20,7 @@ #include #include #include -#include +#include #include #include #include