* [PATCH] kunit: Fix missing kerneldoc comment
@ 2024-09-05 2:47 David Gow
2024-09-05 15:31 ` Shuah Khan
2024-09-05 16:56 ` Kees Cook
0 siblings, 2 replies; 3+ messages in thread
From: David Gow @ 2024-09-05 2:47 UTC (permalink / raw)
To: Brendan Higgins, Rae Moar, Shuah Khan, Kees Cook, Maxime Ripard,
Stephen Rothwell
Cc: David Gow, linux-kselftest, kunit-dev, linux-kernel
Add a missing kerneldoc comment for the 'test' test context parameter,
fixing the following warning:
include/kunit/test.h:492: warning: Function parameter or struct member 'test' not described in 'kunit_kfree_const'
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Closes: https://lore.kernel.org/lkml/20240827160631.67e121ed@canb.auug.org.au/
Fixes: f2c6dbd22017 ("kunit: Device wrappers should also manage driver name")
Signed-off-by: David Gow <davidgow@google.com>
---
include/kunit/test.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/kunit/test.h b/include/kunit/test.h
index 5ac237c949a0..34b71e42fb10 100644
--- a/include/kunit/test.h
+++ b/include/kunit/test.h
@@ -484,6 +484,7 @@ static inline void *kunit_kcalloc(struct kunit *test, size_t n, size_t size, gfp
/**
* kunit_kfree_const() - conditionally free test managed memory
+ * @test: The test context object.
* @x: pointer to the memory
*
* Calls kunit_kfree() only if @x is not in .rodata section.
--
2.46.0.469.g59c65b2a67-goog
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] kunit: Fix missing kerneldoc comment
2024-09-05 2:47 [PATCH] kunit: Fix missing kerneldoc comment David Gow
@ 2024-09-05 15:31 ` Shuah Khan
2024-09-05 16:56 ` Kees Cook
1 sibling, 0 replies; 3+ messages in thread
From: Shuah Khan @ 2024-09-05 15:31 UTC (permalink / raw)
To: David Gow, Brendan Higgins, Rae Moar, Kees Cook, Maxime Ripard,
Stephen Rothwell
Cc: linux-kselftest, kunit-dev, linux-kernel, Shuah Khan
On 9/4/24 20:47, David Gow wrote:
> Add a missing kerneldoc comment for the 'test' test context parameter,
> fixing the following warning:
>
> include/kunit/test.h:492: warning: Function parameter or struct member 'test' not described in 'kunit_kfree_const'
>
> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> Closes: https://lore.kernel.org/lkml/20240827160631.67e121ed@canb.auug.org.au/
> Fixes: f2c6dbd22017 ("kunit: Device wrappers should also manage driver name")
> Signed-off-by: David Gow <davidgow@google.com>
> ---
> include/kunit/test.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/include/kunit/test.h b/include/kunit/test.h
> index 5ac237c949a0..34b71e42fb10 100644
> --- a/include/kunit/test.h
> +++ b/include/kunit/test.h
> @@ -484,6 +484,7 @@ static inline void *kunit_kcalloc(struct kunit *test, size_t n, size_t size, gfp
>
> /**
> * kunit_kfree_const() - conditionally free test managed memory
> + * @test: The test context object.
> * @x: pointer to the memory
> *
> * Calls kunit_kfree() only if @x is not in .rodata section.
David,
I sent PR for 6.11-rc7 for the following since it is a critical
fix.
kunit: Device wrappers should also manage driver name
I will take this in once the pr clears applying for 6.12-rc1
thanks,
-- Shuah
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] kunit: Fix missing kerneldoc comment
2024-09-05 2:47 [PATCH] kunit: Fix missing kerneldoc comment David Gow
2024-09-05 15:31 ` Shuah Khan
@ 2024-09-05 16:56 ` Kees Cook
1 sibling, 0 replies; 3+ messages in thread
From: Kees Cook @ 2024-09-05 16:56 UTC (permalink / raw)
To: David Gow
Cc: Brendan Higgins, Rae Moar, Shuah Khan, Maxime Ripard,
Stephen Rothwell, linux-kselftest, kunit-dev, linux-kernel
On Thu, Sep 05, 2024 at 10:47:55AM +0800, David Gow wrote:
> Add a missing kerneldoc comment for the 'test' test context parameter,
> fixing the following warning:
>
> include/kunit/test.h:492: warning: Function parameter or struct member 'test' not described in 'kunit_kfree_const'
>
> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> Closes: https://lore.kernel.org/lkml/20240827160631.67e121ed@canb.auug.org.au/
> Fixes: f2c6dbd22017 ("kunit: Device wrappers should also manage driver name")
> Signed-off-by: David Gow <davidgow@google.com>
Reviewed-by: Kees Cook <kees@kernel.org>
--
Kees Cook
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-09-05 16:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-05 2:47 [PATCH] kunit: Fix missing kerneldoc comment David Gow
2024-09-05 15:31 ` Shuah Khan
2024-09-05 16:56 ` Kees Cook
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox