* [PATCH] kunit: skb: add gfp to kernel doc for kunit_zalloc_skb()
@ 2024-11-11 10:54 Dan Carpenter
2024-11-11 16:09 ` Kuan-Wei Chiu
2024-11-12 6:20 ` David Gow
0 siblings, 2 replies; 3+ messages in thread
From: Dan Carpenter @ 2024-11-11 10:54 UTC (permalink / raw)
To: Brendan Higgins
Cc: David Gow, Rae Moar, linux-kselftest, kunit-dev, linux-kernel,
kernel-janitors
Kuan-Wei Chiu pointed out that the kernel doc for kunit_zalloc_skb()
needs to include the @gfp information. Add it.
Reported-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Closes: https://lore.kernel.org/all/Zy+VIXDPuU613fFd@visitorckw-System-Product-Name/
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
---
include/kunit/skbuff.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/kunit/skbuff.h b/include/kunit/skbuff.h
index 345e1e8f0312..07784694357c 100644
--- a/include/kunit/skbuff.h
+++ b/include/kunit/skbuff.h
@@ -20,8 +20,9 @@ static void kunit_action_kfree_skb(void *p)
* kunit_zalloc_skb() - Allocate and initialize a resource managed skb.
* @test: The test case to which the skb belongs
* @len: size to allocate
+ * @gfp: allocation flags
*
- * Allocate a new struct sk_buff with GFP_KERNEL, zero fill the give length
+ * Allocate a new struct sk_buff with gfp flags, zero fill the given length
* and add it as a resource to the kunit test for automatic cleanup.
*
* Returns: newly allocated SKB, or %NULL on error
--
2.45.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] kunit: skb: add gfp to kernel doc for kunit_zalloc_skb()
2024-11-11 10:54 [PATCH] kunit: skb: add gfp to kernel doc for kunit_zalloc_skb() Dan Carpenter
@ 2024-11-11 16:09 ` Kuan-Wei Chiu
2024-11-12 6:20 ` David Gow
1 sibling, 0 replies; 3+ messages in thread
From: Kuan-Wei Chiu @ 2024-11-11 16:09 UTC (permalink / raw)
To: Dan Carpenter
Cc: Brendan Higgins, David Gow, Rae Moar, linux-kselftest, kunit-dev,
linux-kernel, kernel-janitors
On Mon, Nov 11, 2024 at 01:54:09PM +0300, Dan Carpenter wrote:
> Kuan-Wei Chiu pointed out that the kernel doc for kunit_zalloc_skb()
> needs to include the @gfp information. Add it.
>
> Reported-by: Kuan-Wei Chiu <visitorckw@gmail.com>
> Closes: https://lore.kernel.org/all/Zy+VIXDPuU613fFd@visitorckw-System-Product-Name/
> Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Regards,
Kuan-Wei
> ---
> include/kunit/skbuff.h | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/include/kunit/skbuff.h b/include/kunit/skbuff.h
> index 345e1e8f0312..07784694357c 100644
> --- a/include/kunit/skbuff.h
> +++ b/include/kunit/skbuff.h
> @@ -20,8 +20,9 @@ static void kunit_action_kfree_skb(void *p)
> * kunit_zalloc_skb() - Allocate and initialize a resource managed skb.
> * @test: The test case to which the skb belongs
> * @len: size to allocate
> + * @gfp: allocation flags
> *
> - * Allocate a new struct sk_buff with GFP_KERNEL, zero fill the give length
> + * Allocate a new struct sk_buff with gfp flags, zero fill the given length
> * and add it as a resource to the kunit test for automatic cleanup.
> *
> * Returns: newly allocated SKB, or %NULL on error
> --
> 2.45.2
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] kunit: skb: add gfp to kernel doc for kunit_zalloc_skb()
2024-11-11 10:54 [PATCH] kunit: skb: add gfp to kernel doc for kunit_zalloc_skb() Dan Carpenter
2024-11-11 16:09 ` Kuan-Wei Chiu
@ 2024-11-12 6:20 ` David Gow
1 sibling, 0 replies; 3+ messages in thread
From: David Gow @ 2024-11-12 6:20 UTC (permalink / raw)
To: Dan Carpenter
Cc: Brendan Higgins, Rae Moar, linux-kselftest, kunit-dev,
linux-kernel, kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 1310 bytes --]
On Mon, 11 Nov 2024 at 18:54, Dan Carpenter <dan.carpenter@linaro.org> wrote:
>
> Kuan-Wei Chiu pointed out that the kernel doc for kunit_zalloc_skb()
> needs to include the @gfp information. Add it.
>
> Reported-by: Kuan-Wei Chiu <visitorckw@gmail.com>
> Closes: https://lore.kernel.org/all/Zy+VIXDPuU613fFd@visitorckw-System-Product-Name/
> Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
> ---
> include/kunit/skbuff.h | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/include/kunit/skbuff.h b/include/kunit/skbuff.h
> index 345e1e8f0312..07784694357c 100644
> --- a/include/kunit/skbuff.h
> +++ b/include/kunit/skbuff.h
> @@ -20,8 +20,9 @@ static void kunit_action_kfree_skb(void *p)
> * kunit_zalloc_skb() - Allocate and initialize a resource managed skb.
> * @test: The test case to which the skb belongs
> * @len: size to allocate
> + * @gfp: allocation flags
> *
> - * Allocate a new struct sk_buff with GFP_KERNEL, zero fill the give length
> + * Allocate a new struct sk_buff with gfp flags, zero fill the given length
> * and add it as a resource to the kunit test for automatic cleanup.
> *
> * Returns: newly allocated SKB, or %NULL on error
> --
Thanks for fixing this.
Reviewed-by: David Gow <davidgow@google.com>
Cheers,
-- David
> 2.45.2
>
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5294 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-11-12 6:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-11 10:54 [PATCH] kunit: skb: add gfp to kernel doc for kunit_zalloc_skb() Dan Carpenter
2024-11-11 16:09 ` Kuan-Wei Chiu
2024-11-12 6:20 ` David Gow
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox