diff options
author | Mickaël Salaün <mic@digikod.net> | 2025-05-12 11:37:30 +0200 |
---|---|---|
committer | Mickaël Salaün <mic@digikod.net> | 2025-05-12 11:38:53 +0200 |
commit | 3039ed432745f8fdf5cbb43fdc60b2e1aad624c1 (patch) | |
tree | 4dffdb52a26380ad84e43a30fcccac10bfe90a75 /lib/mpi/mpi-scan.c | |
parent | b1525d0a8d3ad98487775232c3a861f3f4d894ea (diff) |
landlock: Improve bit operations in audit code
Use the BIT() and BIT_ULL() macros in the new audit code instead of
explicit shifts to improve readability. Use bitmask instead of modulo
operation to simplify code.
Add test_range1_rand15() and test_range2_rand15() KUnit tests to improve
get_id_range() coverage.
Signed-off-by: Günther Noack <gnoack3000@gmail.com>
Link: https://lore.kernel.org/r/20250512093732.1408485-1-mic@digikod.net
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Diffstat (limited to 'lib/mpi/mpi-scan.c')
0 files changed, 0 insertions, 0 deletions