]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
kunit: skb: add gfp to kernel doc for kunit_zalloc_skb()
authorDan Carpenter <dan.carpenter@linaro.org>
Mon, 11 Nov 2024 10:54:09 +0000 (13:54 +0300)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 19 Nov 2024 21:52:17 +0000 (14:52 -0700)
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>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
include/kunit/skbuff.h

index 345e1e8f031235719c7b04b655b5a4e104d15f80..07784694357c10eaa32d1c9db2d9068a4c9361c2 100644 (file)
@@ -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