* [PATCH] rust: bindings: fix sorting of rust/bindings/bindings_helper.h's #includes @ 2023-04-26 22:57 materoy 2023-04-27 0:38 ` Martin Rodriguez Reboredo ` (2 more replies) 0 siblings, 3 replies; 6+ messages in thread From: materoy @ 2023-04-26 22:57 UTC (permalink / raw) Cc: Roy Matero, Miguel Ojeda, Alex Gaynor, Wedson Almeida Filho, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Alice Ryhl, Martin Rodriguez Reboredo, rust-for-linux, linux-kernel From: Roy Matero <materoy@proton.me> Fix sorting of rust/bindings/binding_helper.h's includes, to maintain consistency and rust idoms Suggested-by: Miguel Ojeda <ojeda@kernel.org> Link: https://github.com/Rust-for-Linux/linux/issues/1002 Signed-off-by: Roy Matero <materoy@proton.me> --- rust/bindings/bindings_helper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/bindings/bindings_helper.h b/rust/bindings/bindings_helper.h index 50e7a76d5455..dc8d97272e71 100644 --- a/rust/bindings/bindings_helper.h +++ b/rust/bindings/bindings_helper.h @@ -6,10 +6,10 @@ * Sorted alphabetically. */ -#include <linux/slab.h> #include <linux/refcount.h> -#include <linux/wait.h> #include <linux/sched.h> +#include <linux/slab.h> +#include <linux/wait.h> /* `bindgen` gets confused at certain things. */ const gfp_t BINDINGS_GFP_KERNEL = GFP_KERNEL; -- 2.40.1 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] rust: bindings: fix sorting of rust/bindings/bindings_helper.h's #includes 2023-04-26 22:57 [PATCH] rust: bindings: fix sorting of rust/bindings/bindings_helper.h's #includes materoy @ 2023-04-27 0:38 ` Martin Rodriguez Reboredo 2023-05-03 10:45 ` Benno Lossin 2023-05-03 10:59 ` [PATCH v1] rust: error: add ERESTARTSYS error code Alice Ryhl 2 siblings, 0 replies; 6+ messages in thread From: Martin Rodriguez Reboredo @ 2023-04-27 0:38 UTC (permalink / raw) To: materoy Cc: Miguel Ojeda, Alex Gaynor, Wedson Almeida Filho, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Alice Ryhl, rust-for-linux, linux-kernel On 4/26/23 19:57, materoy@proton.me wrote: > From: Roy Matero <materoy@proton.me> > > Fix sorting of rust/bindings/binding_helper.h's includes, > to maintain consistency and rust idoms > > Suggested-by: Miguel Ojeda <ojeda@kernel.org> > Link: https://github.com/Rust-for-Linux/linux/issues/1002 > > Signed-off-by: Roy Matero <materoy@proton.me> > --- > rust/bindings/bindings_helper.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/rust/bindings/bindings_helper.h b/rust/bindings/bindings_helper.h > index 50e7a76d5455..dc8d97272e71 100644 > --- a/rust/bindings/bindings_helper.h > +++ b/rust/bindings/bindings_helper.h > @@ -6,10 +6,10 @@ > * Sorted alphabetically. > */ > > -#include <linux/slab.h> > #include <linux/refcount.h> > -#include <linux/wait.h> > #include <linux/sched.h> > +#include <linux/slab.h> > +#include <linux/wait.h> > > /* `bindgen` gets confused at certain things. */ > const gfp_t BINDINGS_GFP_KERNEL = GFP_KERNEL; > -- > 2.40.1 > > Reviewed-by: Martin Rodriguez Reboredo <yakoyoku@gmail.com> ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] rust: bindings: fix sorting of rust/bindings/bindings_helper.h's #includes 2023-04-26 22:57 [PATCH] rust: bindings: fix sorting of rust/bindings/bindings_helper.h's #includes materoy 2023-04-27 0:38 ` Martin Rodriguez Reboredo @ 2023-05-03 10:45 ` Benno Lossin 2023-05-03 11:08 ` Miguel Ojeda 2023-05-03 10:59 ` [PATCH v1] rust: error: add ERESTARTSYS error code Alice Ryhl 2 siblings, 1 reply; 6+ messages in thread From: Benno Lossin @ 2023-05-03 10:45 UTC (permalink / raw) To: materoy Cc: Miguel Ojeda, Alex Gaynor, Wedson Almeida Filho, Boqun Feng, Gary Guo, Björn Roy Baron, Alice Ryhl, Martin Rodriguez Reboredo, rust-for-linux, linux-kernel On 27.04.23 00:57, materoy@proton.me wrote: > From: Roy Matero <materoy@proton.me> > > Fix sorting of rust/bindings/binding_helper.h's includes, > to maintain consistency and rust idoms > > Suggested-by: Miguel Ojeda <ojeda@kernel.org> > Link: https://github.com/Rust-for-Linux/linux/issues/1002 > > Signed-off-by: Roy Matero <materoy@proton.me> A couple of nits for the commit message (these can be applied by Miguel when picking the patch, if he agrees): - capitalize 'Rust', - add a `.` at the end, - remove the newline between the tags. I am not sure if the tags at the end should be sorted in any way. Reviewed-by: Benno Lossin <benno.lossin@proton.me> > --- > rust/bindings/bindings_helper.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/rust/bindings/bindings_helper.h b/rust/bindings/bindings_helper.h > index 50e7a76d5455..dc8d97272e71 100644 > --- a/rust/bindings/bindings_helper.h > +++ b/rust/bindings/bindings_helper.h > @@ -6,10 +6,10 @@ > * Sorted alphabetically. > */ > > -#include <linux/slab.h> > #include <linux/refcount.h> > -#include <linux/wait.h> > #include <linux/sched.h> > +#include <linux/slab.h> > +#include <linux/wait.h> > > /* `bindgen` gets confused at certain things. */ > const gfp_t BINDINGS_GFP_KERNEL = GFP_KERNEL; > -- > 2.40.1 > -- Cheers, Benno ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] rust: bindings: fix sorting of rust/bindings/bindings_helper.h's #includes 2023-05-03 10:45 ` Benno Lossin @ 2023-05-03 11:08 ` Miguel Ojeda 0 siblings, 0 replies; 6+ messages in thread From: Miguel Ojeda @ 2023-05-03 11:08 UTC (permalink / raw) To: Benno Lossin Cc: materoy, Miguel Ojeda, Alex Gaynor, Wedson Almeida Filho, Boqun Feng, Gary Guo, Björn Roy Baron, Alice Ryhl, Martin Rodriguez Reboredo, rust-for-linux, linux-kernel On Wed, May 3, 2023 at 12:45 PM Benno Lossin <benno.lossin@proton.me> wrote: > > A couple of nits for the commit message (these can be > applied by Miguel when picking the patch, if he agrees): Given this is one of the "get yourself familiarized with the kernel's development process" issues that I create from time to time, it is a good opportunity for Roy to fix those and send a v2. Roy, could you please do that? Please pass `-v2` to `git format-patch` when you do so, then also collect the two `Reviewed-by`s you got and put them above your `Signed-off-by`. > - capitalize 'Rust', > - add a `.` at the end, > - remove the newline between the tags. Also: typo "idoms" -> "idioms", and the title could be improved to: rust: bindings: sort `#include`s of `bindings_helper.h` since "rust/bindings" is already given by the prefixes etc. However, what does it mean "...and rust idoms"? This is C code, not Rust code, and thus it should follow kernel C idioms (which, in some cases, do sort the `#include`s too, so that is fine). Perhaps remove that bit, or say instead "Rust subsystem idioms" instead (since we do want to keep them sorted :) Thanks! Cheers, Miguel ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v1] rust: error: add ERESTARTSYS error code 2023-04-26 22:57 [PATCH] rust: bindings: fix sorting of rust/bindings/bindings_helper.h's #includes materoy 2023-04-27 0:38 ` Martin Rodriguez Reboredo 2023-05-03 10:45 ` Benno Lossin @ 2023-05-03 10:59 ` Alice Ryhl 2023-05-03 11:02 ` Alice Ryhl 2 siblings, 1 reply; 6+ messages in thread From: Alice Ryhl @ 2023-05-03 10:59 UTC (permalink / raw) To: materoy Cc: alex.gaynor, aliceryhl, benno.lossin, bjorn3_gh, boqun.feng, gary, linux-kernel, ojeda, rust-for-linux, wedsonaf, yakoyoku On 27.04.23 00:57, Roy Matero <materoy@proton.me> wrote: > Fix sorting of rust/bindings/binding_helper.h's includes, > to maintain consistency and rust idoms > > Suggested-by: Miguel Ojeda <ojeda@kernel.org> > Link: https://github.com/Rust-for-Linux/linux/issues/1002 > > Signed-off-by: Roy Matero <materoy@proton.me> Reviewed-by: Alice Ryhl <aliceryhl@google.com> ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v1] rust: error: add ERESTARTSYS error code 2023-05-03 10:59 ` [PATCH v1] rust: error: add ERESTARTSYS error code Alice Ryhl @ 2023-05-03 11:02 ` Alice Ryhl 0 siblings, 0 replies; 6+ messages in thread From: Alice Ryhl @ 2023-05-03 11:02 UTC (permalink / raw) To: materoy Cc: alex.gaynor, benno.lossin, bjorn3_gh, boqun.feng, gary, linux-kernel, ojeda, rust-for-linux, wedsonaf, yakoyoku Seems like I messed up something with this email. It's supposed to be a reply to https://lore.kernel.org/all/20230426224748.34056-1-materoy@proton.me/ On Wed, May 3, 2023 at 12:59 PM Alice Ryhl <aliceryhl@google.com> wrote: > > On 27.04.23 00:57, Roy Matero <materoy@proton.me> wrote: > > Fix sorting of rust/bindings/binding_helper.h's includes, > > to maintain consistency and rust idoms > > > > Suggested-by: Miguel Ojeda <ojeda@kernel.org> > > Link: https://github.com/Rust-for-Linux/linux/issues/1002 > > > > Signed-off-by: Roy Matero <materoy@proton.me> > > Reviewed-by: Alice Ryhl <aliceryhl@google.com> ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-05-03 11:08 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-04-26 22:57 [PATCH] rust: bindings: fix sorting of rust/bindings/bindings_helper.h's #includes materoy 2023-04-27 0:38 ` Martin Rodriguez Reboredo 2023-05-03 10:45 ` Benno Lossin 2023-05-03 11:08 ` Miguel Ojeda 2023-05-03 10:59 ` [PATCH v1] rust: error: add ERESTARTSYS error code Alice Ryhl 2023-05-03 11:02 ` Alice Ryhl
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).