Commit 23fca458 authored by Baptiste Lepers's avatar Baptiste Lepers Committed by Viresh Kumar
Browse files

rust: cpumask: Mark CpumaskVar as transparent



Unsafe code in CpumaskVar's methods assumes that the type has the same
layout as `bindings::cpumask_var_t`. This is not guaranteed by
the default struct representation in Rust, but requires specifying the
`transparent` representation.

Fixes: 8961b8cb ("rust: cpumask: Add initial abstractions")
Signed-off-by: default avatarBaptiste Lepers <baptiste.lepers@gmail.com>
Reviewed-by: default avatarAlice Ryhl <aliceryhl@google.com>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent daad2ef9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment