]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
hrtimer: Fix incorrect #endif comment for BITS_PER_LONG check
authorZhan Xusheng <zhanxusheng1024@gmail.com>
Tue, 31 Mar 2026 07:48:11 +0000 (15:48 +0800)
committerThomas Gleixner <tglx@kernel.org>
Wed, 1 Apr 2026 16:48:15 +0000 (18:48 +0200)
The #endif comment says "BITS_PER_LONG >= 64", but the corresponding #if
guard is "BITS_PER_LONG < 64".

The comment was originally correct when the block had a three-way
#if/#else/#endif structure, where the #else branch provided a 64-bit inline
version.  Commit 79bf2bb335b8 ("[PATCH] tick-management: dyntick / highres
functionality") removed the #else branch but did not update the #endif
comment, leaving it inconsistent with the remaining #if condition.

Fix the comment to match the preprocessor guard.

Signed-off-by: Zhan Xusheng <zhanxusheng@xiaomi.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260331074811.26147-1-zhanxusheng@xiaomi.com
kernel/time/hrtimer.c

index 2db171bae05ced2417595354afb9a7bc62a03781..000fb6ba7d74cefd4a8ac69d8d8b1472eb553ba7 100644 (file)
@@ -355,7 +355,7 @@ s64 __ktime_divns(const ktime_t kt, s64 div)
        return dclc < 0 ? -tmp : tmp;
 }
 EXPORT_SYMBOL_GPL(__ktime_divns);
-#endif /* BITS_PER_LONG >= 64 */
+#endif /* BITS_PER_LONG < 64 */
 
 /*
  * Add two ktime values and do a safety check for overflow: