Commit 0ce81409 authored by Steven Rostedt's avatar Steven Rostedt Committed by Rusty Russell

module: Add NOARG flag for ops with param_set_bool_enable_only() set function

The ops that uses param_set_bool_enable_only() as its set function can
easily handle being used without an argument. There's no reason to
fail the loading of the module if it does not have one.
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent ab013c5f
...@@ -136,6 +136,7 @@ static int param_set_bool_enable_only(const char *val, ...@@ -136,6 +136,7 @@ static int param_set_bool_enable_only(const char *val,
} }
static const struct kernel_param_ops param_ops_bool_enable_only = { static const struct kernel_param_ops param_ops_bool_enable_only = {
.flags = KERNEL_PARAM_FL_NOARG,
.set = param_set_bool_enable_only, .set = param_set_bool_enable_only,
.get = param_get_bool, .get = param_get_bool,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment