aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorMiguel Ojeda <ojeda@kernel.org>2025-05-02 16:02:37 +0200
committerMiguel Ojeda <ojeda@kernel.org>2025-05-07 00:11:47 +0200
commit211dcf77856db64c73e0c3b9ce0c624ec855daca (patch)
tree0bd79207fcb850675c8ef26157b34b8dfac18fc9 /tools/perf
parentrust: clean Rust 1.88.0's warning about `clippy::disallowed_macros` configura... (diff)
downloadlinux-211dcf77856db64c73e0c3b9ce0c624ec855daca.tar.gz
linux-211dcf77856db64c73e0c3b9ce0c624ec855daca.zip
rust: clean Rust 1.88.0's `clippy::uninlined_format_args` lint
Starting with Rust 1.88.0 (expected 2025-06-26) [1], `rustc` may move back the `uninlined_format_args` to `style` from `pedantic` (it was there waiting for rust-analyzer suppotr), and thus we will start to see lints 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: stable@vger.kernel.org # 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 <lossin@kernel.org> Reviewed-by: Tamir Duberstein <tamird@gmail.com> Reviewed-by: Alice Ryhl <aliceryhl@google.com> Link: https://lore.kernel.org/r/20250502140237.1659624-6-ojeda@kernel.org Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'tools/perf')
0 files changed, 0 insertions, 0 deletions
da1d92f78279afafdc811214b88cfe54a77&follow=1'>HID: bpf: constify hid_opsThomas Weißschuh3-3/+3 2024-11-28selftests: hid: fix typo and exit codeMaximilian Heyne1-7/+9 2024-11-28HID: wacom: fix when get product name maybe null pointerWangYuli1-1/+2 2024-11-28HID: i2c-hid: Revert to using power commands to wake on resumeKenny Levinsen1-8/+12 2024-11-25Revert "HID: bpf: allow write access to quirks field in struct hid_device"Linus Torvalds5-106/+4 2024-11-22tpm: atmel: Drop PPC64 specific MMIO setupRob Herring (Arm)3-144/+61 2024-11-22char: tpm: cr50: Add new device/vendor ID 0x50666666Jett Rink1-4/+28 2024-11-22char: tpm: cr50: Move i2c locking to request/relinquish locality opsJan Dabros1-9/+13 2024-11-22char: tpm: cr50: Use generic request/relinquish locality opsJan Dabros1-40/+54 2024-11-22tpm: ibmvtpm: Set TPM_OPS_AUTO_STARTUP flag on driverStefan Berger2-15/+1 2024-11-21smb: prevent use-after-free due to open_cached_dir error pathsPaul Aurich1-41/+29 2024-11-21smb: Don't leak cfid when reconnect races with open_cached_dirPaul Aurich1-13/+14 2024-11-21smb: client: handle max length for SMB symlinksPaulo Alcantara2-1/+6 2024-11-21smb: client: get rid of bounds check in SMB2_ioctl_init()Paulo Alcantara1-9/+0 2024-11-21smb: client: improve compound padding in encryptionPaulo Alcantara3-63/+18 2024-11-21smb3: request handle caching when caching directoriesSteve French1-1/+1 2024-11-21cifs: Recognize SFU char/block devices created by Windows NFS server on Windo...Pali Rohár1-0/+22 2024-11-21CIFS: New mount option for cifs.upcall namespace resolutionRitvik Budhiraja6-0/+117 2024-11-21smb/client: Prevent error pointer dereferenceDan Carpenter1-2/+4 2024-11-21fs/smb/client: implement chmod() for SMB3 POSIX ExtensionsRalph Boehme4-23/+37 2024-11-21smb: cached directories can be more than root file handlePaul Aurich1-1/+1 2024-11-20ftrace: Fix regression with module command in stack_trace_filterguoweikang1-0/+3 2024-11-20ovl: Filter invalid inodes with missing lookup functionVasiliy Kovalev1-0/+3 2024-11-19KVM: x86: Break CONFIG_KVM_X86's direct dependency on KVM_INTEL || KVM_AMDSean Christopherson1-1/+1 2024-11-19KVM: x86: add back X86_LOCAL_APIC dependencyArnd Bergmann1-1/+1 2024-11-19Revert "KVM: VMX: Move LOAD_IA32_PERF_GLOBAL_CTRL errata handling out of setu...Sean Christopherson1-33/+21 2024-11-19kunit: qemu_configs: loongarch: Enable shutdownThomas Weißschuh1-1/+4 2024-11-19kunit: tool: Allow overriding the shutdown mode from qemu configThomas Weißschuh1-1/+3