aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRae Moar <[email protected]>2023-08-17 19:14:51 +0000
committerShuah Khan <[email protected]>2023-08-21 08:07:56 -0600
commit25e324bc9cf2ee956eec1db384c39c1a17b7c44a (patch)
tree13d0cfdd722a15e9732dacacb7c963ea65694614
parent582eb3aeed2d06b122fba95518b84506d3d4ceb9 (diff)
kunit: fix struct kunit_attr header
Add parameter descriptions to struct kunit_attr header for the parameters attr_default and print. Fixes: 39e92cb1e4a1 ("kunit: Add test attributes API structure") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Rae Moar <[email protected]> Reviewed-by: David Gow <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
-rw-r--r--lib/kunit/attributes.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/kunit/attributes.c b/lib/kunit/attributes.c
index 5e3034b6be99..1b512f7e1838 100644
--- a/lib/kunit/attributes.c
+++ b/lib/kunit/attributes.c
@@ -30,6 +30,8 @@ enum print_ops {
* attribute value
* @filter: function to indicate whether a given attribute value passes a
* filter
+ * @attr_default: default attribute value used during filtering
+ * @print: value of enum print_ops to indicate when to print attribute
*/
struct kunit_attr {
const char *name;