From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 31AD5368968; Wed, 20 May 2026 18:29:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779301780; cv=none; b=h/JMinYSllzqnquqt3rQLLehFT1LK6F3ziDfdjJ3z9PDUjYjt7sTFxowrHY0ZBLbvEw/KvCp4tbn8lemzePF1NGHyek+QTHpZvn1Gj4DEEl9Hi7lSBwsVCo2eP2gNUEkVbosYxLGJDNv9bwnOjO5my8azQiYNYjbGg9U5DabHs4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779301780; c=relaxed/simple; bh=lvEwEBRI4c98deRPWUBD8rcSw+hy0U0YdzT9Swe4SpA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=q6WfI4B7eY1pwrl+1cvmFc1+ptAMJYtstBEWKyuuR3Dj5/ziFiuXhTvCK1l3ecQ7d5LVRq12sa4XkcgHufviw99BWTO6/0sAFiFrRhTE/1wKFclU9K9d/gIZe/pn33WWoDcKK4VoUn2fQK+sHUf+rujJwCO8xSMmRdrlTsyqlrs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DNcz0m1B; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="DNcz0m1B" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 972E81F000E9; Wed, 20 May 2026 18:29:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779301779; bh=1DMolpPwsRD0f64bUbT46dNZHE1XMOf1kyLwiSSVR3c=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=DNcz0m1B/Z/xR86A7cLl6tlL3E33mph9Swj5SIoTwFKNWPjaaUPDVEm0jiTXW96f7 MZuyxgwpG0fEzsjUkWuuLjTXN4mkPnaH9jG8+S2IAQe42CQJgw60aGwJUHIbSQMoJi nPRFeR9cjRZV7ke/UQ/yd691uzt/oEOa5LBZSM+M= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Richard Clark , Thomas Gleixner , Sasha Levin Subject: [PATCH 6.6 018/508] hrtimers: Update the return type of enqueue_hrtimer() Date: Wed, 20 May 2026 18:17:21 +0200 Message-ID: <20260520162058.981743940@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260520162058.573354582@linuxfoundation.org> References: <20260520162058.573354582@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Richard Clark [ Upstream commit da7100d3bf7d6f5c49ef493ea963766898e9b069 ] The return type should be 'bool' instead of 'int' according to the calling context in the kernel, and its internal implementation, i.e. : return timerqueue_add(); which is a bool-return function. [ tglx: Adjust function arguments ] Signed-off-by: Richard Clark Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/all/Z2ppT7me13dtxm1a@MBC02GN1V4Q05P Stable-dep-of: f2e388a019e4 ("hrtimer: Reduce trace noise in hrtimer_start()") Signed-off-by: Sasha Levin --- kernel/time/hrtimer.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c index 03f488f93cddf..9f41327d3a6d6 100644 --- a/kernel/time/hrtimer.c +++ b/kernel/time/hrtimer.c @@ -1099,11 +1099,10 @@ EXPORT_SYMBOL_GPL(hrtimer_forward); * The timer is inserted in expiry order. Insertion into the * red black tree is O(log(n)). Must hold the base lock. * - * Returns 1 when the new timer is the leftmost timer in the tree. + * Returns true when the new timer is the leftmost timer in the tree. */ -static int enqueue_hrtimer(struct hrtimer *timer, - struct hrtimer_clock_base *base, - enum hrtimer_mode mode) +static bool enqueue_hrtimer(struct hrtimer *timer, struct hrtimer_clock_base *base, + enum hrtimer_mode mode) { debug_activate(timer, mode); WARN_ON_ONCE(!base->cpu_base->online); -- 2.53.0