]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
kunit: fix struct kunit_attr header
authorRae Moar <rmoar@google.com>
Thu, 17 Aug 2023 19:14:51 +0000 (19:14 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 21 Aug 2023 14:07:56 +0000 (08:07 -0600)
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 <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202308180127.VD7YRPGa-lkp@intel.com/
Signed-off-by: Rae Moar <rmoar@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
lib/kunit/attributes.c

index 5e3034b6be990b2bbd8a520a62839c978e272506..1b512f7e1838205799d6ab3d997567d46032adcd 100644 (file)
@@ -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;