diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2026-06-24 15:06:56 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2026-06-24 15:06:56 -0700 |
| commit | dcebfd2c1404d1c931e86ec5168cdc006d503909 (patch) | |
| tree | 1eca846f8c4946d0501528cf41d354e53f9c38ac /rust | |
| parent | 26ae421f7f49f8a6a32d15b1d21a782b46a1bad5 (diff) | |
| parent | 191f49f1e38b1c10eb44b0f967c6175c884ef7db (diff) | |
| download | linux-2.6-dcebfd2c1404d1c931e86ec5168cdc006d503909.tar.gz linux-2.6-dcebfd2c1404d1c931e86ec5168cdc006d503909.zip | |
Merge tag 'rust-fixes-7.2' of git://git.kernel.org/pub/scm/linux/kernel/git/ojeda/linux
Pull rust fixes from Miguel Ojeda:
"Toolchain and infrastructure:
- Work around a 'rustc' bug by setting the 'frame-pointer' LLVM
module flag under 'CONFIG_FRAME_POINTER'.
The upcoming Rust 1.98.0 is fixed.
- Doctests: fix incorrect replacement pattern.
'kernel' crate:
- Mark 'Debug' impl as '#[inline]'"
* tag 'rust-fixes-7.2' of git://git.kernel.org/pub/scm/linux/kernel/git/ojeda/linux:
rust: Kbuild: set frame-pointer llvm module flag for CONFIG_FRAME_POINTER
rust: doctest: fix incorrect pattern in replacement
rust: bitfield: mark `Debug` impl as `#[inline]`
Diffstat (limited to 'rust')
| -rw-r--r-- | rust/kernel/bitfield.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/kernel/bitfield.rs b/rust/kernel/bitfield.rs index 554a5a2ff0ab..35ede53f2b8e 100644 --- a/rust/kernel/bitfield.rs +++ b/rust/kernel/bitfield.rs @@ -535,6 +535,7 @@ macro_rules! bitfield { // `Debug` implementation. (@debug $name:ident { $($field:ident;)* }) => { impl ::kernel::fmt::Debug for $name { + #[inline] fn fmt(&self, f: &mut ::kernel::fmt::Formatter<'_>) -> ::kernel::fmt::Result { f.debug_struct(stringify!($name)) .field("<raw>", &::kernel::prelude::fmt!("{:#x}", self.inner)) |
