From nobody Wed Apr 1 20:45:06 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 33F7B3DA5B3; Wed, 1 Apr 2026 15:16:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775056585; cv=none; b=ot+dFomd7QCU0RLNLCbUJMfUdwDueWpMcImLkR7FKycif41FbhoEzClquDwebXsZbhj006y5VyvoCQugQzgB0dvfSqaJw/FRgQOL1Reg6w+3KvK/S0cACdFf5rSd6gpcCqViPh2nQ2W0vs8SxXbTuWd83wdxWSUVyKiVoiMnL+E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775056585; c=relaxed/simple; bh=czXJUXW/mmV5GdQSWWD8NwpY/gwTeIGn7APwGtGix/E=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=E+md1dG44ZXdXhwCw7p2q36olZ/IR1ll0pFPJLov82DFZTKCN7POVqB0z1eQJ5sdvehu3wO6YdkYb7bzJ5ZGZ05OqX64NRmnI21GV4UNHCSIvPDCjHTc+Ms5zJ5HlwiOoSAQ1lWtwpnCe+iLpsSp8KyH+xkN3MHbZAsqipBLQ2c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=bOhdVW9g; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Hkjqsozp; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="bOhdVW9g"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Hkjqsozp" Date: Wed, 01 Apr 2026 15:16:21 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1775056582; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FRKKbeXWVfo+BNkXFfv/eXSk5Td2ytAPcf1vyibwXPo=; b=bOhdVW9g6DeWsLs8clVHRigGNBeDIPNHDFu5QODkING9fXZwbxpi3Dn0FxYoFfh6nNqtJC etjge2rFtm5Evv83pyUfJjUiYkCVfcxFea6w1CCahan34s9NzQgPJKT6ebjkbX9+QFjOwr QzrVNbLCkwZVI73EMLG7syB8Ra+yNRxLQspgEvOA0YBwdSUs9HrMuyXCJ1Q2tUqLIdtDSD 7LDwvCfclBOkFKSAB5lVLgYT70nRtnS6jPFn/yxYYriVIgeAOpxURiRY9bWQEw9YD/+1p/ F92nK7PI50N9sEbd1GcfkYnX2tvGUyv0dGxvOJXwWwhfXFtKGnQThUdY9M0iOg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1775056582; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FRKKbeXWVfo+BNkXFfv/eXSk5Td2ytAPcf1vyibwXPo=; b=HkjqsozpzNYybEn0SBFJvRjAdpxp+SWalL2XaobcE9vIbtj1wiMR7SXQjEihXSmi6kb8KO sqTTSRqR+1Cx5aDg== From: tip-bot2 for Thomas =?utf-8?q?Wei=C3=9Fschuh?= Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/vdso] timens: Add a __free() wrapper for put_time_ns() Cc: thomas.weissschuh@linutronix.de, Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260330-timens-cleanup-v1-1-936e91c9dd30@linutronix.de> References: <20260330-timens-cleanup-v1-1-936e91c9dd30@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177505658149.1647592.5084873290847167927.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the timers/vdso branch of tip: Commit-ID: c2de5a5be4d60af5f928a2dd2b0f73e17358e346 Gitweb: https://git.kernel.org/tip/c2de5a5be4d60af5f928a2dd2b0f73e17= 358e346 Author: Thomas Wei=C3=9Fschuh AuthorDate: Mon, 30 Mar 2026 09:07:55 +02:00 Committer: Thomas Gleixner 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=C3=9Fschuh Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20260330-timens-cleanup-v1-1-936e91c9dd30@li= nutronix.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 #include #include +#include =20 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 */ =20 +DEFINE_FREE(time_ns, struct time_namespace *, if (_T) put_time_ns(_T)) + #endif /* _LINUX_TIMENS_H */