kunit: Fix some comments which were mistakenly kerneldoc
PATCH 1/1 kunit: Fix some comments which were mistakenly kerneldoc
The KUnit device helpers are documented with kerneldoc in their header file, but also have short comments over their implementation. These were mistakenly formatted as kerneldoc comments, even though they're not valid kerneldoc. It shouldn't cause any serious problems -- this file isn't included in the docs -- but it could be confusing, and causes warnings.
Remove the extra '*' so that these aren't treated as kerneldoc.
--- lib/kunit/device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
lib/kunit/device.c +3 -3
@@ -60,7 +60,7 @@ static void kunit_device_release(struct device *d)kfree (to_kunit_device (d)); } -/** +/* * Create and register a KUnit-managed struct device_driver on the kunit_bus. * Returns an error pointer on failure. */
@@ -124,7 +124,7 @@ static struct kunit_device *kunit_device_register_internal(struct kunit *test,return kunit_dev; } -/** +/* * Create and register a new KUnit-managed device, using the user-supplied device_driver. * On failure, returns an error pointer. */
@@ -141,7 +141,7 @@ struct device *kunit_device_register_with_driver(struct kunit *test, }EXPORT_SYMBOL_GPL (kunit_device_register_with_driver); -/** +/* * Create and register a new KUnit-managed device, including a matching device_driver. * On failure, returns an error pointer. */
Signature · 1 line
2.43.0.472.g3155946c3a-goog
Quoted 7 lines · David Gow
The KUnit device helpers are documented with kerneldoc in their header file, but also have short comments over their implementation. These were mistakenly formatted as kerneldoc comments, even though they're not valid kerneldoc. It shouldn't cause any serious problems -- this file isn't included in the docs -- but it could be confusing, and causes warnings.
Quoted 6 lines
Remove the extra '*' so that these aren't treated as kerneldoc.
Fixes d03c720e03bd ("kunit: Add APIs for managing devices")Reported-by kernel test robot <[email protected]>Signed-off-by David Gow <[email protected]>
Thanks.
Quoted 35 lines
--- lib/kunit/device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)lib/kunit/device.c +3
-3@@ -60,7 +60,7 @@ static void kunit_device_release(struct device *d)kfree (to_kunit_device (d)); } -/** +/* * Create and register a KUnit-managed struct device_driver on the kunit_bus. * Returns an error pointer on failure. */ @@ -124,7 +124,7 @@ static struct kunit_device *kunit_device_register_internal(struct kunit *test,return kunit_dev; } -/** +/* * Create and register a new KUnit-managed device, using the user-supplied device_driver. * On failure, returns an error pointer. */ @@ -141,7 +141,7 @@ struct device *kunit_device_register_with_driver(struct kunit *test, }EXPORT_SYMBOL_GPL (kunit_device_register_with_driver); -/** +/* * Create and register a new KUnit-managed device, including a matching device_driver. * On failure, returns an error pointer. */
Signature · 3 lines
#Randy https://people.kernel.org/tglx/notes-about-netiquette https://subspace.kernel.org/etiquette.html