rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] rust: usb: fix formatting
@ 2025-10-16 23:13 Miguel Ojeda
  2025-10-17  5:42 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 5+ messages in thread
From: Miguel Ojeda @ 2025-10-16 23:13 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Miguel Ojeda, Alex Gaynor
  Cc: linux-usb, Boqun Feng, Gary Guo, Björn Roy Baron,
	Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross,
	Danilo Krummrich, rust-for-linux, linux-kernel, patches

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

Link: https://docs.kernel.org/rust/coding-guidelines.html#style-formatting
Link: https://rust-for-linux.com/contributing#submit-checklist-addendum
Fixes: 9a55e0079258 ("Revert "USB: disable rust bindings from the build for now"")
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
---
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/20251010174351.948650-1-ojeda@kernel.org/

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(-)

diff --git a/rust/kernel/lib.rs b/rust/kernel/lib.rs
index 9cf4ca0ae7a1..cd191686fef6 100644
--- a/rust/kernel/lib.rs
+++ b/rust/kernel/lib.rs
@@ -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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-10-28  9:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-16 23:13 [PATCH] rust: usb: fix formatting Miguel Ojeda
2025-10-17  5:42 ` Greg Kroah-Hartman
2025-10-19 18:59   ` Miguel Ojeda
2025-10-27 15:03     ` Miguel Ojeda
2025-10-28  9:04       ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).