[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230427133648.01c7bc13.gary@garyguo.net>
Date: Thu, 27 Apr 2023 13:36:48 +0100
From: Gary Guo <gary@...yguo.net>
To: Ariel Miculas <amiculas@...co.com>
Cc: rust-for-linux@...r.kernel.org, linux-kernel@...r.kernel.org,
ojeda@...nel.org, alex.gaynor@...il.com, wedsonaf@...il.com,
boqun.feng@...il.com, bjorn3_gh@...tonmail.com,
benno.lossin@...ton.me
Subject: Re: [PATCH v3] rust: helpers: sort includes alphabetically in
rust/helpers.c
On Wed, 26 Apr 2023 23:49:23 +0300
Ariel Miculas <amiculas@...co.com> wrote:
> 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 <ojeda@...nel.org>
> Link: https://github.com/Rust-for-Linux/linux/issues/1003
> Signed-off-by: Ariel Miculas <amiculas@...co.com>
Reviewed-by: Gary Guo <gary@...yguo.net>
> ---
> rust/helpers.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/rust/helpers.c b/rust/helpers.c
> index 81e80261d597..73c01db0c828 100644
> --- a/rust/helpers.c
> +++ b/rust/helpers.c
> @@ -16,15 +16,17 @@
> *
> * 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/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)
Powered by blists - more mailing lists