From nobody Tue Sep 29 06:59:02 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 C0010411A08; Tue, 11 Aug 2026 09:16:40 +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=1786439802; cv=none; b=pZEOsbCS0IBjgRrB8RvCTsfhNqCp+2A8W352PhwEWdZPNwpwzKk1++DIak3NdpeJYdhpqG/oGiVSBZUaLmle+f2MdLg+rU1DgH6XzhF9Ohz8NaUQ8zJsbcmJZy8f11Ds3dzfXfqoaEiqEGFh/fJwZkQ4bCdwqiWG+XQ2NvH2azA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786439802; c=relaxed/simple; bh=BsU6XeBzh2qj+lyxECbXGrVAoykmVQsakUZJaUg5Nbo=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=p5jDEVcDHSczEtl8OtUZxUQUjkiCLKrjsVHm0om34RkfeOjVbEhBASfkmy22Bd9HdGofUhlCPBllHMYttEn3CD7CGVGIvxDC7kzY3ALoPIvQVsMpQ9t9v62/UMBebu1o43d5tkh4DBppxlyjsURI6dUaDUfZaUpNbJst6YHyTAg= 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=As/yf0OP; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=8sgSvcFN; 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="As/yf0OP"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="8sgSvcFN" Date: Tue, 11 Aug 2026 09:16:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1786439798; 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=bPbhkKU+tXAJhNX5wKAvikTx/M93hgAHptI+vKKe9eA=; b=As/yf0OPZoRrFJI9H7sqKAuo6usb+eI9UUQw4u2S0ovwzgL8IO3BOkevyikCDdkSBcar8z ivADcA92PPak5ionTZbYCbqgoh3W3E8puzmEiK/YoQMeY4mpCaQe+s553sbaVzZBFmFMGT JSmmrpp+4qqddtRaTzuuAvkhjFG/f5hBim+x/1YTU2GiX0xDF80Q8ztb9VcTgsuWCt2+FS Q9hRKeXyS1gvjsBoXMDWzbBxxAW4hPLUdR+ylmvUtophZQJlVT0dlJsTNiBvCNZ9rgAF5i pJO3CmCD+41OwT6Bt5Azg1n++lye/2OAqRVi5hSF0flgZ4lePKrpPo6FmQfnbA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1786439798; 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=bPbhkKU+tXAJhNX5wKAvikTx/M93hgAHptI+vKKe9eA=; b=8sgSvcFNrlKlLZeq3LMr3KlUdYh52yJYBwG3WkLI1E0M5B7XEgAultpLQKVyVkeFCbssfY zzo0bLUCXDsdWgAA== From: tip-bot2 for Thomas =?utf-8?q?Wei=C3=9Fschuh_=28Schneider_Electric=29?= Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] timekeeping: Annotate auxiliary clock accessors with __must_check Cc: thomas.weissschuh@linutronix.de, Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260731-timekeeping-aux-must-check-v1-2-11ae93068497@linutronix.de> References: <20260731-timekeeping-aux-must-check-v1-2-11ae93068497@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178643979652.442315.16714804183580008769.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/core branch of tip: Commit-ID: 2838bdb772e4e94591a90437bf595dba485a3162 Gitweb: https://git.kernel.org/tip/2838bdb772e4e94591a90437bf595dba4= 85a3162 Author: Thomas Wei=C3=9Fschuh (Schneider Electric) AuthorDate: Fri, 31 Jul 2026 16:20:15 +02:00 Committer: Thomas Gleixner CommitterDate: Tue, 11 Aug 2026 11:12:43 +02:00 timekeeping: Annotate auxiliary clock accessors with __must_check In contrast to the system time accessors, the ones for auxiliary clocks can fail. Make sure the callers check for this. Signed-off-by: Thomas Wei=C3=9Fschuh (Schneider Electric) Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20260731-timekeeping-aux-must-check-v1-2-11a= e93068497@linutronix.de --- include/linux/timekeeping.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/include/linux/timekeeping.h b/include/linux/timekeeping.h index ca4a881..561313b 100644 --- a/include/linux/timekeeping.h +++ b/include/linux/timekeeping.h @@ -267,11 +267,14 @@ extern void timekeeping_inject_sleeptime64(const stru= ct timespec64 *delta); * Auxiliary clock interfaces */ #ifdef CONFIG_POSIX_AUX_CLOCKS -extern bool ktime_get_aux(clockid_t id, ktime_t *kt); -extern bool ktime_get_aux_ts64(clockid_t id, struct timespec64 *kt); +extern bool __must_check ktime_get_aux(clockid_t id, ktime_t *kt); +extern bool __must_check ktime_get_aux_ts64(clockid_t id, struct timespec6= 4 *kt); #else -static inline bool ktime_get_aux(clockid_t id, ktime_t *kt) { return false= ; } -static inline bool ktime_get_aux_ts64(clockid_t id, struct timespec64 *kt)= { return false; } +static inline bool __must_check ktime_get_aux(clockid_t id, ktime_t *kt) {= return false; } +static inline bool __must_check ktime_get_aux_ts64(clockid_t id, struct ti= mespec64 *kt) +{ + return false; +} #endif =20 /**