Message ID | 20231216032957.3553313-8-kent.overstreet@linux.dev (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id B6CE5C4332F for <linux-mm@archiver.kernel.org>; Sat, 16 Dec 2023 03:30:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F26938D014E; Fri, 15 Dec 2023 22:30:22 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id ED3218D0143; Fri, 15 Dec 2023 22:30:22 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D4E858D014E; Fri, 15 Dec 2023 22:30:22 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id C13898D0143 for <linux-mm@kvack.org>; Fri, 15 Dec 2023 22:30:22 -0500 (EST) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 9D3E0A2610 for <linux-mm@kvack.org>; Sat, 16 Dec 2023 03:30:22 +0000 (UTC) X-FDA: 81571253484.18.B0E443F Received: from out-173.mta0.migadu.com (out-173.mta0.migadu.com [91.218.175.173]) by imf27.hostedemail.com (Postfix) with ESMTP id 06F814000F for <linux-mm@kvack.org>; Sat, 16 Dec 2023 03:30:20 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=LIleEnZF; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf27.hostedemail.com: domain of kent.overstreet@linux.dev designates 91.218.175.173 as permitted sender) smtp.mailfrom=kent.overstreet@linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1702697421; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=PGwDe7U0LIiQOaGhDE/WHEXnlMSjy21mOvWClH81kqk=; b=pRCdrx2+DZdN6KvWa02WETDjL4GdAgILUZSq7WDggoH18IzMR7rOVXlf9M4aQ9XhOZM5N7 7w/iWdgW7oioMB+ZVTAvZ8VuxkKetCAN9a+tJN1haTiysgZYW7vG8EmTU1kl1ge/wWOpaL 7wAGKPX+FwdF1bc24UkWkHu7KUsRj0U= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=LIleEnZF; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf27.hostedemail.com: domain of kent.overstreet@linux.dev designates 91.218.175.173 as permitted sender) smtp.mailfrom=kent.overstreet@linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1702697421; a=rsa-sha256; cv=none; b=sEZ8tuZXeLP7S6A1DFK4ttBg43e8T/+WeOsQ7mR9y+sKUB3B3UqD9MimYS/3FyJQ1+3mfI XixvRzv3OvR+qMh+uSiExxN39+GxVlz7nmaH7GCU9klE6qRi3yPEe0fHM6KPFxRjlPA09h SmbgBhQ/Y6NH7UK+c1MbvYxQ9BZBJLw= 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> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Rspamd-Queue-Id: 06F814000F X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: cq1zq9t4ugr1i97spq89ge5ssm5xmsgx X-HE-Tag: 1702697420-552005 X-HE-Meta: U2FsdGVkX19OBx3yn3x3ghIMSakLg1GmZFBRLFYl9H2Gl+oZw0YZ5eX3E3HZbw9HcaVzU2tUD/qIJEJJK0H641UjSGGw9nvSfcb81Ij/jRHz9FHgjEHGsxyqHA/bqAWAn4CSE6a2KZFrEoVj86XWdZopxuE8SNzJNqHwYk+18nHSLN6WegG32KSWUgvDhnptzkXQHiB0VTOFPLu3autibkjMx5SJv6lDab/59gipJOYcBJigcLI1TTkZqXqyNqo8I9F0TU0vIMVh6/c8MGP6KAynbLJjO8PZh3N/IMTU63xZel14bwiXwJI7qMYLubrJQF7+9mswD/5HZjkIUBJ9p52ZMmQCls+MUAnLYIspRWqXfDmBPcpVVEOyQqd1qw7JPbvFCkrEss2DPunYUSctIoHooQai+Hq0RYsdminSpeX4oaiR3LniT0eJuldl3Zeo6MTjz62BeFPdBdxEkxZsCB4++r9OuIQy1V+HEPzxZ37VM46jL7yOYpJE+3fayd4r6FJxV+76KrRrW4ElRYMXE8moDx02qbzEhSFMCa+QSRxVcN10izSsHCey7OlDYXdOyVcGwz3ubn07aSHqdskBFJLA28eHQ8++TA78433HZUav25X0rTdaNkN7rSryv3+U7fa0sqzeeNOvoGkKuORyOvTDZ2yB7Sv7B6Xr6uzowZYYSJ0OMNS8fLQORgeDsqsqjZcmU8pT3HvGH5lyjB0MECcuK9wTsqOJ8CK8X+QLZZI8xxOS2gnkAgi77iishM1DRnYsGx6sA0oDkUKyIrIjPUimjFmr5eSjB/Wvmd8BM95cOecEI3VRIOZEZwKdQ6JUd3JhWsBUNOFeU9tq3mzWUtkZDiNmQGEBMYQ5snXTG0jBx04BPiplfXtMfyXG0Zt9gf/iEhEjrmsBpho5COdI9Zh8zfOvlr1jpfX30gKsFVZR7+21co6fB9RN6arEYt4i2wm4l+bga3X8LQMSceU yCbjCqDN vtj35KuLynGWpVxnWrmK8V7Z7htU50PHYZX8LZEwPvYFktOLFD9dT2LP6pOoz/DPO7VbevSiARryZhZHj6PFJY3H15JR/1wPd2nmLVLcXPe3fMVPpy7phAo+5E32oAy+WUrzlLLAf7orM1tbEt0GhgxU7q+pieYjuaxuJpk7SgxF16p/WtWkU1ao/Q07JefrpmGKw+pvrrtOo0AU= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
big header dependency cleanup targeting sched.h
|
expand
|
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 */
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