Re: [PATCH v7 4/4] lib: test_bitmap: add bitmap_print_to_buf test cases

From: Andy Shevchenko
Date: Wed Jul 28 2021 - 05:25:05 EST


On Wed, Jul 28, 2021 at 12:08 PM Song Bao Hua (Barry Song)
<song.bao.hua@xxxxxxxxxxxxx> wrote:
> > From: Greg Kroah-Hartman [mailto:gregkh@xxxxxxxxxxxxxxxxxxx]
> > Sent: Friday, July 23, 2021 6:45 AM

...

> +static int vb_bits = sizeof(large_bitmap) * BITS_PER_BYTE;
> +DECLARE_BITMAP(vbmap, sizeof(large_bitmap) * BITS_PER_BYTE);

Just side note: we have BITS_PER_TYPE() macro :-)

--
With Best Regards,
Andy Shevchenko