Skip to content

Commit 341faf2

Browse files
ariel-miculasojeda
authored andcommitted
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: #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]>
1 parent c3bba9f commit 341faf2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rust/helpers.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,18 @@
1616
*
1717
* All symbols are exported as GPL-only to guarantee no GPL-only feature is
1818
* accidentally exposed.
19+
*
20+
* Sorted alphabetically.
1921
*/
2022

2123
#include <linux/bug.h>
2224
#include <linux/build_bug.h>
2325
#include <linux/err.h>
2426
#include <linux/errname.h>
25-
#include <linux/refcount.h>
2627
#include <linux/mutex.h>
27-
#include <linux/spinlock.h>
28+
#include <linux/refcount.h>
2829
#include <linux/sched/signal.h>
30+
#include <linux/spinlock.h>
2931
#include <linux/wait.h>
3032

3133
__noreturn void rust_helper_BUG(void)

0 commit comments

Comments
 (0)