Skip to content

Commit c093a74

Browse files
rddunlapmcgrof
authored andcommitted
test_kmod: stop kernel-doc warnings
Use kernel-doc notation to prevent warnings: lib/test_kmod.c:58: warning: contents before sections lib/test_kmod.c:94: warning: cannot understand function prototype: 'struct kmod_test_device_info ' lib/test_kmod.c:119: warning: cannot understand function prototype: 'struct kmod_test_device ' Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Luis Chamberlain <mcgrof@kernel.org> Cc: linux-modules@vger.kernel.org Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
1 parent b74d7bb commit c093a74

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

lib/test_kmod.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,11 @@ static int num_test_devs;
5151

5252
/**
5353
* enum kmod_test_case - linker table test case
54-
*
55-
* If you add a test case, please be sure to review if you need to se
56-
* @need_mod_put for your tests case.
57-
*
5854
* @TEST_KMOD_DRIVER: stress tests request_module()
5955
* @TEST_KMOD_FS_TYPE: stress tests get_fs_type()
56+
*
57+
* If you add a test case, please be sure to review if you need to set
58+
* @need_mod_put for your tests case.
6059
*/
6160
enum kmod_test_case {
6261
__TEST_KMOD_INVALID = 0,
@@ -78,7 +77,7 @@ struct test_config {
7877
struct kmod_test_device;
7978

8079
/**
81-
* kmod_test_device_info - thread info
80+
* struct kmod_test_device_info - thread info
8281
*
8382
* @ret_sync: return value if request_module() is used, sync request for
8483
* @TEST_KMOD_DRIVER
@@ -101,7 +100,7 @@ struct kmod_test_device_info {
101100
};
102101

103102
/**
104-
* kmod_test_device - test device to help test kmod
103+
* struct kmod_test_device - test device to help test kmod
105104
*
106105
* @dev_idx: unique ID for test device
107106
* @config: configuration for the test

0 commit comments

Comments
 (0)