Skip to content

Commit 12cb32a

Browse files
sulixshuahkh
authored andcommitted
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 <[email protected]> Closes: https://lore.kernel.org/lkml/[email protected]/ Fixes: f2c6dbd ("kunit: Device wrappers should also manage driver name") Signed-off-by: David Gow <[email protected]> Reviewed-by: Kees Cook <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent f2c6dbd commit 12cb32a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/kunit/test.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ static inline void *kunit_kcalloc(struct kunit *test, size_t n, size_t size, gfp
484484

485485
/**
486486
* kunit_kfree_const() - conditionally free test managed memory
487+
* @test: The test context object.
487488
* @x: pointer to the memory
488489
*
489490
* Calls kunit_kfree() only if @x is not in .rodata section.

0 commit comments

Comments
 (0)