Message ID | 20231216032651.3553101-1-kent.overstreet@linux.dev |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-1986-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp15154dyi; Fri, 15 Dec 2023 19:27:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IGyCIvaPJBNLyVncLZkRF82RZJNuJX0OVZfFux9Ra0fWnuvor8pDFpy4iQlB1iUhhjomFa3 X-Received: by 2002:a17:902:6b08:b0:1d3:481e:4fe0 with SMTP id o8-20020a1709026b0800b001d3481e4fe0mr6756522plk.10.1702697250300; Fri, 15 Dec 2023 19:27:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702697250; cv=none; d=google.com; s=arc-20160816; b=xYARro2OkH6yKWeTXg6xCoJWF3Wcp5K11At34E4bg6Np8DAzfH2ShiKsS0H9Gb3Ado MBpF04X8LwsKuInVnvu21NNHywW3+/a1HMZFhdsew/svHpUAtg7KSfvmUes1s1tF1WB9 8sBLYRbMAr1LX9BKfglNTwHagp8DMpP/K3rlXs0H1wTcL67J2qWz8dTTFYJc89zh/Lb7 +TGUsn6KLdVErIvDm2p3m0CL6INYHyhhvnHHR9Dwmc4pzSb0uTyt9dlPJC+tt9oF1DLx dYhyXrw88sSfu08t1xc5fmoxNaqEL/Z+xtvMx8AUYIRY+W5l7vYEdBNgjDu6MrXJGbfw 4EdQ== 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1986-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q22-20020a656256000000b005ca1286f8f6si9628596pgv.808.2023.12.15.19.27.30 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 19:27:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1986-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1986-ouuuleilei=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 07C842863CC for <ouuuleilei@gmail.com>; Sat, 16 Dec 2023 03:27:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7AAB6107B6; Sat, 16 Dec 2023 03:27:08 +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 <linux-kernel@vger.kernel.org>; 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 <kent.overstreet@linux.dev> To: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Cc: Kent Overstreet <kent.overstreet@linux.dev>, 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 <surenb@google.com> 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: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785407471603182637 X-GMAIL-MSGID: 1785407471603182637 |
Series |
big header dependency cleanup targeting sched.h
|
|
Commit Message
Kent Overstreet
Dec. 16, 2023, 3:26 a.m. UTC
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 <kent.overstreet@linux.dev> Signed-off-by: Suren Baghdasaryan <surenb@google.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> --- 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 <linux/threads.h> #include <linux/bitmap.h> #include <linux/minmax.h> +#include <linux/nodemask_types.h> #include <linux/numa.h> #include <linux/random.h> -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 <linux/bitops.h> +#include <linux/numa.h> + +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 <linux/hrtimer.h> #include <linux/irqflags.h> #include <linux/seccomp.h> -#include <linux/nodemask.h> +#include <linux/nodemask_types.h> #include <linux/rcupdate.h> #include <linux/refcount.h> #include <linux/resource.h>