From 99dc1ba542420db6b8df209744f55cc52466ad91 Mon Sep 17 00:00:00 2001 From: Alexei Starovoitov Date: Sat, 3 Oct 2026 20:33:26 +0000 Subject: [PATCH] selftests/bpf: Format data_in_arena_rust.rs with rustfmt 'make rustfmtcheck' checks every .rs file in the tree and fails since the test in Rust was added: Diff in tools/testing/selftests/bpf/progs/data_in_arena_rust.rs:42: #[no_mangle] static IN_RODATA: Node = Node { val: 3, next: None }; #[no_mangle] -static mut IN_DATA: Node = Node { val: 20, next: Some(&IN_RODATA) }; +static mut IN_DATA: Node = Node { + val: 20, + next: Some(&IN_RODATA), +}; Format the file with rustfmt. The code and the data of the program don't change. Fixes: e86cb7315451 ("selftests/bpf: Add test for global data of a program in Rust") Signed-off-by: Alexei Starovoitov Link: https://lore.kernel.org/bpf/20261003203326.1086454-1-alexei.starovoitov@gmail.com Signed-off-by: Kumar Kartikeya Dwivedi --- tools/testing/selftests/bpf/progs/data_in_arena_rust.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/progs/data_in_arena_rust.rs b/tools/testing/selftests/bpf/progs/data_in_arena_rust.rs index b69128487a0f..3dd9d4208232 100644 --- a/tools/testing/selftests/bpf/progs/data_in_arena_rust.rs +++ b/tools/testing/selftests/bpf/progs/data_in_arena_rust.rs @@ -42,7 +42,10 @@ pub struct Node { #[no_mangle] static IN_RODATA: Node = Node { val: 3, next: None }; #[no_mangle] -static mut IN_DATA: Node = Node { val: 20, next: Some(&IN_RODATA) }; +static mut IN_DATA: Node = Node { + val: 20, + next: Some(&IN_RODATA), +}; #[no_mangle] static mut IN_BSS: Node = Node { val: 0, next: None };