Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp7105279rdb; Fri, 15 Dec 2023 19:32:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IHijMh6cuSnXlsJE5v8DvnUc3TD7LZlG/5fcfldQ2Q92R/YFAG1eVj6El3ezr4GRQ1f6W1G X-Received: by 2002:a05:620a:b19:b0:77f:26c:da38 with SMTP id t25-20020a05620a0b1900b0077f026cda38mr12340839qkg.98.1702697573886; Fri, 15 Dec 2023 19:32:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702697573; cv=none; d=google.com; s=arc-20160816; b=05sM05j07q9FTgPF6FeUwlO2SnEKKvG0G8DFvy9IALj1odjhEwMP86Az52vHVQfkEF MvT9Z4R6s6IfviXhzLJxwcUSVMhOUMyYZZkxUDryOx36UiNgccWDIZOJ6OYpYFoN/yxH y813KJkq/qMWcl6cf4C7bwMEu0mmMviddBZIXlBSrdfhIq9zwb9UxEUVjBygfxKpFy/2 yzLqFs3uqZttsP8JsTqi8hZj6aXCeSZrNX+XJ7YuvNhj1s7P2reBj9R0nNYCtxuKdCK3 Pa22+78IDIr65n6O5AD84BEXTVUrVI85WKg3EFMJRnucTTweK8gLwRhtqUTtvCRXtG8O aj8Q== 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=PGwDe7U0LIiQOaGhDE/WHEXnlMSjy21mOvWClH81kqk=; fh=vHhjxHftTECn/hRvIWNlq1eDzDsn74Roqz0kmRcPgcE=; b=WZjHq2iKPzzpyRalVWtvye6PnJ33l2MHuP9oElSTBH7ZhpLvUOBKDv79DFDmpZEjUI +BKxQLSw9Rs7HSwGKWkKCQ892mhSt5bA+uxOpCO7QjqLnAPV8KebR23H7YPsVd5yU3Md ihIAGuBbs4ikkeR5uv8ceQDfINW2tuIWI5uLrLRBQfxTgLi65XYtK+2TD2LUYS60doLe 7ciPPG9sZxS8zVNIyjV0jeCXiDEw7pVJ/Afv2ewhjq8JfDug+LqkPS8RRyvNzd7AVG7t CM7K56xvYKP8QSqZXjpyS5YTWOkqwx12bJEX8CH0saq//xygBMuJ1naZPJRllEweBa6g MsUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=LIleEnZF; spf=pass (google.com: domain of linux-kernel+bounces-2007-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2007-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 fb7-20020a05622a480700b004236d30b354si21016509qtb.732.2023.12.15.19.32.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 19:32:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2007-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=LIleEnZF; spf=pass (google.com: domain of linux-kernel+bounces-2007-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2007-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 A131A1C24936 for ; Sat, 16 Dec 2023 03:32:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2F2E62D786; Sat, 16 Dec 2023 03:30:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="LIleEnZF" X-Original-To: linux-kernel@vger.kernel.org Received: from out-179.mta0.migadu.com (out-179.mta0.migadu.com [91.218.175.179]) (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 DDF971DFF2 for ; Sat, 16 Dec 2023 03:30:21 +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=1702697419; 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=PGwDe7U0LIiQOaGhDE/WHEXnlMSjy21mOvWClH81kqk=; b=LIleEnZFItXHaaCrcMZrYWUko8U1aO3M5XoZxWS6ixnogw7QINK4bm//irG/js1dyhubo0 Vov1IDygO6SNz1ZusBKJlhy3t11N/2JerYK2h6CJIsocr8vT4MNihRRudwFvLRmv7utth2 9r8TMBCnfVU2qcZPdNrWfHDLgyT/z0E= 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 29/50] timers: Split out timer_types.h Date: Fri, 15 Dec 2023 22:29:35 -0500 Message-ID: <20231216032957.3553313-8-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 Cutting down on sched.h dependencies: this is going to be used in workqueue_types.h in the next patch, so we can kill the sched.h dependency on workqueue.h. Signed-off-by: Kent Overstreet --- include/linux/timer.h | 16 +--------------- include/linux/timer_types.h | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 15 deletions(-) create mode 100644 include/linux/timer_types.h diff --git a/include/linux/timer.h b/include/linux/timer.h index 26a545bb0153..f18a2f1eb79e 100644 --- a/include/linux/timer.h +++ b/include/linux/timer.h @@ -7,21 +7,7 @@ #include #include #include - -struct timer_list { - /* - * All fields that change during normal runtime grouped to the - * same cacheline - */ - struct hlist_node entry; - unsigned long expires; - void (*function)(struct timer_list *); - u32 flags; - -#ifdef CONFIG_LOCKDEP - struct lockdep_map lockdep_map; -#endif -}; +#include #ifdef CONFIG_LOCKDEP /* diff --git a/include/linux/timer_types.h b/include/linux/timer_types.h new file mode 100644 index 000000000000..fae5a388f914 --- /dev/null +++ b/include/linux/timer_types.h @@ -0,0 +1,23 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _LINUX_TIMER_TYPES_H +#define _LINUX_TIMER_TYPES_H + +#include +#include + +struct timer_list { + /* + * All fields that change during normal runtime grouped to the + * same cacheline + */ + struct hlist_node entry; + unsigned long expires; + void (*function)(struct timer_list *); + u32 flags; + +#ifdef CONFIG_LOCKDEP + struct lockdep_map lockdep_map; +#endif +}; + +#endif /* _LINUX_TIMER_TYPES_H */ -- 2.43.0