Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

hrtimer: Fix incorrect #endif comment for BITS_PER_LONG check

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

authored by

Zhan Xusheng and committed by
Thomas Gleixner
c5283a1f e9fb60a7

+1 -1
+1 -1
kernel/time/hrtimer.c
··· 355 355 return dclc < 0 ? -tmp : tmp; 356 356 } 357 357 EXPORT_SYMBOL_GPL(__ktime_divns); 358 - #endif /* BITS_PER_LONG >= 64 */ 358 + #endif /* BITS_PER_LONG < 64 */ 359 359 360 360 /* 361 361 * Add two ktime values and do a safety check for overflow: