]> git.ipfire.org Git - thirdparty/linux.git/commit
rust: bitmap: add MAX_LEN and MAX_INLINE_LEN constants
authorAlice Ryhl <aliceryhl@google.com>
Tue, 25 Nov 2025 13:59:37 +0000 (13:59 +0000)
committerYury Norov (NVIDIA) <yury.norov@gmail.com>
Wed, 26 Nov 2025 16:25:35 +0000 (11:25 -0500)
commitf5535d78e12600deb30a9fb3c628c425f0caec21
tree5d7fc4ddcd4d62897084ef4cabf456809cf3c9e7
parent4bd68e475300bc97b33a7f1ef9bd112970018789
rust: bitmap: add MAX_LEN and MAX_INLINE_LEN constants

To avoid hard-coding these values in drivers, define constants for them
that drivers can reference. Also, update all instances in bitmap.rs and
id_pool.rs that use these values to use the new constants.

Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Burak Emir <bqe@google.com>
Signed-off-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
rust/kernel/bitmap.rs
rust/kernel/id_pool.rs