Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp7103657rdb; Fri, 15 Dec 2023 19:27:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IFNtrDWMDLRpl7GdWYl2Wa2jOi8xOkwkPaz+pUt0S/65UwmKz15CID9Z9E6Xoj/1XMHiJlo X-Received: by 2002:a17:907:7fa6:b0:a18:e423:e22 with SMTP id qk38-20020a1709077fa600b00a18e4230e22mr7191619ejc.38.1702697235114; Fri, 15 Dec 2023 19:27:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702697235; cv=none; d=google.com; s=arc-20160816; b=tdjXLGjYhPhnSnlCcucMFAw8UYutEjrvEn3zKOhidwfl2PbitsvF8U74B4c44a6rKG CPjyK/x8sHuuksCJbDrI8whY+yQsPyQ1UX98posDC6dYzDJkjBousthpdQGMjyBB1Bti B8hOofBAZ0b/6S07ppiWbEJfRH7JQ0a2WdhNMbrwJc2j/jJE5sruC2Kt0Ne3Fyo8+9Nd gIQU0fL+DvzF8Zisn9WFt1U0Q5+HGd32u7sFOxrLMMwC4S6pyhUpaJSQtdayR31PJUan fm/iHXGdn/+LTYMvjeCe9ttrhPun4ZKAIgaTTRONT66eGK9Wu5r0H1keqyAKHoXyW+xO FvtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=RMwo6myaXRyuD1n4NvzHCIXzldbeB8yBA+xdZ14Nwyc=; fh=UHNV9TZK4dO3ZOCeSzLqPpHLc+1b0gW9vBA4UD4scoU=; b=f1KIkj2x6SRROTuXDi/LBVkqJSE4UTurZyLM+9SUmzcwo3qsjZJtSU0KcZkqfIlocl VUYBYtak0MKTaX1EVZRF+4Y64Xr+P7YLdFRQwgox1FVh95ua9duyZSKwIa0EiLds9UHQ TbNqKHGBQKvmc7BZppAMNOT+fsrLMBxR6Nw3P1Tv9E3iR4fMoPCIfIDlT4NaisYzClxg CVavxfFCbgZCATa5r8UrCHOCzptCDvfIgquVaAwnES/eaGPTZ6e1ZNnsBsmR11OhI8jQ wIBatePLOg/apqHME3VniPovf0RasRDo0FvMDTwq0CqbTcefRsjIsZEl4OqoKbWmI80U cz9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=ovqC1DSv; spf=pass (google.com: domain of linux-kernel+bounces-1986-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1986-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id mj15-20020a170906af8f00b00a035dea0424si8242459ejb.917.2023.12.15.19.27.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 19:27:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1986-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=ovqC1DSv; spf=pass (google.com: domain of linux-kernel+bounces-1986-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1986-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D729C1F25966 for ; Sat, 16 Dec 2023 03:27:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 82EB0D27B; Sat, 16 Dec 2023 03:27:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="ovqC1DSv" X-Original-To: linux-kernel@vger.kernel.org Received: from out-183.mta0.migadu.com (out-183.mta0.migadu.com [91.218.175.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A73AA6FA0 for ; Sat, 16 Dec 2023 03:27:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1702697221; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RMwo6myaXRyuD1n4NvzHCIXzldbeB8yBA+xdZ14Nwyc=; b=ovqC1DSvbgM/1s5GkmtuCtJNGdL8TPYFUK5YmVn4jRfFeWqCuJL5Acyws9kIwpkxNgCn+d x+Mdp8cvc+d+WyofC+s1CNtzGDpTiDqHaHce17A9JvvP+9kisqtULP5xGiHpVGFEbCCxDX PLjzDLBu7InjnmFzG5vMi+jv2WO3KEo= From: Kent Overstreet To: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Cc: Kent Overstreet , tglx@linutronix.de, x86@kernel.org, tj@kernel.org, peterz@infradead.org, mathieu.desnoyers@efficios.com, paulmck@kernel.org, keescook@chromium.org, dave.hansen@linux.intel.com, mingo@redhat.com, will@kernel.org, longman@redhat.com, boqun.feng@gmail.com, brauner@kernel.org, Suren Baghdasaryan Subject: [PATCH 11/50] nodemask: Split out include/linux/nodemask_types.h Date: Fri, 15 Dec 2023 22:26:10 -0500 Message-ID: <20231216032651.3553101-1-kent.overstreet@linux.dev> In-Reply-To: <20231216024834.3510073-1-kent.overstreet@linux.dev> References: <20231216024834.3510073-1-kent.overstreet@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT 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 | 10 ++++++++++ include/linux/sched.h | 2 +- 3 files changed, 12 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..6b28d97ea6ed --- /dev/null +++ b/include/linux/nodemask_types.h @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __LINUX_NODEMASK_TYPES_H +#define __LINUX_NODEMASK_TYPES_H + +#include +#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 292c31697248..5a5b7b122682 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -20,7 +20,7 @@ #include #include #include -#include +#include #include #include #include -- 2.43.0