diff options
author | David Gow <davidgow@google.com> | 2024-09-05 04:47:55 +0200 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2024-09-05 22:29:10 +0200 |
commit | 12cb32a52eb607dc4d0e45fe6f4cf946d08da0fd (patch) | |
tree | 4ab6e766fc344b9370ace41736415375281ba76e /include/kunit/test.h | |
parent | kunit: Device wrappers should also manage driver name (diff) | |
download | linux-12cb32a52eb607dc4d0e45fe6f4cf946d08da0fd.tar.xz linux-12cb32a52eb607dc4d0e45fe6f4cf946d08da0fd.zip |
kunit: Fix missing kerneldoc comment
Add a missing kerneldoc comment for the 'test' test context parameter,
fixing the following warning:
include/kunit/test.h:492: warning: Function parameter or struct member 'test' not described in 'kunit_kfree_const'
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Closes: https://lore.kernel.org/lkml/20240827160631.67e121ed@canb.auug.org.au/
Fixes: f2c6dbd22017 ("kunit: Device wrappers should also manage driver name")
Signed-off-by: David Gow <davidgow@google.com>
Reviewed-by: Kees Cook <kees@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to '')
-rw-r--r-- | include/kunit/test.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/kunit/test.h b/include/kunit/test.h index 5ac237c949a0..34b71e42fb10 100644 --- a/include/kunit/test.h +++ b/include/kunit/test.h @@ -484,6 +484,7 @@ static inline void *kunit_kcalloc(struct kunit *test, size_t n, size_t size, gfp /** * kunit_kfree_const() - conditionally free test managed memory + * @test: The test context object. * @x: pointer to the memory * * Calls kunit_kfree() only if @x is not in .rodata section. |