Skip to content

Commit 41e7b16

Browse files
Villemoestorvalds
authored andcommitted
linux/bitmap.h: relax comment on compile-time constant nbits
It's not clear what's so horrible about emitting a function call to handle a run-time sized bitmap. Moreover, gcc also emits a function call for a compile-time-constant-but-huge nbits, so the comment isn't even accurate. Link: http://lkml.kernel.org/r/20180818131623.8755-6-linux@rasmusvillemoes.dk Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Cc: Yury Norov <ynorov@caviumnetworks.com> Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk> Cc: Sudeep Holla <sudeep.holla@arm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent d987396 commit 41e7b16

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/linux/bitmap.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
* The available bitmap operations and their rough meaning in the
2929
* case that the bitmap is a single unsigned long are thus:
3030
*
31-
* Note that nbits should be always a compile time evaluable constant.
32-
* Otherwise many inlines will generate horrible code.
31+
* The generated code is more efficient when nbits is known at
32+
* compile-time and at most BITS_PER_LONG.
3333
*
3434
* ::
3535
*

0 commit comments

Comments
 (0)