[PATCH] rust: helpers: sort includes alphabetically

Krishna Ketan Rai posted 1 patch 3 months, 1 week ago
rust/helpers/helpers.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] rust: helpers: sort includes alphabetically
Posted by Krishna Ketan Rai 3 months, 1 week ago
The helper includes should be sorted alphabetically as indicated by the
comment at the top of the file, but they were not. Sort them properly.

Suggested-by: Alice Ryhl <aliceryhl@google.com>
Link: https://github.com/Rust-for-Linux/linux/issues/1174
Signed-off-by: Krishna Ketan Rai <prafulrai522@gmail.com>
---
 rust/helpers/helpers.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rust/helpers/helpers.c b/rust/helpers/helpers.c
index b15b3cddad4e..d3867d09e356 100644
--- a/rust/helpers/helpers.c
+++ b/rust/helpers/helpers.c
@@ -29,9 +29,9 @@
 #include "mm.c"
 #include "mutex.c"
 #include "page.c"
-#include "platform.c"
 #include "pci.c"
 #include "pid_namespace.c"
+#include "platform.c"
 #include "rbtree.c"
 #include "rcu.c"
 #include "refcount.c"
-- 
2.41.0.windows.3
Re: [PATCH] rust: helpers: sort includes alphabetically
Posted by Miguel Ojeda 2 months, 3 weeks ago
On Sun, Jun 29, 2025 at 5:26 PM Krishna Ketan Rai
<prafulrai522@gmail.com> wrote:
>
> The helper includes should be sorted alphabetically as indicated by the
> comment at the top of the file, but they were not. Sort them properly.
>
> Suggested-by: Alice Ryhl <aliceryhl@google.com>
> Link: https://github.com/Rust-for-Linux/linux/issues/1174
> Signed-off-by: Krishna Ketan Rai <prafulrai522@gmail.com>

Applied to `rust-next` -- thanks everyone!

Cheers,
Miguel