A recent LKML thread had me look into bitmap.{h,c} again, and I stumbled on/rediscovered a few things.
Rasmus Villemoes (7): lib/bitmap.c: remove wrong documentation linux/bitmap.h: handle constant zero-size bitmaps correctly linux/bitmap.h: remove redundant uses of small_const_nbits() linux/bitmap.h: fix type of nbits in bitmap_shift_right() linux/bitmap.h: relax comment on compile-time constant nbits lib/bitmap.c: fix remaining space computation in bitmap_print_to_pagebuf lib/bitmap.c: simplify bitmap_print_to_pagebuf include/linux/bitmap.h | 37 +++++++++++++++---------------------- lib/bitmap.c | 21 +++++++-------------- 2 files changed, 22 insertions(+), 36 deletions(-) -- 2.16.4