diff options
author | Ariel Miculas <[email protected]> | 2023-04-26 23:49:23 +0300 |
---|---|---|
committer | Miguel Ojeda <[email protected]> | 2023-08-07 11:33:33 +0200 |
commit | 917b2e00b90f7a0f21ab3f28e7cf165825a7aba7 (patch) | |
tree | 6153aceeeac8f08d761c95a196700bcd1f77c987 | |
parent | db7193a5c9db4babbfc99798f2e636b12419c12b (diff) |
rust: helpers: sort includes alphabetically in rust/helpers.c
Sort the #include directives of rust/helpers.c alphabetically and add a
comment specifying this. The reason for this is to improve readability
and to be consistent with the other files with a similar approach within
'rust/'.
Suggested-by: Miguel Ojeda <[email protected]>
Link: https://github.com/Rust-for-Linux/linux/issues/1003
Signed-off-by: Ariel Miculas <[email protected]>
Reviewed-by: Martin Rodriguez Reboredo <[email protected]>
Reviewed-by: Gary Guo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
-rw-r--r-- | rust/helpers.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rust/helpers.c b/rust/helpers.c index bb594da56137..f946f2ea640a 100644 --- a/rust/helpers.c +++ b/rust/helpers.c @@ -16,16 +16,18 @@ * * All symbols are exported as GPL-only to guarantee no GPL-only feature is * accidentally exposed. + * + * Sorted alphabetically. */ #include <linux/bug.h> #include <linux/build_bug.h> #include <linux/err.h> #include <linux/errname.h> -#include <linux/refcount.h> #include <linux/mutex.h> -#include <linux/spinlock.h> +#include <linux/refcount.h> #include <linux/sched/signal.h> +#include <linux/spinlock.h> #include <linux/wait.h> __noreturn void rust_helper_BUG(void) |