From: Stephen Boyd Date: Wed, 15 Mar 2023 23:39:25 +0000 (-0700) Subject: kunit: Use gfp in kunit_alloc_resource() kernel-doc X-Git-Tag: v6.4-rc1~198^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=99be6588118bedc522fa989146f35efceff07c1e;p=thirdparty%2Fkernel%2Flinux.git kunit: Use gfp in kunit_alloc_resource() kernel-doc Copy/pasting the code from the kernel-doc here doesn't compile because kunit_alloc_resource() takes a gfp flags argument. Pass the gfp argument from the caller to complete the example. Signed-off-by: Stephen Boyd Reviewed-by: David Gow Signed-off-by: Shuah Khan --- diff --git a/include/kunit/resource.h b/include/kunit/resource.h index cf6fb8f2ac1bd..c0d88b318e906 100644 --- a/include/kunit/resource.h +++ b/include/kunit/resource.h @@ -72,7 +72,7 @@ typedef void (*kunit_resource_free_t)(struct kunit_resource *); * params.gfp = gfp; * * return kunit_alloc_resource(test, kunit_kmalloc_init, - * kunit_kmalloc_free, ¶ms); + * kunit_kmalloc_free, gfp, ¶ms); * } * * Resources can also be named, with lookup/removal done on a name