rust: clean Rust 1.88.0's `clippy::uninlined_format_args` lintStarting with Rust 1.88.0 (expected 2025-06-26) [1], `rustc` may moveback the `uninlined_format_args` to `style` from `pedantic` (it w
rust: clean Rust 1.88.0's `clippy::uninlined_format_args` lintStarting with Rust 1.88.0 (expected 2025-06-26) [1], `rustc` may moveback the `uninlined_format_args` to `style` from `pedantic` (it wasthere waiting for rust-analyzer suppotr), and thus we will start to seelints like: warning: variables can be used directly in the `format!` string --> rust/macros/kunit.rs:105:37 | 105 | let kunit_wrapper_fn_name = format!("kunit_rust_wrapper_{}", test); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 105 - let kunit_wrapper_fn_name = format!("kunit_rust_wrapper_{}", test); 105 + let kunit_wrapper_fn_name = format!("kunit_rust_wrapper_{test}");There is even a case that is a pure removal: warning: variables can be used directly in the `format!` string --> rust/macros/module.rs:51:13 | 51 | format!("{field}={content}\0", field = field, content = content) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 51 - format!("{field}={content}\0", field = field, content = content) 51 + format!("{field}={content}\0")The lints all seem like nice cleanups, thus just apply them.We may want to disable `allow-mixed-uninlined-format-args` in the future.Cc: [email protected] # Needed in 6.12.y and later (Rust is pinned in older LTSs).Link: https://github.com/rust-lang/rust-clippy/pull/14160 [1]Acked-by: Benno Lossin <[email protected]>Reviewed-by: Tamir Duberstein <[email protected]>Reviewed-by: Alice Ryhl <[email protected]>Link: https://lore.kernel.org/r/[email protected]Signed-off-by: Miguel Ojeda <[email protected]>
show more ...
Merge tag 'driver-core-6.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-corePull driver core updatesk from Greg KH: "Here is the big set of driver core updates for 6.15-rc1
Merge tag 'driver-core-6.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-corePull driver core updatesk from Greg KH: "Here is the big set of driver core updates for 6.15-rc1. Lots of stuff happened this development cycle, including: - kernfs scaling changes to make it even faster thanks to rcu - bin_attribute constify work in many subsystems - faux bus minor tweaks for the rust bindings - rust binding updates for driver core, pci, and platform busses, making more functionaliy available to rust drivers. These are all due to people actually trying to use the bindings that were in 6.14. - make Rafael and Danilo full co-maintainers of the driver core codebase - other minor fixes and updates"* tag 'driver-core-6.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (52 commits) rust: platform: require Send for Driver trait implementers rust: pci: require Send for Driver trait implementers rust: platform: impl Send + Sync for platform::Device rust: pci: impl Send + Sync for pci::Device rust: platform: fix unrestricted &mut platform::Device rust: pci: fix unrestricted &mut pci::Device rust: device: implement device context marker rust: pci: use to_result() in enable_device_mem() MAINTAINERS: driver core: mark Rafael and Danilo as co-maintainers rust/kernel/faux: mark Registration methods inline driver core: faux: only create the device if probe() succeeds rust/faux: Add missing parent argument to Registration::new() rust/faux: Drop #[repr(transparent)] from faux::Registration rust: io: fix devres test with new io accessor functions rust: io: rename `io::Io` accessors kernfs: Move dput() outside of the RCU section. efi: rci2: mark bin_attribute as __ro_after_init rapidio: constify 'struct bin_attribute' firmware: qemu_fw_cfg: constify 'struct bin_attribute' powerpc/perf/hv-24x7: Constify 'struct bin_attribute' ...
gpu: nova-core: add initial driver stubAdd the initial nova-core driver stub.nova-core is intended to serve as a common base for nova-drm (thecorresponding DRM driver) and the vGPU manager VFIO
gpu: nova-core: add initial driver stubAdd the initial nova-core driver stub.nova-core is intended to serve as a common base for nova-drm (thecorresponding DRM driver) and the vGPU manager VFIO driver, serving as ahard- and firmware abstraction layer for GSP-based NVIDIA GPUs.The Nova project, including nova-core and nova-drm, in the long term,is intended to serve as the successor of Nouveau for all GSP-based GPUs.The motivation for both, starting a successor project for Nouveau anddoing so using the Rust programming language, is documented in detailthrough a previous post on the mailing list [1], an LWN article [2] and atalk from LPC '24.In order to avoid the chicken and egg problem to require a user toupstream Rust abstractions, but at the same time require the Rustabstractions to implement the driver, nova-core kicks off as a driverstub and is subsequently developed upstream.Link: https://lore.kernel.org/dri-devel/Zfsj0_tb-0-tNrJy@cassiopeiae/T/#u [1]Link: https://lwn.net/Articles/990736/ [2]Link: https://youtu.be/3Igmx28B3BQ?si=sBdSEer4tAPKGpOs [3]Reviewed-by: Alexandre Courbot <[email protected]>Link: https://lore.kernel.org/r/[email protected]Signed-off-by: Danilo Krummrich <[email protected]>