mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 21:21:41 +00:00
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: f2c6dbd220
("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>
This commit is contained in:
parent
f2c6dbd220
commit
12cb32a52e
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user