* [PATCH v2] rust: sort blk includes in bindings_helper.h
@ 2024-08-09 13:28 Alice Ryhl
2024-08-09 13:47 ` Danilo Krummrich
2024-08-21 22:12 ` Miguel Ojeda
0 siblings, 2 replies; 3+ messages in thread
From: Alice Ryhl @ 2024-08-09 13:28 UTC (permalink / raw)
To: Jens Axboe, Miguel Ojeda, Andreas Hindborg, Danilo Krummrich
Cc: linux-block, rust-for-linux, linux-kernel, Alice Ryhl
The headers in this file are sorted alphabetically, which makes it
easy to quickly resolve conflicts by selecting all of the headers and
invoking :'<,'>sort to sort them. To keep this technique to resolve
conflicts working, also apply sorting to symbols that are not letters.
This file is very prone to merge conflicts, so I think keeping conflict
resolution really easy is more important than not messing with git blame
history.
These includes were originally introduced in commit 3253aba3408a ("rust:
block: introduce `kernel::block::mq` module").
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
---
Changes since v1:
- Reword commit message.
v1: https://lore.kernel.org/r/20240809064222.3527881-1-aliceryhl@google.com
rust/bindings/bindings_helper.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rust/bindings/bindings_helper.h b/rust/bindings/bindings_helper.h
index b940a5777330..ae82e9c941af 100644
--- a/rust/bindings/bindings_helper.h
+++ b/rust/bindings/bindings_helper.h
@@ -6,9 +6,9 @@
* Sorted alphabetically.
*/
#include <kunit/test.h>
-#include <linux/blk_types.h>
#include <linux/blk-mq.h>
+#include <linux/blk_types.h>
#include <linux/blkdev.h>
#include <linux/errname.h>
#include <linux/ethtool.h>
base-commit: de9c2c66ad8e787abec7c9d7eff4f8c3cdd28aed
--
2.46.0.76.ge559c4bf1a-goog
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] rust: sort blk includes in bindings_helper.h
2024-08-09 13:28 [PATCH v2] rust: sort blk includes in bindings_helper.h Alice Ryhl
@ 2024-08-09 13:47 ` Danilo Krummrich
2024-08-21 22:12 ` Miguel Ojeda
1 sibling, 0 replies; 3+ messages in thread
From: Danilo Krummrich @ 2024-08-09 13:47 UTC (permalink / raw)
To: Alice Ryhl
Cc: Miguel Ojeda, Jens Axboe, Andreas Hindborg, linux-block,
rust-for-linux, linux-kernel
On 8/9/24 3:28 PM, Alice Ryhl wrote:
> The headers in this file are sorted alphabetically, which makes it
> easy to quickly resolve conflicts by selecting all of the headers and
> invoking :'<,'>sort to sort them. To keep this technique to resolve
> conflicts working, also apply sorting to symbols that are not letters.
>
> This file is very prone to merge conflicts, so I think keeping conflict
> resolution really easy is more important than not messing with git blame
> history.
>
> These includes were originally introduced in commit 3253aba3408a ("rust:
> block: introduce `kernel::block::mq` module").
>
> Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Now as before, feel free to add
Acked-by: Danilo Krummrich <dakr@kernel.org>
> ---
> Changes since v1:
> - Reword commit message.
>
> v1: https://lore.kernel.org/r/20240809064222.3527881-1-aliceryhl@google.com
>
> rust/bindings/bindings_helper.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/rust/bindings/bindings_helper.h b/rust/bindings/bindings_helper.h
> index b940a5777330..ae82e9c941af 100644
> --- a/rust/bindings/bindings_helper.h
> +++ b/rust/bindings/bindings_helper.h
> @@ -6,9 +6,9 @@
> * Sorted alphabetically.
> */
>
> #include <kunit/test.h>
> -#include <linux/blk_types.h>
> #include <linux/blk-mq.h>
> +#include <linux/blk_types.h>
> #include <linux/blkdev.h>
> #include <linux/errname.h>
> #include <linux/ethtool.h>
>
> base-commit: de9c2c66ad8e787abec7c9d7eff4f8c3cdd28aed
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] rust: sort blk includes in bindings_helper.h
2024-08-09 13:28 [PATCH v2] rust: sort blk includes in bindings_helper.h Alice Ryhl
2024-08-09 13:47 ` Danilo Krummrich
@ 2024-08-21 22:12 ` Miguel Ojeda
1 sibling, 0 replies; 3+ messages in thread
From: Miguel Ojeda @ 2024-08-21 22:12 UTC (permalink / raw)
To: Alice Ryhl
Cc: Jens Axboe, Miguel Ojeda, Andreas Hindborg, Danilo Krummrich,
linux-block, rust-for-linux, linux-kernel
On Fri, Aug 9, 2024 at 3:28 PM Alice Ryhl <aliceryhl@google.com> wrote:
>
> The headers in this file are sorted alphabetically, which makes it
> easy to quickly resolve conflicts by selecting all of the headers and
> invoking :'<,'>sort to sort them. To keep this technique to resolve
> conflicts working, also apply sorting to symbols that are not letters.
>
> This file is very prone to merge conflicts, so I think keeping conflict
> resolution really easy is more important than not messing with git blame
> history.
>
> These includes were originally introduced in commit 3253aba3408a ("rust:
> block: introduce `kernel::block::mq` module").
>
> Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Applied to `rust-next` -- thanks everyone!
Cheers,
Miguel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-08-21 22:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-09 13:28 [PATCH v2] rust: sort blk includes in bindings_helper.h Alice Ryhl
2024-08-09 13:47 ` Danilo Krummrich
2024-08-21 22:12 ` Miguel Ojeda
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).