linux/rust/uapi
Benno Lossin 4846300ba8 rust: derive Zeroable for all structs & unions generated by bindgen where possible
Using the `--with-derive-custom-{struct,union}` option of bindgen, add
`#[derive(MaybeZeroable)]` to every struct & union. This makes those
types implement `Zeroable` if all their fields implement it.

Sadly bindgen doesn't add custom derives to the `__BindgenBitfieldUnit`
struct. So manually implement `Zeroable` for that.

Signed-off-by: Benno Lossin <lossin@kernel.org>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
[ Formatted comment. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2025-09-08 14:03:17 +02:00
..
lib.rs rust: derive Zeroable for all structs & unions generated by bindgen where possible 2025-09-08 14:03:17 +02:00
uapi_helper.h drm: nova-drm: add initial driver skeleton 2025-05-12 20:48:15 +02:00