Message ID | 20231216033300.3553457-3-kent.overstreet@linux.dev |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-2014-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp17352dyi; Fri, 15 Dec 2023 19:36:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IE+jB5SdKqjud1JDbdGlJMlvyzGkT/AlWXsfGo9VzqzC2liWlLa7wxAoJeKLUPLYBXn2OKo X-Received: by 2002:a05:6a00:1148:b0:6ce:515a:1dfb with SMTP id b8-20020a056a00114800b006ce515a1dfbmr15485221pfm.26.1702697768323; Fri, 15 Dec 2023 19:36:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702697768; cv=none; d=google.com; s=arc-20160816; b=VFuhawSBMWBQBvNbDggh2+13vNSTFc2z0XNpku5UAktUl0xMF9R1UTuwLweycWW2cF +Shp+9VXtFxSPvMOWJaVDS3znITL+iPRJzMa7lDHm02pPEiKkEcyeO7k2qFOQj7Az7b2 ZX62TrmuV+ikDXT5u3xwpF4sUylYn2ee87Ydep81ZYk4L0VdWaWcT0hob6XBLNFqorpA gnuQYmNmrhK3CJLOqiMuBaOFHTekH22hyyOHBSJvw9zsVL74fKdE5b5eDHYxChG/qkBx ReemceL+R2rqeyQZxK/juKg+rRo1Rj3STYs/QZQSgYIyXgknbMbtHrbibdpezXPGShpA beFg== 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=VwnREAuVN4OPHPun4TeRCrssO9sPJ33n6iud3s07kG4=; fh=vHhjxHftTECn/hRvIWNlq1eDzDsn74Roqz0kmRcPgcE=; b=lJPPwmjJPTsRQrdgqUIsDltkgjmX5Cl9RcNcIhFmUrOkmNpg+WD0vBnJIYXvQJvvnE pRLaBpE9vafc7TxxbCz2eladef0zsg1SWR6vayk2psr8N7z6/2Umy0b7MMH5Sx7aqJmO 3fujMJm95DEzcUfwEk0yYUDmJJvxkZhfsi1TuMwKFBEI9Moc5gwbv5nnSapNxXGOcIZt Stj8vTJpzbRWViSTmZ3hTOr1/6f4q2NnyTN3t55NQWpP9ri+s6bPlxmuKL9RsTDvmJqn N4hAsSmtemF1ITGIGv2YSvqyJJkS+gUZv5AIV5ZNl+MgFv/KO5z32C5IfqMmayYnsFGO brqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=qP6dWkWY; spf=pass (google.com: domain of linux-kernel+bounces-2014-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2014-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. [139.178.88.99]) by mx.google.com with ESMTPS id b2-20020a63eb42000000b005b99697d854si13846644pgk.673.2023.12.15.19.36.08 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 19:36:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2014-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=qP6dWkWY; spf=pass (google.com: domain of linux-kernel+bounces-2014-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2014-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 6167D286B03 for <ouuuleilei@gmail.com>; Sat, 16 Dec 2023 03:35:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F19EA39AC9; Sat, 16 Dec 2023 03:33:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="qP6dWkWY" X-Original-To: linux-kernel@vger.kernel.org Received: from out-184.mta0.migadu.com (out-184.mta0.migadu.com [91.218.175.184]) (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 7024B35291 for <linux-kernel@vger.kernel.org>; Sat, 16 Dec 2023 03:33:24 +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=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> 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: 1785408014834551642 X-GMAIL-MSGID: 1785408014834551642 |
Series |
big header dependency cleanup targeting sched.h
|
|
Commit Message
Kent Overstreet
Dec. 16, 2023, 3:32 a.m. UTC
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
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 */