|
@@ -395,6 +395,7 @@ extern int param_get_invbool(char *buffer, const struct kernel_param *kp);
|
|
* module_param_named() for why this might be necessary.
|
|
* module_param_named() for why this might be necessary.
|
|
*/
|
|
*/
|
|
#define module_param_array_named(name, array, type, nump, perm) \
|
|
#define module_param_array_named(name, array, type, nump, perm) \
|
|
|
|
+ param_check_##type(name, &(array)[0]); \
|
|
static const struct kparam_array __param_arr_##name \
|
|
static const struct kparam_array __param_arr_##name \
|
|
= { .max = ARRAY_SIZE(array), .num = nump, \
|
|
= { .max = ARRAY_SIZE(array), .num = nump, \
|
|
.ops = ¶m_ops_##type, \
|
|
.ops = ¶m_ops_##type, \
|