Message ID | 20231216032957.3553313-8-kent.overstreet@linux.dev |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-2007-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp16741dyi; Fri, 15 Dec 2023 19:33:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IFJgAbWmXkBF1r0+mRjEP8dmNd2z1Hv3lYmiFEfIc1i8VFBrffJxowudWB87Q6vpyBjcvh9 X-Received: by 2002:a05:6a20:9497:b0:190:228e:4c25 with SMTP id hs23-20020a056a20949700b00190228e4c25mr12833995pzb.47.1702697605976; Fri, 15 Dec 2023 19:33:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702697605; cv=none; d=google.com; s=arc-20160816; b=ArunKiGl5JgRU5Y2VNwtg9ZyamRhAQPODJpH7WFdq/tDMb243tyqbrLNLXyM5aU7Nv TBf8lgSH0XcAd9WP6NGKGlJqyQelltwO2jKI4ApsAP0i/jo1mFwg4I/mebEPqeXAE3C0 HkcJmI5XHpE7MJXvWTRVn/BGIi9rSGsW/g61+B5JiLbrs8uxVZwWAKN8HbhRyUKq+wfb yzb2ApIFHsDD+8zpGE9CCnjz5otzxkE6x2wqaAYhrYVDpe9OXRztrCrx1z8gW7sBrjz4 WXBzTLAptlpv4d+rY1Cr1hJWUU351Cihg9tC0q6EkF3W0S6D5zdIpJ7L/0LhEHnbXvOn d0cA== 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2007-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id h14-20020a170902f54e00b001d08a8c56d4si14294736plf.327.2023.12.15.19.33.25 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 19:33:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2007-ouuuleilei=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=LIleEnZF; spf=pass (google.com: domain of linux-kernel+bounces-2007-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2007-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 09E0AB21123 for <ouuuleilei@gmail.com>; Sat, 16 Dec 2023 03:33:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F34C032C8D; Sat, 16 Dec 2023 03:30:28 +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 <linux-kernel@vger.kernel.org>; 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 <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 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: <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: 1785407844705463289 X-GMAIL-MSGID: 1785407844705463289 |
Series |
big header dependency cleanup targeting sched.h
|
|
Commit Message
Kent Overstreet
Dec. 16, 2023, 3:29 a.m. UTC
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 <kent.overstreet@linux.dev>
---
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 <linux/stddef.h> #include <linux/debugobjects.h> #include <linux/stringify.h> - -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 <linux/timer_types.h> #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 <linux/lockdep_types.h> +#include <linux/types.h> + +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 */