Skip to content

Commit 5017ec6

Browse files
Dan Carpentershuahkh
authored andcommitted
kunit: skb: add gfp to kernel doc for kunit_zalloc_skb()
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 <[email protected]> Closes: https://lore.kernel.org/all/Zy+VIXDPuU613fFd@visitorckw-System-Product-Name/ Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Kuan-Wei Chiu <[email protected]> Reviewed-by: David Gow <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent fd0a5af commit 5017ec6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/kunit/skbuff.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ static void kunit_action_kfree_skb(void *p)
2020
* kunit_zalloc_skb() - Allocate and initialize a resource managed skb.
2121
* @test: The test case to which the skb belongs
2222
* @len: size to allocate
23+
* @gfp: allocation flags
2324
*
24-
* Allocate a new struct sk_buff with GFP_KERNEL, zero fill the give length
25+
* Allocate a new struct sk_buff with gfp flags, zero fill the given length
2526
* and add it as a resource to the kunit test for automatic cleanup.
2627
*
2728
* Returns: newly allocated SKB, or %NULL on error

0 commit comments

Comments
 (0)