Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp7106082rdb; Fri, 15 Dec 2023 19:35:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IF7KKyVUmdJml/P1JsvVLGqUmgTE+PTSTInz/3DnhyjdyVrs/OoPqAW1bOcYfb2fJhgpK69 X-Received: by 2002:a17:902:7b91:b0:1c9:cc88:502c with SMTP id w17-20020a1709027b9100b001c9cc88502cmr13126869pll.69.1702697748257; Fri, 15 Dec 2023 19:35:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702697748; cv=none; d=google.com; s=arc-20160816; b=VSF1Rn0DfuBZ7q/lJSdDh0c+fOTYvv3m2HC6hHMEYV4L2V+X+qSf5Bu8mJRFYrB/42 fUyS0o9Pw+Jhwp6UQyXzWLXhvhJqW7QqoJaFwOpqrG+97fLnvVb3ZTxUNY/2l0UCCmLE 7e8VYKoFYbzrhRzpk2GH37MOZpnCw3dJ9IXrfHrs3Fb5VDZEeliL57U9udpigEgqQ2E9 Zu1b1T7ThUJeN8gr8bLt+2wC0F3EgOCGI1LnzXQVj97dCIeqvNDCpzmUOE+2VRrtXrEx d+g2aDtF2pU5sGBeLBvN6++J22owueqQKUPC5ydzgOaR/mxUher32YZ8DRZE5OxRMsoU EpPA== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2014-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l6-20020a170902f68600b001d0748ffd2esi14038649plg.163.2023.12.15.19.35.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 19:35:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2014-linux.lists.archive=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-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2014-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 004AD2882C0 for ; Sat, 16 Dec 2023 03:34:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E28C837D15; Sat, 16 Dec 2023 03:33:26 +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 ; 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 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 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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT More sched.h dependency trimming: this will help to kill the printk.h dependency. Signed-off-by: Kent Overstreet --- 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 +#include 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 #include #include - -/* Don't assign or return these: may not be this big! */ -typedef struct cpumask { DECLARE_BITMAP(bits, NR_CPUS); } cpumask_t; +#include /** * 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 +#include +#include + +/* 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 */ -- 2.43.0