module: Add NOARG flag for ops with param_set_bool_enable_only() set function
authorSteven Rostedt <rostedt@goodmis.org>
Tue, 20 Aug 2013 06:03:19 +0000 (15:33 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 20 Aug 2013 06:07:43 +0000 (15:37 +0930)
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: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
kernel/module.c

index 206915830d2993bc54124b0fecf09abadac08a0f..4eb26b6d65478cca6db7367fb76952225b3286ff 100644 (file)
@@ -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 = {
+       .flags = KERNEL_PARAM_FL_NOARG,
        .set = param_set_bool_enable_only,
        .get = param_get_bool,
 };