Skip to content

Commit

Permalink
rust: helpers: sort includes alphabetically in rust/helpers.c
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
ariel-miculas authored and ojeda committed Jul 19, 2023
1 parent c3bba9f commit 341faf2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rust/helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 341faf2

Please sign in to comment.