Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rust: kbuild: remove unneeded old `allow`s for generated layout tests

The issue that required `allow`s for `cfg(test)` code generated by
`bindgen` for layout testing was fixed back in `bindgen` 0.60.0 [1],
so it could have been removed even before the version bump, but it does
not hurt.

Thus remove it now.

Link: https://github.com/rust-lang/rust-bindgen/pull/2203 [1]
Reviewed-by: Tamir Duberstein <tamird@kernel.org>
Reviewed-by: Gary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20260405235309.418950-4-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>

-8
-4
rust/bindings/lib.rs
··· 9 9 //! using this crate. 10 10 11 11 #![no_std] 12 - // See <https://github.com/rust-lang/rust-bindgen/issues/1651>. 13 - #![cfg_attr(test, allow(deref_nullptr))] 14 - #![cfg_attr(test, allow(unaligned_references))] 15 - #![cfg_attr(test, allow(unsafe_op_in_unsafe_fn))] 16 12 #![allow( 17 13 clippy::all, 18 14 missing_docs,
-4
rust/uapi/lib.rs
··· 8 8 //! userspace APIs. 9 9 10 10 #![no_std] 11 - // See <https://github.com/rust-lang/rust-bindgen/issues/1651>. 12 - #![cfg_attr(test, allow(deref_nullptr))] 13 - #![cfg_attr(test, allow(unaligned_references))] 14 - #![cfg_attr(test, allow(unsafe_op_in_unsafe_fn))] 15 11 #![allow( 16 12 clippy::all, 17 13 clippy::cast_lossless,