From nobody Fri Jun 12 15:58:46 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 A52B433DEF7; Wed, 13 May 2026 20:46:46 +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=1778705207; cv=none; b=nopjt7VXKdM29jAPktjtx3VKUzdqjl0/PhZO7gfW+PDKh6AzKYYRkKD6PGImYd8WrWI+oXZ+daugMvMXRDIAfCSLz+tmv3irf0qJgfx5THi1+JEE+4vInkoPO4akbSfxzG/QOs8TI0lWAIFgfyPTPdNngABL3hyPepDp1v+ZOW0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778705207; c=relaxed/simple; bh=DxW7WypoqupXt1WostX9bLJursbt55cYUd02IAS8o2Q=; h=Date:From:To:Subject:Cc:MIME-Version:Message-ID:Content-Type; b=qUP9z5O7Ecdfd9lXSogk/RxFSP8jpumDMfszOZ6k1wwtBIfslg2RSz92HKdeKev43O3R3P9pxncANclEGzt8v8TgjMDNNykdM+9JSboNgNvV9S4VUTyUl7Uq91HhiH0iZwP9ohwr4Co474ZOvERcVuqWsO3hvQy9mZGEj7muxCI= 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=fhe7Ehh9; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Zef09okf; 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="fhe7Ehh9"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Zef09okf" Date: Wed, 13 May 2026 20:46:43 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1778705204; 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; bh=R8APjb36hkiQKDejzZ23mGIqgm2jp/0frlTsfHbQ/hI=; b=fhe7Ehh97iDnx12H8ZOsp3+a7ezUl4iW3P3GLjWwb69Y1ZgUGpjfIuEARVRjPZCPkVhxRb /FD5L1llleG3dVT9irDEtuwBkfleJdGGUdscsz2TZSjcb/F5UgcWlNSTcMZczT3iLCUBLf 9qPJkfHhXSB5n+/epsnB9bxBOAPfE5Mvhn6sBsqh1WdAB8IuPGlyeQn/80MwXf9OelG8o5 xvAKJw/xXO6Nh0U3XKL21s8KrPC90EyzVN4erdz2PMQLGP/xZXwVyfZPkeNR1+c/DErHjL P9+DCZOnjuT7IqpvtpaoLMlT38dgH2a9WvvW4f61dwLpY4U+k8T+WrEXOGDzCQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1778705204; 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; bh=R8APjb36hkiQKDejzZ23mGIqgm2jp/0frlTsfHbQ/hI=; b=Zef09okfuJDbdqhFmEN9chVztRIcQCnmy3od8eL5rIiWKiwGFhhiydrmJWYz3krukQjhf8 Y6Lj9nCjPTfbSyDw== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] hrtimer: Fix the bogus return type of __hrtimer_start_range_ns() Cc: Dan Carpenter , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177870520303.188840.12435727999123435863.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: 5d330d652d7a455b2215c38e7b0c6149c6f8225d Gitweb: https://git.kernel.org/tip/5d330d652d7a455b2215c38e7b0c6149c= 6f8225d Author: Thomas Gleixner AuthorDate: Wed, 13 May 2026 14:59:29 +02:00 Committer: Thomas Gleixner CommitterDate: Wed, 13 May 2026 22:41:12 +02:00 hrtimer: Fix the bogus return type of __hrtimer_start_range_ns() __hrtimer_start_range_ns() has a bool return type, but returns actually three different values, which are checked at the call site. Make the return type int. Fixes: bd5956166d20 ("hrtimer: Provide hrtimer_start_range_ns_user()") Reported-by: Dan Carpenter --- kernel/time/hrtimer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c index 8a19a61..638ce62 100644 --- a/kernel/time/hrtimer.c +++ b/kernel/time/hrtimer.c @@ -1358,8 +1358,8 @@ enum { HRTIMER_REPROGRAM_FORCE, }; =20 -static bool __hrtimer_start_range_ns(struct hrtimer *timer, ktime_t tim, u= 64 delta_ns, - const enum hrtimer_mode mode, struct hrtimer_clock_base *base) +static int __hrtimer_start_range_ns(struct hrtimer *timer, ktime_t tim, u6= 4 delta_ns, + const enum hrtimer_mode mode, struct hrtimer_clock_base *base) { struct hrtimer_cpu_base *this_cpu_base =3D this_cpu_ptr(&hrtimer_bases); bool is_pinned, first, was_first, keep_base =3D false;