[<prev] [next>] [day] [month] [year] [list]
Message-ID: <Z2ppT7me13dtxm1a@MBC02GN1V4Q05P>
Date: Tue, 24 Dec 2024 15:57:03 +0800
From: Richard Clark <richard.xnu.clark@...il.com>
To: tglx@...utronix.de
Cc: anna-maria@...utronix.de, frederic@...nel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org
Subject: [PATCH] hrtimers: Update the return type of enqueue_hrtimer()
The return type should be 'bool' instead of 'int' according to the calling context
in the kernel, and its internal implementaion - return timerqueue_add() which
is a bool-return function.
Signed-off-by: Richard Clark <richard.xnu.clark@...il.com>
---
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 80fe3749d2db..bda3ffbd444e 100644
--- a/kernel/time/hrtimer.c
+++ b/kernel/time/hrtimer.c
@@ -1067,9 +1067,9 @@ 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,
+static bool enqueue_hrtimer(struct hrtimer *timer,
struct hrtimer_clock_base *base,
enum hrtimer_mode mode)
{
--
2.34.1
Powered by blists - more mailing lists