public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
* [PATCH] kunit: fixes backtrace suppression test module description
@ 2025-03-29 15:05 Alessandro Carminati
  2025-03-30  5:11 ` David Gow
  0 siblings, 1 reply; 3+ messages in thread
From: Alessandro Carminati @ 2025-03-29 15:05 UTC (permalink / raw)
  To: linux-kselftest
  Cc: Dan Carpenter, Kees Cook, Daniel Diaz, David Gow, Arthur Grillo,
	Brendan Higgins, Naresh Kamboju, Andrew Morton, Maxime Ripard,
	Ville Syrjala, Daniel Vetter, Guenter Roeck, Alessandro Carminati,
	Jani Nikula, Stephen Rothwell, Jeff Johnson, dri-devel, kunit-dev,
	linux-kernel, linux-next, Alessandro Carminati

Adds module description to the backtrace suppression test

Fixes:  ("19f3496") kunit: add test cases for backtrace warning suppression

Signed-off-by: Alessandro Carminati <acarmina@redhat•com>
---
 lib/kunit/backtrace-suppression-test.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/kunit/backtrace-suppression-test.c b/lib/kunit/backtrace-suppression-test.c
index 8b4125af2481..d4c5df09bba6 100644
--- a/lib/kunit/backtrace-suppression-test.c
+++ b/lib/kunit/backtrace-suppression-test.c
@@ -102,3 +102,4 @@ static struct kunit_suite backtrace_suppression_test_suite = {
 kunit_test_suites(&backtrace_suppression_test_suite);
 
 MODULE_LICENSE("GPL");
+MODULE_DESCRIPTION("KUnit test to verify warning backtrace suppression");
-- 
2.34.1


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

* Re: [PATCH] kunit: fixes backtrace suppression test module description
  2025-03-29 15:05 [PATCH] kunit: fixes backtrace suppression test module description Alessandro Carminati
@ 2025-03-30  5:11 ` David Gow
  2025-03-31  8:06   ` Dan Carpenter
  0 siblings, 1 reply; 3+ messages in thread
From: David Gow @ 2025-03-30  5:11 UTC (permalink / raw)
  To: Alessandro Carminati
  Cc: linux-kselftest, Dan Carpenter, Kees Cook, Daniel Diaz,
	Arthur Grillo, Brendan Higgins, Naresh Kamboju, Andrew Morton,
	Maxime Ripard, Ville Syrjala, Daniel Vetter, Guenter Roeck,
	Alessandro Carminati, Jani Nikula, Stephen Rothwell, Jeff Johnson,
	dri-devel, kunit-dev, linux-kernel, linux-next

[-- Attachment #1: Type: text/plain, Size: 1447 bytes --]

On Sat, 29 Mar 2025 at 23:06, Alessandro Carminati <acarmina@redhat•com> wrote:
>
> Adds module description to the backtrace suppression test
>
> Fixes:  ("19f3496") kunit: add test cases for backtrace warning suppression
>
> Signed-off-by: Alessandro Carminati <acarmina@redhat•com>
> ---

The "Fixes" tag here should be immediately before the Signed-off-by
line, without a newline. Also, ideally the format should be something
like:
Fixes: d03d078df162 ("kunit: add test cases for backtrace warning suppression")

(But you'll need to make sure the commit hash matches the one which
actually lands -- I picked d03d078df162 from the current
mm-nonmm-unstable branch.)

Nevertheless, I like the content of this, so it should be either
accepted or rolled into a new version of the backtrace suppression
test.

Acked-by: David Gow <davidgow@google•com>

Cheers,
-- David

>  lib/kunit/backtrace-suppression-test.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/lib/kunit/backtrace-suppression-test.c b/lib/kunit/backtrace-suppression-test.c
> index 8b4125af2481..d4c5df09bba6 100644
> --- a/lib/kunit/backtrace-suppression-test.c
> +++ b/lib/kunit/backtrace-suppression-test.c
> @@ -102,3 +102,4 @@ static struct kunit_suite backtrace_suppression_test_suite = {
>  kunit_test_suites(&backtrace_suppression_test_suite);
>
>  MODULE_LICENSE("GPL");
> +MODULE_DESCRIPTION("KUnit test to verify warning backtrace suppression");
> --
> 2.34.1
>

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5281 bytes --]

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

* Re: [PATCH] kunit: fixes backtrace suppression test module description
  2025-03-30  5:11 ` David Gow
@ 2025-03-31  8:06   ` Dan Carpenter
  0 siblings, 0 replies; 3+ messages in thread
From: Dan Carpenter @ 2025-03-31  8:06 UTC (permalink / raw)
  To: David Gow
  Cc: Alessandro Carminati, linux-kselftest, Kees Cook, Daniel Diaz,
	Arthur Grillo, Brendan Higgins, Naresh Kamboju, Andrew Morton,
	Maxime Ripard, Ville Syrjala, Daniel Vetter, Guenter Roeck,
	Alessandro Carminati, Jani Nikula, Stephen Rothwell, Jeff Johnson,
	dri-devel, kunit-dev, linux-kernel, linux-next

On Sun, Mar 30, 2025 at 01:11:59PM +0800, David Gow wrote:
> On Sat, 29 Mar 2025 at 23:06, Alessandro Carminati <acarmina@redhat•com> wrote:
> >
> > Adds module description to the backtrace suppression test
> >
> > Fixes:  ("19f3496") kunit: add test cases for backtrace warning suppression
> >
> > Signed-off-by: Alessandro Carminati <acarmina@redhat•com>
> > ---
> 
> The "Fixes" tag here should be immediately before the Signed-off-by
> line, without a newline. Also, ideally the format should be something
> like:
> Fixes: d03d078df162 ("kunit: add test cases for backtrace warning suppression")
> 

Yeah.  Everyone should configure the default hash length to 12.

git config set --global core.abbrev 12

I generate my fixes tags like so:

#!/bin/bash

git log -1 --format='Fixes: %h ("%s")' $*

regards,
dan carpenter


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

end of thread, other threads:[~2025-03-31  8:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-29 15:05 [PATCH] kunit: fixes backtrace suppression test module description Alessandro Carminati
2025-03-30  5:11 ` David Gow
2025-03-31  8:06   ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox