]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
gpu: nova-core: apply the one "use" item per line policy to commands.rs
authorJohn Hubbard <jhubbard@nvidia.com>
Tue, 10 Mar 2026 02:10:56 +0000 (19:10 -0700)
committerAlexandre Courbot <acourbot@nvidia.com>
Tue, 10 Mar 2026 11:14:32 +0000 (20:14 +0900)
As per [1], we need one "use" item per line, in order to reduce merge
conflicts. Furthermore, we need a trailing ", //" in order to tell
rustfmt(1) to leave it alone.

This does that for commands.rs, which is the only file in nova-core that
has any remaining instances of the old style.

[1] https://docs.kernel.org/rust/coding-guidelines.html#imports

Reviewed-by: Gary Guo <gary@garyguo.net>
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Link: https://patch.msgid.link/20260310021125.117855-7-jhubbard@nvidia.com
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
drivers/gpu/nova-core/gsp/fw/commands.rs

index 67f44421fcc35cd38074ecf8b0f350733400f52b..db46276430be1dcf3aaa933276568f0820fa1920 100644 (file)
@@ -1,8 +1,14 @@
 // SPDX-License-Identifier: GPL-2.0
 
-use kernel::prelude::*;
-use kernel::transmute::{AsBytes, FromBytes};
-use kernel::{device, pci};
+use kernel::{
+    device,
+    pci,
+    prelude::*,
+    transmute::{
+        AsBytes,
+        FromBytes, //
+    }, //
+};
 
 use crate::gsp::GSP_PAGE_SIZE;