Re: [PATCH 1/3] lib/test_kasan: Add bitops tests
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.
[PATCH 1/3] lib/test_kasan: Add bitops tests
This adds bitops tests to the test_kasan module. In a follow-up patch, support for bitops instrumentation will be added. Signed-off-by: Marco Elver --- lib/test_kasan.c | 73 ++-- 1 file changed, 70 insertions(+), 3 deletions(-) diff --git a/lib/test_