Closed
Description
With warnings on, gcc will complain that:
error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits]
25 | assert(lock_num >= 0 && lock_num < NUM_SPIN_LOCKS);
which is indeed true. Perhaps a little picky, but by definition the unsigned parameter lock_num
is >= 0
.
Ditto in lock_core.c:10
Metadata
Metadata
Assignees
Labels
No labels