Re: [PATCH v3] lib/bitmap: Make count and length parameters unsigned

From: Andy Shevchenko
Date: Thu Jul 14 2022 - 12:50:48 EST

On Thu, Jul 14, 2022 at 06:42:07PM +0200, Paul Menzel wrote:
> Counts and the length are non-negative, so make them unsigned, and adapt the
> while condition in `__bitmap_set()` and `__bitmap_clear()` accordingly.
> For `__bitmap_set()` six less intstructions are used as a result:

You may check this by doing

make allyesconfig
cp vmlinux.o old
# apply your patch
cp vmlinux.o new
scripts/bloat-o-meter old new

With Best Regards,
Andy Shevchenko