Skip to content

Commit

Permalink
drivers: base: test: Add missing MODULE_* macros to root device tests
Browse files Browse the repository at this point in the history
Commit 06188bc ("drivers: base: Add basic devm tests for root
devices") introduced a new set of tests for root devices that could be
compiled as a module, but didn't have the usual module macros.

Make sure they're there.

Fixes: 06188bc ("drivers: base: Add basic devm tests for root 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-2-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 f71b144 commit f7bb242
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/base/test/root-device-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,7 @@ static struct kunit_suite root_device_devm_test_suite = {
};

kunit_test_suite(root_device_devm_test_suite);

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

0 comments on commit f7bb242

Please sign in to comment.