summaryrefslogtreecommitdiffstats
path: root/include/kunit
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@kernel.org>2023-03-16 00:39:25 +0100
committerShuah Khan <skhan@linuxfoundation.org>2023-03-17 19:28:40 +0100
commit99be6588118bedc522fa989146f35efceff07c1e (patch)
tree2f4329e1f8414cc83c78f4a564c12811dafac1c5 /include/kunit
parentkunit: tool: fix pre-existing `mypy --strict` errors and update run_checks.py (diff)
downloadlinux-99be6588118bedc522fa989146f35efceff07c1e.tar.xz
linux-99be6588118bedc522fa989146f35efceff07c1e.zip
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 <sboyd@kernel.org> Reviewed-by: David Gow <davidgow@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'include/kunit')
-rw-r--r--include/kunit/resource.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/kunit/resource.h b/include/kunit/resource.h
index cf6fb8f2ac1b..c0d88b318e90 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, &params);
+ * kunit_kmalloc_free, gfp, &params);
* }
*
* Resources can also be named, with lookup/removal done on a name