Skip to contentSkip to conversation

kunit: Fix missing kerneldoc comment

PATCH In review David Gow 3 participants 3 messages Sep 5, 2024

Subsystems (2)
lore
Share & tools
lore

David Gow

author
#0 lore raw

PATCH 1/1 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'

Fixes f2c6dbd22017 ("kunit: Device wrappers should also manage driver name")
---
 include/kunit/test.h | 1 +
 1 file changed, 1 insertion(+)
include/kunit/test.h +1 -0
index 5ac237c949a0..34b71e42fb10 100644
@@ -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.
Signature · 1 line
2.46.0.469.g59c65b2a67-goog
maintainer
#1 lore raw
Quoted 18 lines · David Gow

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'

Fixes f2c6dbd22017 ("kunit: Device wrappers should also manage driver name")
---
  include/kunit/test.h | 1 +
  1 file changed, 1 insertion(+)
include/kunit/test.h +0 -0
index 5ac237c949a0..34b71e42fb10 100644

include/kunit/test.h static inline void *kunit_kcalloc(struct kunit *test, size_t n, size_t size, gfp · line 490

Quoted 7 lines
include/kunit/test.h +1 -0
@@ -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.

David,

I sent PR for 6.11-rc7 for the following since it is a critical fix.

kunit: Device wrappers should also manage driver name

I will take this in once the pr clears applying for 6.12-rc1

thanks,
-- Shuah

Reviewed-by on v1 1/1
#2 lore raw
In reply to David Gow
Quoted 9 lines · David Gow

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'

Fixes f2c6dbd22017 ("kunit: Device wrappers should also manage driver name")
Signature · 1 line
Kees Cook