diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-07-27 03:54:47 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-07-27 03:54:47 -0400 |
| commit | aa7eb8e78d8ecd6cd0475d86ea8385ff9cb47ece (patch) | |
| tree | 3f9e98fadd5124fb05e8f6f9b06aa23698d4f215 /include/linux/moduleparam.h | |
| parent | cca8edfd2ec2a34d9f50f593bc753bb11e1bc1f5 (diff) | |
| parent | 3c6b50141ef9f0a8844bf1357b80c0cdf518bf05 (diff) | |
Merge branch 'next' into for-linus
Diffstat (limited to 'include/linux/moduleparam.h')
| -rw-r--r-- | include/linux/moduleparam.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/moduleparam.h b/include/linux/moduleparam.h index 07b41951e3fa..ddaae98c53f9 100644 --- a/include/linux/moduleparam.h +++ b/include/linux/moduleparam.h | |||
| @@ -67,9 +67,9 @@ struct kparam_string { | |||
| 67 | struct kparam_array | 67 | struct kparam_array |
| 68 | { | 68 | { |
| 69 | unsigned int max; | 69 | unsigned int max; |
| 70 | unsigned int elemsize; | ||
| 70 | unsigned int *num; | 71 | unsigned int *num; |
| 71 | const struct kernel_param_ops *ops; | 72 | const struct kernel_param_ops *ops; |
| 72 | unsigned int elemsize; | ||
| 73 | void *elem; | 73 | void *elem; |
| 74 | }; | 74 | }; |
| 75 | 75 | ||
| @@ -371,8 +371,9 @@ extern int param_get_invbool(char *buffer, const struct kernel_param *kp); | |||
| 371 | */ | 371 | */ |
| 372 | #define module_param_array_named(name, array, type, nump, perm) \ | 372 | #define module_param_array_named(name, array, type, nump, perm) \ |
| 373 | static const struct kparam_array __param_arr_##name \ | 373 | static const struct kparam_array __param_arr_##name \ |
| 374 | = { ARRAY_SIZE(array), nump, ¶m_ops_##type, \ | 374 | = { .max = ARRAY_SIZE(array), .num = nump, \ |
| 375 | sizeof(array[0]), array }; \ | 375 | .ops = ¶m_ops_##type, \ |
| 376 | .elemsize = sizeof(array[0]), .elem = array }; \ | ||
| 376 | __module_param_call(MODULE_PARAM_PREFIX, name, \ | 377 | __module_param_call(MODULE_PARAM_PREFIX, name, \ |
| 377 | ¶m_array_ops, \ | 378 | ¶m_array_ops, \ |
| 378 | .arr = &__param_arr_##name, \ | 379 | .arr = &__param_arr_##name, \ |
