@@ -374,17 +374,17 @@ static void __init test_bitmap_parselist_user(void)
374
374
__test_bitmap_parselist (1 );
375
375
}
376
376
377
- #define EXP_BYTES (sizeof(exp) * 8)
377
+ #define EXP1_IN_BITS (sizeof(exp) * 8)
378
378
379
379
static void __init test_bitmap_arr32 (void )
380
380
{
381
381
unsigned int nbits , next_bit ;
382
- u32 arr [sizeof ( exp ) / 4 ];
383
- DECLARE_BITMAP (bmap2 , EXP_BYTES );
382
+ u32 arr [EXP1_IN_BITS / 32 ];
383
+ DECLARE_BITMAP (bmap2 , EXP1_IN_BITS );
384
384
385
385
memset (arr , 0xa5 , sizeof (arr ));
386
386
387
- for (nbits = 0 ; nbits < EXP_BYTES ; ++ nbits ) {
387
+ for (nbits = 0 ; nbits < EXP1_IN_BITS ; ++ nbits ) {
388
388
bitmap_to_arr32 (arr , exp , nbits );
389
389
bitmap_from_arr32 (bmap2 , arr , nbits );
390
390
expect_eq_bitmap (bmap2 , exp , nbits );
@@ -396,7 +396,7 @@ static void __init test_bitmap_arr32(void)
396
396
" tail is not safely cleared: %d\n" ,
397
397
nbits , next_bit );
398
398
399
- if (nbits < EXP_BYTES - 32 )
399
+ if (nbits < EXP1_IN_BITS - 32 )
400
400
expect_eq_uint (arr [DIV_ROUND_UP (nbits , 32 )],
401
401
0xa5a5a5a5 );
402
402
}
0 commit comments