Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5731981rwr; Mon, 1 May 2023 09:57:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6iKBCzvtrrPqDqZ0YKL5NW7Bv/S9AX+20smbMwVKx2A3UDZXoz5zSGRdOsWVPCdL6gOZee X-Received: by 2002:a17:903:2345:b0:1a9:72d7:785 with SMTP id c5-20020a170903234500b001a972d70785mr16189976plh.10.1682960220338; Mon, 01 May 2023 09:57:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682960220; cv=none; d=google.com; s=arc-20160816; b=MlRt59jDNF11xRagz5Lt6AoUSBPIlNn7GhGaBt7uOtBXZgQwimyk1wZWkWn5M1lKGl 02yCUB7nVryWXCRmvvsLWgFN01WpHcr3VzdaN6V5K8ScD7CFTcFj0m2CGVvOwjl/rEgh k8nBHEve4dp2m4iVOdh1OU/OU1O9/unipJIsteGR1ocqOBo0I9157SxfigaLdMb56KBz mC3maDXs5xvXDh1smUPSTJWJzITE1G58RNrcv2975RsFoAPQS76yimDz+6ft3o0J+V8H LVJOjqjya73ZkxLshkfVsMcrVkSqi6MAShtsrxTAvI9a2y44Sg6Lhnyg1x4hkUetSgjM gNBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=MvglFAc23/TKNtr0bbBz1MPaCPYCHObzjBdGSdfY+dE=; b=ZvFCd7B+ppDtVchtNvxEyFwKzCP7GDRgyXmNvauQrRNI5w9swR+XX9nLhttREdTa+l uppDaQXMQTZ5LQ03UEomQGv5FtRATzpSs8+8PQQ7dcUuf/hgmcQzw9cx67eA7Zx/OPbw 6yd6erSEhz+uFZlRfdHkwdNAZiAa1sXfNQYq3WTQug69gXp1f6EYy3xj69Lass22fXkR rL0YQCrSoNfuzDaByWrfaeN+Sg3CskrIQX5CgPoTldpA6JQ6wndi1pRHjAVVByrvWoFp dIzt+wKMR5nJSKq2MOyt4AMMxog3LEtRHMoO1XVzHe1cYl2OKHbUv2xZpHQBY8iAjlSZ x1dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=yKDBPh22; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ij6-20020a170902ab4600b0019cc4426180si27672372plb.240.2023.05.01.09.56.44; Mon, 01 May 2023 09:57:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=yKDBPh22; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232740AbjEAQ4J (ORCPT + 99 others); Mon, 1 May 2023 12:56:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232589AbjEAQzc (ORCPT ); Mon, 1 May 2023 12:55:32 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC0CD19A1 for ; Mon, 1 May 2023 09:55:17 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id 3f1490d57ef6-b8f324b3ef8so3224229276.0 for ; Mon, 01 May 2023 09:55:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1682960117; x=1685552117; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=MvglFAc23/TKNtr0bbBz1MPaCPYCHObzjBdGSdfY+dE=; b=yKDBPh22/4OVp0gpJ5U5nHWMn8h04FMW1WN9f98nVkyHZSwAOs9UEKf2haMvXBbR8k I5P7Dha4Pldrj64han5IvUTFfOCUHNGUrIJIAXAHFHlzCILjwJdK3NkqJaf+mFjOWY9Y anqwu1P80ScHesP8cB9KZprrz91t4RxUXEXNi1EU3gVLZoQD/8xloHC2gL9j3TfYF6sZ YkdPXTXoXUqQoMaiXzOvgnurLH12U1odpmtI/6y+T+w0FuxiB/jPfmQMFC3YfiI9xt9g 5K5Lvs6m9I2be6QJ0QLu+uaPSHjNUlPR4Y/We8WulcHXa/trNfBWstA095DBG1XNwXOI RnBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682960117; x=1685552117; 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=MvglFAc23/TKNtr0bbBz1MPaCPYCHObzjBdGSdfY+dE=; b=eH/AB0hnXripk0bRqPrKQKWsk4i0/bKwFdk1PgAzZyxqNtcXJgC7AtCizFOSdWGmSd Hoe+WoFauB/crgEOWDyLW1QAldX1YGed10vpO7yQWPHAmmSAlZTPQwutiw7Iz2w8DgIo YM4+XKJlKrQetWNk8P4UlVa8Lmr46EAFVj3jRXn6XZ0HveiwkFFJEbikNVXfSu+eVEqP LN5w7JOHbLkivNMLstdxx7D+n8r9gf8WZPXsGjPajdkQKmNILSibxfRZ/Z6xdKbCLrAD 9rZNzrwJq13Ug7IFXECKbocvzPlYCRZcO98zkpaOor2brn7+m6COrHXtvFCp4rY6rw2l gFjw== X-Gm-Message-State: AC+VfDy3IqKBbWvRJyvDUxtRJydwB90yqNAyrG+v3e9d64HjG/vhCQ4q /dp2my7KJFgc4qEpSt7wKdb2B3ifhhY= X-Received: from surenb-desktop.mtv.corp.google.com ([2620:15c:211:201:6d24:3efd:facc:7ac4]) (user=surenb job=sendgmr) by 2002:a25:c54f:0:b0:b8e:fbcb:d6ef with SMTP id v76-20020a25c54f000000b00b8efbcbd6efmr8806787ybe.4.1682960116894; Mon, 01 May 2023 09:55:16 -0700 (PDT) Date: Mon, 1 May 2023 09:54:14 -0700 In-Reply-To: <20230501165450.15352-1-surenb@google.com> Mime-Version: 1.0 References: <20230501165450.15352-1-surenb@google.com> X-Mailer: git-send-email 2.40.1.495.gc816e09b53d-goog Message-ID: <20230501165450.15352-5-surenb@google.com> Subject: [PATCH 04/40] 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, 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 bb0ee80526b2..fda37b6df274 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 eed5d65b8d1f..35e7efdea2d9 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -20,7 +20,7 @@ #include #include #include -#include +#include #include #include #include -- 2.40.1.495.gc816e09b53d-goog