mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01:00
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]>
This commit is contained in:
1 parent
fd0a5afb54
commit
5017ec667b
1 file changed
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user