diff options
author | 2024-11-11 13:54:09 +0300 | |
---|---|---|
committer | 2024-11-19 14:52:17 -0700 | |
commit | 5017ec667b48464a301d34db9b63fa5ab8765d49 (patch) | |
tree | 4ec80a9b2e69073d2cad9dfa3e8150fa3490821c | |
parent | kunit: skb: use "gfp" variable instead of hardcoding GFP_KERNEL (diff) | |
download | wireguard-linux-5017ec667b48464a301d34db9b63fa5ab8765d49.tar.xz wireguard-linux-5017ec667b48464a301d34db9b63fa5ab8765d49.zip |
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 <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>
Diffstat (limited to '')
-rw-r--r-- | include/kunit/skbuff.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 |