Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp7105149rdb; Fri, 15 Dec 2023 19:32:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IGyyc4z5tus0mwQjhuDBS1ZWQX2Y4u4aHV+UQOhi3BThvN9QKK07D1uxA214XoDVqHeWvd1 X-Received: by 2002:a05:6e02:2219:b0:35f:7f89:b57 with SMTP id j25-20020a056e02221900b0035f7f890b57mr6111771ilf.25.1702697545693; Fri, 15 Dec 2023 19:32:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702697545; cv=none; d=google.com; s=arc-20160816; b=EWk2lg4Q2nQAOI/67oAlittMbXo8X9EYh0GAc6qJVkMY7gZUN5+2zELdBuNCiSWTet EXijgg4RHsHdPUiU5P9pM/5TOXsm3XLkKK5gLddOJYq5+LjDptppoT2rf/ytkHJLXKBr F1ERxurw8p3zTiLVVtcfQga521aa+vGtA+fDtzdEZy9zSqTHVapWM3KOCGqyPXVns6LS 4OhG2keTcU2LyA/BHbbU5paHIKXCpsKdnu+CSMPj050DEEy1XbKO5r08rTHCON/1wO6E ODQbBqwqaHfaAqSUtxzaFOH18WY84rekJ4K8tgHlM5kz10s4GwLqV9Dd6eMfB4RI3HAY Ping== 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=UOn/Y15NsNzqgslo/DGUA4vnnDcPK/hObV7tmn0+yB0=; fh=vHhjxHftTECn/hRvIWNlq1eDzDsn74Roqz0kmRcPgcE=; b=CwPxWs38SMF1eFH/Qo3nVKvKHKwRS+cucSh5WBwkbUMU/umhTzp6wnxNfVABoWaXzD VkXn6tkQqpRIZG9HxOCO2wTFXA/K5DvMjWcjnCIxBDthKy67PlN16repuEFE+g96hvR7 awE/A7HQ8gKSe7+T4sNBUkth4aNhlEktprns+OexrrtlODK8YVTt1detPFFFp5j69bmW g1WdUwYmTJrMmDw+4EhA5pzqy+Zf3hKPNHiEh72t2AnDRbuUHLq5BqHPI3Nm3f/rG5Mp AXSMQZXKIfusiUAVUvt0ungsu0R3iiDWzSzQ4yRPLtuckKXp1+7eQqT+0Wbwys/9w36m gBkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=t9xGdVnf; spf=pass (google.com: domain of linux-kernel+bounces-2005-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2005-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 19-20020a170902c11300b001d3598b87cfsi4814557pli.60.2023.12.15.19.32.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 19:32:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2005-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=t9xGdVnf; spf=pass (google.com: domain of linux-kernel+bounces-2005-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2005-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 9D4AFB2150B for ; Sat, 16 Dec 2023 03:32:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BAA521DFDA; Sat, 16 Dec 2023 03:30:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="t9xGdVnf" X-Original-To: linux-kernel@vger.kernel.org Received: from out-178.mta0.migadu.com (out-178.mta0.migadu.com [91.218.175.178]) (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 D223C18B04 for ; Sat, 16 Dec 2023 03:30:17 +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=1702697416; 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=UOn/Y15NsNzqgslo/DGUA4vnnDcPK/hObV7tmn0+yB0=; b=t9xGdVnfoMSLTM9Td4x0n7yOYowwiWYquuWGItTI09FEmyYaq1F5zDGKbE6Z68kquCcZ4v QzWKPsB1k1p716MbbYUSL3g+gxUets/iissMmxK50hFXtT7+43ywuaUk/ZRITZoXnE5n/A qzJSrRGwWvwDYzhsS7l0YJyP71QnUks= 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 27/50] timerqueue: Split out timerqueue_types.h Date: Fri, 15 Dec 2023 22:29:33 -0500 Message-ID: <20231216032957.3553313-6-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: timerqueue_types can include just rbtree_types.h instead of pulling in rbtree.h. Cc: Thomas Gleixner Signed-off-by: Kent Overstreet --- include/linux/hrtimer_types.h | 2 +- include/linux/posix-timers_types.h | 2 +- include/linux/timerqueue.h | 13 +------------ include/linux/timerqueue_types.h | 17 +++++++++++++++++ 4 files changed, 20 insertions(+), 14 deletions(-) create mode 100644 include/linux/timerqueue_types.h diff --git a/include/linux/hrtimer_types.h b/include/linux/hrtimer_types.h index f4ef391b96a7..ad66a3081735 100644 --- a/include/linux/hrtimer_types.h +++ b/include/linux/hrtimer_types.h @@ -3,7 +3,7 @@ #define _LINUX_HRTIMER_TYPES_H #include -#include +#include struct hrtimer_clock_base; diff --git a/include/linux/posix-timers_types.h b/include/linux/posix-timers_types.h index 57fec639a9bb..2b1f30ee2db0 100644 --- a/include/linux/posix-timers_types.h +++ b/include/linux/posix-timers_types.h @@ -3,7 +3,7 @@ #define _linux_POSIX_TIMERS_TYPES_H #include -#include +#include #include /* diff --git a/include/linux/timerqueue.h b/include/linux/timerqueue.h index adc80e29168e..62973f7d4610 100644 --- a/include/linux/timerqueue.h +++ b/include/linux/timerqueue.h @@ -3,18 +3,7 @@ #define _LINUX_TIMERQUEUE_H #include -#include - - -struct timerqueue_node { - struct rb_node node; - ktime_t expires; -}; - -struct timerqueue_head { - struct rb_root_cached rb_root; -}; - +#include extern bool timerqueue_add(struct timerqueue_head *head, struct timerqueue_node *node); diff --git a/include/linux/timerqueue_types.h b/include/linux/timerqueue_types.h new file mode 100644 index 000000000000..dc298d0923e3 --- /dev/null +++ b/include/linux/timerqueue_types.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _LINUX_TIMERQUEUE_TYPES_H +#define _LINUX_TIMERQUEUE_TYPES_H + +#include +#include + +struct timerqueue_node { + struct rb_node node; + ktime_t expires; +}; + +struct timerqueue_head { + struct rb_root_cached rb_root; +}; + +#endif /* _LINUX_TIMERQUEUE_TYPES_H */ -- 2.43.0