Skip to content

Commit

Permalink
drivers: base: test: Add missing MODULE_* macros for platform devices…
Browse files Browse the repository at this point in the history
… tests

Commit b4cc443 ("drivers: base: Add basic devm tests for platform
devices") introduced a new set of tests for platform devices that could
be compiled as a module, but didn't have the usual module macros.

Make sure they're there.

Fixes: b4cc443 ("drivers: base: Add basic devm tests for platform devices")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/20230816073019.1446155-1-mripard@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Maxime Ripard authored and Greg Kroah-Hartman committed Aug 16, 2023
1 parent 699fb50 commit f71b144
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/base/test/platform-device-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,3 +218,7 @@ static struct kunit_suite platform_device_devm_test_suite = {
};

kunit_test_suite(platform_device_devm_test_suite);

MODULE_DESCRIPTION("Test module for platform devices");
MODULE_AUTHOR("Maxime Ripard <mripard@kernel.org>");
MODULE_LICENSE("GPL");

0 comments on commit f71b144

Please sign in to comment.