aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/mutex.c
diff options
context:
space:
mode:
authorMickaël Salaün <[email protected]>2025-05-12 09:37:30 +0000
committerMickaël Salaün <[email protected]>2025-05-12 09:38:53 +0000
commit3039ed432745f8fdf5cbb43fdc60b2e1aad624c1 (patch)
tree4dffdb52a26380ad84e43a30fcccac10bfe90a75 /rust/helpers/mutex.c
parentlandlock: Remove KUnit test that triggers a warning (diff)
downloadkernel-3039ed432745f8fdf5cbb43fdc60b2e1aad624c1.tar.gz
kernel-3039ed432745f8fdf5cbb43fdc60b2e1aad624c1.zip
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mickaël Salaün <[email protected]>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions