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

Andy Shevchenko
2021-07-28T09:25:05Z

On Wed, Jul 28, 2021 at 12:08 PM Song Bao Hua (Barry Song)
<song.bao.hua@hisilicon.com> wrote:
> > From: Greg Kroah-Hartman [mailto:gregkh@linuxfoundation.org]
> > 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