Skip to contentSkip to conversation

rust: usb: fix formatting

PATCH In review Miguel Ojeda 3 participants 5 messages Oct 16, 2025 – Oct 28, 2025

Subsystems (2)
lore
Share & tools
lore

Miguel Ojeda

author maintainer
#0 lore raw

PATCH 1/1 rust: usb: fix formatting

We do our best to keep the repository rustfmt-clean, thus run the tool to fix the formatting issue.

---
Greg: I am sending the rustfmt series to Linus to see if he is OK with getting the tree back into a clean state:

    https://lore.kernel.org/rust-for-linux/[email protected]/

And I noticed that in linux-next this is wrongly formatted (i.e. bad sorting).

Please feel free to just fix the original commit if you rebase, of course. I am sending this as a patch in case it helps.

Thanks!

 rust/kernel/lib.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
rust/kernel/lib.rs +1 -1
index 9cf4ca0ae7a1..cd191686fef6 100644
@@ -138,9 +138,9 @@
 pub mod tracepoint;
 pub mod transmute;
 pub mod types;
+pub mod uaccess;
 #[cfg(CONFIG_USB = "y")]
 pub mod usb;
-pub mod uaccess;
 pub mod workqueue;
 pub mod xarray;
 

base-commit: 2433b84761658ef123ae683508bc461b07c5b0f0 --
2.51.0

#1 lore raw
Quoted 11 lines · Miguel Ojeda

We do our best to keep the repository rustfmt-clean, thus run the tool to fix the formatting issue.

---
Greg: I am sending the rustfmt series to Linus to see if he is OK with getting the tree back into a clean state:

Quoted 7 lines
    https://lore.kernel.org/rust-for-linux/[email protected]/

And I noticed that in linux-next this is wrongly formatted (i.e. bad sorting).

Please feel free to just fix the original commit if you rebase, of course. I am sending this as a patch in case it helps.

I don't rebase my public trees, so I'll queue this up after your changes land.

thanks,

greg k-h

#2 lore raw
Quoted 3 lines · Greg Kroah-Hartman

I don't rebase my public trees, so I'll queue this up after your changes land.

They landed in mainline, so Linus' tree is again rustfmt-clean.

Thanks!

Cheers,
Miguel

#3 lore raw
Quoted 2 lines · Miguel Ojeda

They landed in mainline, so Linus' tree is again rustfmt-clean.

Pinging about this one so that it is not forgotten. It is the only missing thing so that linux-next is clean again like Linus'.

Thanks!

Cheers,
Miguel

#4 lore raw
Quoted 7 lines · Miguel Ojeda
Quoted 2 lines · Miguel Ojeda

They landed in mainline, so Linus' tree is again rustfmt-clean.

Pinging about this one so that it is not forgotten. It is the only missing thing so that linux-next is clean again like Linus'.

Just now applied, sorry for the delay.

greg k-h