From: "tip-bot2 for Thomas Weißschuh" <tip-bot2@linutronix.de>
To: linux-tip-commits@vger.kernel.org
Cc: thomas.weissschuh@linutronix.de,
Thomas Gleixner <tglx@kernel.org>,
x86@kernel.org, linux-kernel@vger.kernel.org
Subject: [tip: timers/vdso] timens: Add a __free() wrapper for put_time_ns()
Date: Wed, 01 Apr 2026 15:16:21 -0000 [thread overview]
Message-ID: <177505658149.1647592.5084873290847167927.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20260330-timens-cleanup-v1-1-936e91c9dd30@linutronix.de>
The following commit has been merged into the timers/vdso branch of tip:
Commit-ID: c2de5a5be4d60af5f928a2dd2b0f73e17358e346
Gitweb: https://git.kernel.org/tip/c2de5a5be4d60af5f928a2dd2b0f73e17358e346
Author: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
AuthorDate: Mon, 30 Mar 2026 09:07:55 +02:00
Committer: Thomas Gleixner <tglx@kernel.org>
CommitterDate: Wed, 01 Apr 2026 17:13:35 +02:00
timens: Add a __free() wrapper for put_time_ns()
The wrapper will be used to simplify cleanups of 'struct time_namespace'.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260330-timens-cleanup-v1-1-936e91c9dd30@linutronix.de
---
include/linux/time_namespace.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/linux/time_namespace.h b/include/linux/time_namespace.h
index c1de21a..58bd972 100644
--- a/include/linux/time_namespace.h
+++ b/include/linux/time_namespace.h
@@ -8,6 +8,7 @@
#include <linux/ns_common.h>
#include <linux/err.h>
#include <linux/time64.h>
+#include <linux/cleanup.h>
struct user_namespace;
extern struct user_namespace init_user_ns;
@@ -171,4 +172,6 @@ static inline struct page *find_timens_vvar_page(struct vm_area_struct *vma)
}
#endif /* CONFIG_TIME_NS_VDSO */
+DEFINE_FREE(time_ns, struct time_namespace *, if (_T) put_time_ns(_T))
+
#endif /* _LINUX_TIMENS_H */
next prev parent reply other threads:[~2026-04-01 15:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-30 7:07 [PATCH 0/4] timens: Simplify some resource management through cleanup.h helpers Thomas Weißschuh
2026-03-30 7:07 ` [PATCH 1/4] timens: Add a __free() wrapper for put_time_ns() Thomas Weißschuh
2026-04-01 15:16 ` tip-bot2 for Thomas Weißschuh [this message]
2026-03-30 7:07 ` [PATCH 2/4] timens: Simplify some calls to put_time_ns() Thomas Weißschuh
2026-04-01 15:16 ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2026-03-30 7:07 ` [PATCH 3/4] timens: Use mutex guard in proc_timens_set_offset() Thomas Weißschuh
2026-04-01 15:16 ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
2026-03-30 7:07 ` [PATCH 4/4] timens: Use task_lock guard in timens_get*() Thomas Weißschuh
2026-04-01 15:16 ` [tip: timers/vdso] " tip-bot2 for Thomas Weißschuh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=177505658149.1647592.5084873290847167927.tip-bot2@tip-bot2 \
--to=tip-bot2@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=tglx@kernel.org \
--cc=thomas.weissschuh@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®