rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] lib/Kconfig.debug: fix grammar in RUST_BUILD_ASSERT_ALLOW
@ 2023-06-05 16:12 timo.gr
  2023-06-16  1:17 ` Miguel Ojeda
  0 siblings, 1 reply; 8+ messages in thread
From: timo.gr @ 2023-06-05 16:12 UTC (permalink / raw)
  To: rust-for-linux, linux-kernel; +Cc: Timgrau, Miguel Ojeda

From: Timgrau <timo.gr@hotmail.de>

Just a grammar fix in lib/Kconfig.debug, under the config option RUST_BUILD_ASSERT_ALLOW.

Signed-off-by: Timgrau <timo.gr@hotmail.de>
Suggested-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://github.com/Rust-for-Linux/linux/issues/1006#issue-1696318406
Closes: https://github.com/Rust-for-Linux/linux/issues/1006#issue-1696318406
---
 lib/Kconfig.debug | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index ce51d4dc6803..a56b9b368e78 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -2899,7 +2899,7 @@ config RUST_BUILD_ASSERT_ALLOW
 	bool "Allow unoptimized build-time assertions"
 	depends on RUST
 	help
-	  Controls how are `build_error!` and `build_assert!` handled during build.
+	  Controls how `build_error!` and `build_assert!` are handled during build.
 
 	  If calls to them exist in the binary, it may indicate a violated invariant
 	  or that the optimizer failed to verify the invariant during compilation.
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] lib/Kconfig.debug: fix grammar in RUST_BUILD_ASSERT_ALLOW
  2023-06-05 16:12 [PATCH] lib/Kconfig.debug: fix grammar in RUST_BUILD_ASSERT_ALLOW timo.gr
@ 2023-06-16  1:17 ` Miguel Ojeda
  2023-06-25 10:05   ` Timo Grautstück
  0 siblings, 1 reply; 8+ messages in thread
From: Miguel Ojeda @ 2023-06-16  1:17 UTC (permalink / raw)
  To: timo.gr; +Cc: rust-for-linux, linux-kernel, Miguel Ojeda

On Mon, Jun 5, 2023 at 6:12 PM <timo.gr@hotmail.de> wrote:
>
> From: Timgrau <timo.gr@hotmail.de>
>
> Just a grammar fix in lib/Kconfig.debug, under the config option RUST_BUILD_ASSERT_ALLOW.
>
> Signed-off-by: Timgrau <timo.gr@hotmail.de>
> Suggested-by: Miguel Ojeda <ojeda@kernel.org>
> Link: https://github.com/Rust-for-Linux/linux/issues/1006#issue-1696318406
> Closes: https://github.com/Rust-for-Linux/linux/issues/1006#issue-1696318406

Thanks for the patch!

A few notes:

  - From a quick look, I think "Timgrau" is not a known identity to
the kernel, right? (e.g. I couldn't find any other commit on that
name). Assuming I am not mistaken, could you please instead your real
name?

  - When I wrote the report, I wrongly suggested `Suggested-by` +
`Link` because I didn't consider this a "bug". But you are probably
right that should be considered a fix anyway, so instead we should use
`Reported-by` and `Closes`. So could you please remove the `Link` and
change the `Suggested` to `Reported`?

  - Also, since this is now a fix, could you please also add the `Fixes:` tag?

  - For the `Closes`, you can remove the URL fragment part, i.e.
`#issue-1696318406`, since it is anyway the first comment.

If you could change those bits and send a v2, that would be great. Thanks!

Cheers,
Miguel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] lib/Kconfig.debug: fix grammar in RUST_BUILD_ASSERT_ALLOW
  2023-06-16  1:17 ` Miguel Ojeda
@ 2023-06-25 10:05   ` Timo Grautstück
  2023-08-02 15:29     ` Miguel Ojeda
  0 siblings, 1 reply; 8+ messages in thread
From: Timo Grautstück @ 2023-06-25 10:05 UTC (permalink / raw)
  To: Miguel Ojeda; +Cc: rust-for-linux, linux-kernel, Miguel Ojeda

Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> writes:

> On Mon, Jun 5, 2023 at 6:12 PM <timo.gr@hotmail.de> wrote:
>>
>> From: Timgrau <timo.gr@hotmail.de>
>>
>> Just a grammar fix in lib/Kconfig.debug, under the config option RUST_BUILD_ASSERT_ALLOW.
>>
>> Signed-off-by: Timgrau <timo.gr@hotmail.de>
>> Suggested-by: Miguel Ojeda <ojeda@kernel.org>
>> Link: https://github.com/Rust-for-Linux/linux/issues/1006#issue-1696318406
>> Closes: https://github.com/Rust-for-Linux/linux/issues/1006#issue-1696318406
>
> Thanks for the patch!
>
> A few notes:
>
>   - From a quick look, I think "Timgrau" is not a known identity to
> the kernel, right? (e.g. I couldn't find any other commit on that
> name). Assuming I am not mistaken, could you please instead your real
> name?

Right, I already thought so. My bad, will change it.
>
>   - When I wrote the report, I wrongly suggested `Suggested-by` +
> `Link` because I didn't consider this a "bug". But you are probably
> right that should be considered a fix anyway, so instead we should use
> `Reported-by` and `Closes`. So could you please remove the `Link` and
> change the `Suggested` to `Reported`?

Ahh ok, i also dont think you can call it a "bug". Is it not possible to
simply remove the `Closes:` tag from the patch and not categorize the
whole thing as a "bug"?
>
>   - Also, since this is now a fix, could you please also add the `Fixes:` tag?
>
>   - For the `Closes`, you can remove the URL fragment part, i.e.
> `#issue-1696318406`, since it is anyway the first comment.

In that case, these two points/notes above are not needet right?
>
> If you could change those bits and send a v2, that would be great. Thanks!
>
> Cheers,
> Miguel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] lib/Kconfig.debug: fix grammar in RUST_BUILD_ASSERT_ALLOW
  2023-06-25 10:05   ` Timo Grautstück
@ 2023-08-02 15:29     ` Miguel Ojeda
  2024-10-04  8:55       ` [PATCH v2] " Timo Grautstück
  0 siblings, 1 reply; 8+ messages in thread
From: Miguel Ojeda @ 2023-08-02 15:29 UTC (permalink / raw)
  To: Timo Grautstück; +Cc: rust-for-linux, linux-kernel, Miguel Ojeda

On Sun, Jun 25, 2023 at 12:05 PM Timo Grautstück <timo.gr@hotmail.de> wrote:
>
> Ahh ok, i also dont think you can call it a "bug". Is it not possible to
> simply remove the `Closes:` tag from the patch and not categorize the
> whole thing as a "bug"?

I think either way is fine. Since we have an issue in the tracker and
it is a fix, even if trivial, let's go with something like:

    Reported-by: Miguel Ojeda <ojeda@kernel.org>
    Closes: https://github.com/Rust-for-Linux/linux/issues/1006
    Fixes: <hash> ("<description>")
    Signed-off-by: <fixed real name> <timo.gr@hotmail.de>

For the formatting of the `Fixes:` tag, I recommend using the git
`--pretty=` config shown in
https://docs.kernel.org/process/submitting-patches.html.

Cheers,
Miguel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH v2] lib/Kconfig.debug: fix grammar in RUST_BUILD_ASSERT_ALLOW
  2023-08-02 15:29     ` Miguel Ojeda
@ 2024-10-04  8:55       ` Timo Grautstück
  2024-10-05 19:13         ` Miguel Ojeda
  0 siblings, 1 reply; 8+ messages in thread
From: Timo Grautstück @ 2024-10-04  8:55 UTC (permalink / raw)
  To: linux-kernel, rust-for-linux
  Cc: Timo Grautstück, Miguel Ojeda, Timo Grautstück

Just a grammar fix in lib/Kconfig.debug, under the config option RUST_BUILD_ASSERT_ALLOW.

Reported-by: Miguel Ojeda <ojeda@kernel.org>
Closes: https://github.com/Rust-for-Linux/linux/issues/1006
Fixes: ecaa6ddff2fd ("rust: add `build_error` crate")
Signed-off-by: Timo Grautstück <timo.grautsautstueck@web.de>
---
 lib/Kconfig.debug | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 7315f643817a..7312ae7c3cc5 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -3060,7 +3060,7 @@ config RUST_BUILD_ASSERT_ALLOW
 	bool "Allow unoptimized build-time assertions"
 	depends on RUST
 	help
-	  Controls how are `build_error!` and `build_assert!` handled during build.
+	  Controls how `build_error!` and `build_assert!` are handled during the build.

 	  If calls to them exist in the binary, it may indicate a violated invariant
 	  or that the optimizer failed to verify the invariant during compilation.
--
2.44.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH v2] lib/Kconfig.debug: fix grammar in RUST_BUILD_ASSERT_ALLOW
  2024-10-04  8:55       ` [PATCH v2] " Timo Grautstück
@ 2024-10-05 19:13         ` Miguel Ojeda
  2024-10-06 14:02           ` [PATCH v3] " Timo Grautstück
  0 siblings, 1 reply; 8+ messages in thread
From: Miguel Ojeda @ 2024-10-05 19:13 UTC (permalink / raw)
  To: Timo Grautstück
  Cc: linux-kernel, rust-for-linux, Miguel Ojeda, Timo Grautstück

On Fri, Oct 4, 2024 at 10:56 AM Timo Grautstück <timo.grautstueck@web.de> wrote:
>
> Signed-off-by: Timo Grautstück <timo.grautsautstueck@web.de>

This email is different than the `From:` one --
`scripts/checkpatch.pl` reports it, please double-check with the
script.

Thanks!

Cheers,
Miguel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH v3] lib/Kconfig.debug: fix grammar in RUST_BUILD_ASSERT_ALLOW
  2024-10-05 19:13         ` Miguel Ojeda
@ 2024-10-06 14:02           ` Timo Grautstück
  2024-10-07 17:14             ` Miguel Ojeda
  0 siblings, 1 reply; 8+ messages in thread
From: Timo Grautstück @ 2024-10-06 14:02 UTC (permalink / raw)
  To: miguel.ojeda.sandonis
  Cc: linux-kernel, ojeda, rust-for-linux, timo.grautstueck

From: Timo Grautstueck <timo.grautstueck@web.de>

Just a grammar fix in lib/Kconfig.debug, under the config option
RUST_BUILD_ASSERT_ALLOW.

Reported-by: Miguel Ojeda <ojeda@kernel.org>
Closes: https://github.com/Rust-for-Linux/linux/issues/1006
Fixes: ecaa6ddff2fd ("rust: add `build_error` crate")
Signed-off-by: Timo Grautstueck <timo.grautstueck@web.de>
---
 lib/Kconfig.debug | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 7315f643817a..7312ae7c3cc5 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -3060,7 +3060,7 @@ config RUST_BUILD_ASSERT_ALLOW
 	bool "Allow unoptimized build-time assertions"
 	depends on RUST
 	help
-	  Controls how are `build_error!` and `build_assert!` handled during build.
+	  Controls how `build_error!` and `build_assert!` are handled during the build.

 	  If calls to them exist in the binary, it may indicate a violated invariant
 	  or that the optimizer failed to verify the invariant during compilation.
--
2.44.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH v3] lib/Kconfig.debug: fix grammar in RUST_BUILD_ASSERT_ALLOW
  2024-10-06 14:02           ` [PATCH v3] " Timo Grautstück
@ 2024-10-07 17:14             ` Miguel Ojeda
  0 siblings, 0 replies; 8+ messages in thread
From: Miguel Ojeda @ 2024-10-07 17:14 UTC (permalink / raw)
  To: Timo Grautstück; +Cc: linux-kernel, ojeda, rust-for-linux

On Sun, Oct 6, 2024 at 4:03 PM Timo Grautstück <timo.grautstueck@web.de> wrote:
>
> From: Timo Grautstueck <timo.grautstueck@web.de>
>
> Just a grammar fix in lib/Kconfig.debug, under the config option
> RUST_BUILD_ASSERT_ALLOW.
>
> Reported-by: Miguel Ojeda <ojeda@kernel.org>
> Closes: https://github.com/Rust-for-Linux/linux/issues/1006
> Fixes: ecaa6ddff2fd ("rust: add `build_error` crate")
> Signed-off-by: Timo Grautstueck <timo.grautstueck@web.de>

Applied to `rust-fixes` -- thanks!

(If we don't get any other fixes, I may end up applying this to
`rust-next`, since it is trivial)

Cheers,
Miguel

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-10-07 17:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-05 16:12 [PATCH] lib/Kconfig.debug: fix grammar in RUST_BUILD_ASSERT_ALLOW timo.gr
2023-06-16  1:17 ` Miguel Ojeda
2023-06-25 10:05   ` Timo Grautstück
2023-08-02 15:29     ` Miguel Ojeda
2024-10-04  8:55       ` [PATCH v2] " Timo Grautstück
2024-10-05 19:13         ` Miguel Ojeda
2024-10-06 14:02           ` [PATCH v3] " Timo Grautstück
2024-10-07 17:14             ` 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).