Message ID | 20231216033300.3553457-3-kent.overstreet@linux.dev (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 3E6B6C4332F for <linux-mm@archiver.kernel.org>; Sat, 16 Dec 2023 03:33:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 671C78D013E; Fri, 15 Dec 2023 22:33:26 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 538276B03E9; Fri, 15 Dec 2023 22:33:26 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 364EE6B03E6; Fri, 15 Dec 2023 22:33:26 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 117F56B0134 for <linux-mm@kvack.org>; Fri, 15 Dec 2023 22:33:26 -0500 (EST) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id E2AD640292 for <linux-mm@kvack.org>; Sat, 16 Dec 2023 03:33:25 +0000 (UTC) X-FDA: 81571261170.04.BADE97E Received: from out-184.mta0.migadu.com (out-184.mta0.migadu.com [91.218.175.184]) by imf05.hostedemail.com (Postfix) with ESMTP id 3ECF910000A for <linux-mm@kvack.org>; Sat, 16 Dec 2023 03:33:24 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=qP6dWkWY; spf=pass (imf05.hostedemail.com: domain of kent.overstreet@linux.dev designates 91.218.175.184 as permitted sender) smtp.mailfrom=kent.overstreet@linux.dev; dmarc=pass (policy=none) header.from=linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1702697604; 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-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=VwnREAuVN4OPHPun4TeRCrssO9sPJ33n6iud3s07kG4=; b=WDbpeR+kEB38B0UKa0GYCxm/gMYWf2L9aQCqKIX82ks6sXCYZcrFmuoUfe1Paua5c5KqjH +IoXF92ciCLOynWqLnUoVXItTEyASxVgysRSefzSdl5g5grqeLIAy/GxPA8TNej7gdBpdY mh4FCDZ5SJVkT5jrn2Zm/Z/qn0tUkV4= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1702697604; a=rsa-sha256; cv=none; b=F793axsSLrAQ5TxlT/sPM/i+OGjUZCI9uhwdgKT2KtkP0UHZ0OXU0asiJwHlaX7QDz+NpN d+SgS3hO4F6zo84tsE+5wOsuUWtLV/hzkPsJLvJBYJDfQgMflEfn4DBAqz4QHBOsb64ieT Rgv0pADEeutOK3Bd4SY3AZ9soDCgayw= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=qP6dWkWY; spf=pass (imf05.hostedemail.com: domain of kent.overstreet@linux.dev designates 91.218.175.184 as permitted sender) smtp.mailfrom=kent.overstreet@linux.dev; dmarc=pass (policy=none) header.from=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=1702697602; 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=VwnREAuVN4OPHPun4TeRCrssO9sPJ33n6iud3s07kG4=; b=qP6dWkWYpw7oW2OJmZ+1xot5mAafow0AqE9tcjCelsxfjfPXBgKDnkp/JYEN5EbZb2GAtV Kcpk7JrNDkh1PfABeJwPOiozUfq/6/m0SK0oUW1sDCc4y14WJzUAiBYOeUk5t79yNntRcA ZbnHN+qPYOKqOHfVxGm4Kif1uB7/D2I= 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 Subject: [PATCH 35/50] cpumask: Split out cpumask_types.h Date: Fri, 15 Dec 2023 22:32:41 -0500 Message-ID: <20231216033300.3553457-3-kent.overstreet@linux.dev> In-Reply-To: <20231216033300.3553457-1-kent.overstreet@linux.dev> References: <20231216024834.3510073-1-kent.overstreet@linux.dev> <20231216033300.3553457-1-kent.overstreet@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Stat-Signature: ysezbwp7b3xgd1k1y8o6bhsdg3931ccr X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 3ECF910000A X-Rspam-User: X-HE-Tag: 1702697603-98081 X-HE-Meta: U2FsdGVkX18GtBC/szKcLM2j3xEA0ChFrcRvexgldTidnqU+wiU12HBQcfLHCgkp0uZyk0fhjLcFzbigk0U/j00ZybPrfXR4MVAOoHc8iYs5mKqCFPBdEfD/hp64OjVBhVmaLUGmnOD20MQJDixAF0CXJqp5hzwCufABzJEpOilcIddmCAk7A8s6QBAgbGCVqWFFNKA9lVVOZ3J2kLpL54Vmm/pCX3MRriTMBkYlZYYI5NpksFJvVD2/g2A6m9LPVaxF01YBGc/OfzLhaQoT6GM5jQp5qUexZfx3+uuEOVOInshImqMYtBqcmec21hfTOTStJ5oAsihsrJ1ynGLZTN+KOFkhVCmOCryq3XQTCXmmJOE+JCJqT+ZYOmmYGoPb+A+8NpCf72FHU4DPgdG0hGe3JJow/uz7djQshLCGnkOgy8aEz4w1KrYWM7oQ3jmp4Os64F/M5JY8+VeAQKLxezdIfzoi6oC2YXuGKRKBEeysWb6mtXlXh6N/mjuAjqt6k2kkCzc5iCoDC97uKQzf9ZbL80eIbWj8BObiZ7cDMfq7lABiVKsc5VzWgkKLH2vcuvADNrH+Ks1dfx8T1LLSo37nUa678ipnaST+kbX6UXaRjjjjJsav3NoT4BN5C+DHizmNQUOu49/Oi7LLh3O6BZs25kpA05TyZCs2zD+XgVlIiCuuv6nGkxUGL4iFVGLpUOh2oTkOOUZs8bkt6qYnQ3/yHXHBat9UI2D7jSxoF2x+qkygIeQUNxteSRXD1USZ5pz6GQ9omG2EmcJ6OBQnWKYsFDpxcH98FmQpAjTeJSby1GG2FrLdbjq2xr333RhbtFcXVykHrfBx/8JUdcOyS5OzaDmm8a9DIeRO7QAH19uOWCqyC48QWp40fXNusxZyz8qRIWOjxrK6PYCdailQ+MHSi/fXY/0lXYWw9qfWbjgL2IOlSAymLA4RRfYlXFQj1D1zh7HG4gaKx2h6iyY X96ws++b 3U1v0fvvX2XNSqFHIdAXZ+kSLmA/nZbeIT4kwVBZWFUegnRAhYUP4uIGTO98ec3I69i536mSe/W15fpU4M1ZTdLRnEB/2rL7T3Hz5lyKuMwZ5UCyiy1GLDPoKjxVsJrWDgYq2qnRNGib7yIiNYWFAEj6Z/0CW3gfpZn/kwLZ27b1WkK4D0O6MxY1MIhP6gnhoqhvf7/AvdRG1kzA= 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
big header dependency cleanup targeting sched.h
|
expand
|
diff --git a/arch/x86/include/asm/tlbbatch.h b/arch/x86/include/asm/tlbbatch.h index 1ad56eb3e8a8..0550dea70c0f 100644 --- a/arch/x86/include/asm/tlbbatch.h +++ b/arch/x86/include/asm/tlbbatch.h @@ -2,7 +2,7 @@ #ifndef _ARCH_X86_TLBBATCH_H #define _ARCH_X86_TLBBATCH_H -#include <linux/cpumask.h> +#include <linux/cpumask_types.h> struct arch_tlbflush_unmap_batch { /* diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h index cfb545841a2c..b710dc4cd858 100644 --- a/include/linux/cpumask.h +++ b/include/linux/cpumask.h @@ -14,9 +14,7 @@ #include <linux/bug.h> #include <linux/gfp_types.h> #include <linux/numa.h> - -/* Don't assign or return these: may not be this big! */ -typedef struct cpumask { DECLARE_BITMAP(bits, NR_CPUS); } cpumask_t; +#include <linux/cpumask_types.h> /** * cpumask_bits - get the bits in a cpumask diff --git a/include/linux/cpumask_types.h b/include/linux/cpumask_types.h new file mode 100644 index 000000000000..f4c032c9a81a --- /dev/null +++ b/include/linux/cpumask_types.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __LINUX_CPUMASK_TYPES_H +#define __LINUX_CPUMASK_TYPES_H + +#include <linux/bitops.h> +#include <linux/types.h> +#include <linux/threads.h> + +/* Don't assign or return these: may not be this big! */ +typedef struct cpumask { DECLARE_BITMAP(bits, NR_CPUS); } cpumask_t; + +#endif /* __LINUX_CPUMASK_TYPES_H */
More sched.h dependency trimming: this will help to kill the printk.h dependency. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev> --- arch/x86/include/asm/tlbbatch.h | 2 +- include/linux/cpumask.h | 4 +--- include/linux/cpumask_types.h | 12 ++++++++++++ 3 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 include/linux/cpumask_types.h