diff options
author | 2024-10-04 17:41:28 +0200 | |
---|---|---|
committer | 2024-10-15 23:10:32 +0200 | |
commit | 909037ce0369bc3f4fd31743fd2d8d7096f06002 (patch) | |
tree | e5c03b85efd8a1beb30b336fc0bc1a684a9cdc54 /scripts/generate_rust_analyzer.py | |
parent | rust: error: check for config `test` in `Error::name` (diff) | |
download | wireguard-linux-909037ce0369bc3f4fd31743fd2d8d7096f06002.tar.xz wireguard-linux-909037ce0369bc3f4fd31743fd2d8d7096f06002.zip |
rust: alloc: implement `contains` for `Flags`
Provide a simple helper function to check whether given flags do
contain one or multiple other flags.
This is used by a subsequent patch implementing the Cmalloc `Allocator`
to check for __GFP_ZERO.
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Gary Guo <gary@garyguo.net>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Link: https://lore.kernel.org/r/20241004154149.93856-25-dakr@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions