Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp7104894rdb; Fri, 15 Dec 2023 19:31:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IGlTM1mG/sOhn+S+vCuSxFiK8pU10greyWGOa9ZEo0pRbYP6KlkrY6nffcYCcZOEooDNKJQ X-Received: by 2002:a05:622a:1711:b0:425:4043:5f3e with SMTP id h17-20020a05622a171100b0042540435f3emr20123252qtk.124.1702697493883; Fri, 15 Dec 2023 19:31:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702697493; cv=none; d=google.com; s=arc-20160816; b=TgW4NzD1W2Zv6bHrW3tdUQ9thdYuIoOwIpAArJR5HcFogSOKVwFuBr7csFr7fXcZzQ lXZq+IY99CdKm7NwHNv/8I914+IesmeJbf1BaLL7SZ3e9HlcMoeVIACjkjTfkaOalMAl NjnQ2PUHRnNNZ5llSv0s9BxbrZmqfDgmC/yocX5M1xAXZljRoHq2zyJyB4ZzzLTnWkd6 S86HyDMINplPLhFT4VwK3slqvouRooTT/nVo7Hontgs58PjeT6y8hOU0Jt5FsPGu80+g tgoFiIAzuAvfRKhpda/isabob6kIRawLaLfotoGmCGRd8I2bwxZYURbfpxqzsO9p8eZO uEPw== 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=perIwL4jXB4r21Fv4KTrzGxY/6sHRKJXYGHhpp/B6G0=; fh=vHhjxHftTECn/hRvIWNlq1eDzDsn74Roqz0kmRcPgcE=; b=hR869WeAyYYXPZACfCBO5ETEoJ8BRoLIBvBUiY3UNcswclKEh1sIgj+8FwxuAPD9Ix oDVuDa8A4qVO+rDDwCpd+trUanGnRfJYY31dMJ6iD/Pc/PICome097lhiPj3y/m36MMO vWE32reXcWWjKmroSjosn7oPvcuBbUZE+XYB6XYFfGh86W8Jn+uC5A7dayCZviBkMHgJ 674L71uLFEBr71Q7hZLVIFFZZ2d3gkgL30TsIcKpMXtODacTF4uwozRdiLJlY2X9A7S8 LqiPyZDXRACYf8XK0Do+scTpvmowm2qHsssLs0RzaoNISM0lZfcw+8se/ZwhRuizsZt8 re0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=ia9m6uyy; spf=pass (google.com: domain of linux-kernel+bounces-2002-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2002-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m2-20020a05622a118200b00423e09e72bdsi20353066qtk.695.2023.12.15.19.31.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 19:31:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2002-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=ia9m6uyy; spf=pass (google.com: domain of linux-kernel+bounces-2002-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2002-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A3AEC1C24586 for ; Sat, 16 Dec 2023 03:31:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7139B13AED; Sat, 16 Dec 2023 03:30:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="ia9m6uyy" X-Original-To: linux-kernel@vger.kernel.org Received: from out-186.mta0.migadu.com (out-186.mta0.migadu.com [91.218.175.186]) (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 0EFB011181 for ; Sat, 16 Dec 2023 03:30:11 +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=1702697410; 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=perIwL4jXB4r21Fv4KTrzGxY/6sHRKJXYGHhpp/B6G0=; b=ia9m6uyy5c8z4Ps150HZ3r7QU3i5xp5t9Ok4TTJbZ+ggRwRD8HP7dF+F8VTCxLqCfTsKpY iB6B2Xd6p3pxJa5tx18NHaq/cxURtJYyBDh1mnVsGaRDZ9zxBSuE/hBGIyzC0w5eEoaraU EHozuvKA9327XaEjZA+DfyBoxkWgHog= 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 24/50] plist: Split out plist_types.h Date: Fri, 15 Dec 2023 22:29:30 -0500 Message-ID: <20231216032957.3553313-3-kent.overstreet@linux.dev> In-Reply-To: <20231216032957.3553313-1-kent.overstreet@linux.dev> References: <20231216024834.3510073-1-kent.overstreet@linux.dev> <20231216032957.3553313-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 Trimming down sched.h dependencies: we don't want to include more than the base types. Signed-off-by: Kent Overstreet --- include/linux/plist.h | 12 +----------- include/linux/plist_types.h | 17 +++++++++++++++++ include/linux/sched.h | 2 +- init/init_task.c | 1 + kernel/futex/core.c | 1 + kernel/futex/requeue.c | 1 + kernel/futex/waitwake.c | 1 + mm/swapfile.c | 1 + 8 files changed, 24 insertions(+), 12 deletions(-) create mode 100644 include/linux/plist_types.h diff --git a/include/linux/plist.h b/include/linux/plist.h index 0f352c1d3c80..8c1c8adf7fe9 100644 --- a/include/linux/plist.h +++ b/include/linux/plist.h @@ -75,20 +75,10 @@ #include #include -#include +#include #include -struct plist_head { - struct list_head node_list; -}; - -struct plist_node { - int prio; - struct list_head prio_list; - struct list_head node_list; -}; - /** * PLIST_HEAD_INIT - static struct plist_head initializer * @head: struct plist_head variable name diff --git a/include/linux/plist_types.h b/include/linux/plist_types.h new file mode 100644 index 000000000000..c37e784330af --- /dev/null +++ b/include/linux/plist_types.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +#ifndef _LINUX_PLIST_TYPES_H +#define _LINUX_PLIST_TYPES_H + +#include + +struct plist_head { + struct list_head node_list; +}; + +struct plist_node { + int prio; + struct list_head prio_list; + struct list_head node_list; +}; + +#endif /* _LINUX_PLIST_TYPES_H */ diff --git a/include/linux/sched.h b/include/linux/sched.h index 9e2708c2cfa6..8c230f24688b 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -16,7 +16,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/init/init_task.c b/init/init_task.c index 5727d42149c3..56220898a256 100644 --- a/init/init_task.c +++ b/init/init_task.c @@ -12,6 +12,7 @@ #include #include #include +#include #include diff --git a/kernel/futex/core.c b/kernel/futex/core.c index dad981a865b8..e0e853412c15 100644 --- a/kernel/futex/core.c +++ b/kernel/futex/core.c @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include diff --git a/kernel/futex/requeue.c b/kernel/futex/requeue.c index eb21f065816b..b47bb764b352 100644 --- a/kernel/futex/requeue.c +++ b/kernel/futex/requeue.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-or-later +#include #include #include "futex.h" diff --git a/kernel/futex/waitwake.c b/kernel/futex/waitwake.c index 61b112897a84..3a10375d9521 100644 --- a/kernel/futex/waitwake.c +++ b/kernel/futex/waitwake.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-or-later +#include #include #include #include diff --git a/mm/swapfile.c b/mm/swapfile.c index 4bc70f459164..25019af07181 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -42,6 +42,7 @@ #include #include #include +#include #include #include -- 2.43.0