* [PATCH bpf-next] selftests/bpf: Format data_in_arena_rust.rs with rustfmt
@ 2026-10-03 20:33 Alexei Starovoitov
2026-10-03 22:10 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Alexei Starovoitov @ 2026-10-03 20:33 UTC (permalink / raw)
To: bpf; +Cc: daniel, andrii, eddyz87, memxor
From: Alexei Starovoitov <ast@kernel.org>
'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")
Closes: https://lore.kernel.org/oe-kbuild-all/202610032132.AVJhE1qE-lkp@intel.com/
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
---
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 };
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH bpf-next] selftests/bpf: Format data_in_arena_rust.rs with rustfmt
2026-10-03 20:33 [PATCH bpf-next] selftests/bpf: Format data_in_arena_rust.rs with rustfmt Alexei Starovoitov
@ 2026-10-03 22:10 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-10-03 22:10 UTC (permalink / raw)
To: Alexei Starovoitov; +Cc: bpf, daniel, andrii, eddyz87, memxor
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Kumar Kartikeya Dwivedi <memxor@gmail.com>:
On Sat, 3 Oct 2026 20:33:26 +0000 you wrote:
> From: Alexei Starovoitov <ast@kernel.org>
>
> '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),
> +};
>
> [...]
Here is the summary with links:
- [bpf-next] selftests/bpf: Format data_in_arena_rust.rs with rustfmt
https://git.kernel.org/bpf/bpf-next/c/99dc1ba54242
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-10-03 22:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-03 20:33 [PATCH bpf-next] selftests/bpf: Format data_in_arena_rust.rs with rustfmt Alexei Starovoitov
2026-10-03 22:10 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox