perf tests workload: Formatting for code_with_type.rs
Subsystems (2)
PATCH 1/1 perf tests workload: Formatting for code_with_type.rs
One part of the rust code for code_with_type workload wasn't properly formatted. Pass it through rustfmt to fix that.
--- tools/perf/tests/workloads/code_with_type.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
tools/perf/tests/workloads/code_with_type.rs +5 -1
@@ -10,7 +10,11 @@ struct Buf {#[no_mangle] pub extern "C" fn test_rs (count:u32 ) { -let mut b =Buf { data1:0 , data2:String ::from ("data" ), data3:0 }; +let mut b =Buf { + data1:0 , + data2:String ::from ("data" ), + data3:0 , + };for _in 1 ..count { b.data1 +=1 ;
base-commit: 335047109d7d488bf5ad32a4076e1a011994cd0e
Signature · 1 line
2.52.0
Quoted 7 lines · Dmitrii Dolgov
One part of the rust code for
code_with_typeworkload wasn't properly formatted. Pass it through rustfmt to fix that.Reported-by kernel test robot <[email protected]>Signed-off-by Dmitrii Dolgov <[email protected]>
Thanks,
Ian
Quoted 26 lines
--- tools/perf/tests/workloads/code_with_type.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)tools/perf/tests/workloads/code_with_type.rs +5
-1@@ -10,7 +10,11 @@ struct Buf {#[no_mangle] pub extern "C" fn test_rs (count:u32 ) { -let mut b =Buf { data1:0 , data2:String ::from ("data" ), data3:0 }; +let mut b =Buf { + data1:0 , + data2:String ::from ("data" ), + data3:0 , + };for _in 1 ..count { b.data1 +=1 ;base-commit:
335047109d7d488bf5ad32a4076e1a011994cd0e--
2.52.0
Quoted 7 lines · Dmitrii Dolgov
One part of the rust code for
code_with_typeworkload wasn't properly formatted. Pass it through rustfmt to fix that.Reported-by kernel test robot <[email protected]>Signed-off-by Dmitrii Dolgov <[email protected]>
Could this please be applied (or fixed in-place)?
It is now in next-20260209, and we check this in different CIs. It also makes LKP give spurious reports, e.g.:
https://lore.kernel.org/all/[email protected]/
Thanks!
Cc'ing Mark since I think the plan is to check in linux-next.
Cheers,
Miguel
Mark Brown
maintainerQuoted 1 line · Miguel Ojeda
Cc'ing Mark since I think the plan is to check in linux-next.
Yes, I was going to revisit this after the merge window - hopefully all the fixes will have landed by then (clippy was the main thing IIRC).
Arnaldo Carvalho de Melo
maintainerQuoted 10 lines · Miguel Ojeda
Quoted 7 lines · Dmitrii Dolgov
One part of the rust code for
code_with_typeworkload wasn't properly formatted. Pass it through rustfmt to fix that.Reported-by kernel test robot <[email protected]>Signed-off-by Dmitrii Dolgov <[email protected]>Could this please be applied (or fixed in-place)?
Its merged and pushed out, should be clean now,
- Arnaldo
Quoted 13 lines
It is now in next-20260209, and we check this in different CIs. It also makes LKP give spurious reports, e.g.:
https://lore.kernel.org/all/[email protected]/
Thanks!
Fixes 2e05bb52a12d ("perf test workload: Add code_with_type test workload")Cc'ing Mark since I think the plan is to check in linux-next.
Cheers,
Miguel