Re: [PATCH 1/3] lib/test_kasan: Add bitops tests
From: Mark Rutland
Date: Tue May 28 2019 - 12:54:23 EST
Hi,
On Tue, May 28, 2019 at 06:32:56PM +0200, Marco Elver wrote:
> +static noinline void __init kasan_bitops(void)
> +{
> + long bits = 0;
> + const long bit = sizeof(bits) * 8;
You can use BITS_PER_LONG here.
Thanks,
Mark.