summaryrefslogtreecommitdiffstats
path: root/kernel/module.c
diff options
context:
space:
mode:
authorSteven Rostedt <rostedt@goodmis.org>2013-08-20 08:03:19 +0200
committerRusty Russell <rusty@rustcorp.com.au>2013-08-20 08:07:43 +0200
commit0ce814096f388f6801587f01c1c5ee1d04e746b3 (patch)
treecb3319659521cfe0288a4670c5160fbd9da744f2 /kernel/module.c
parentmodule: Add flag to allow mod params to have no arguments (diff)
downloadlinux-0ce814096f388f6801587f01c1c5ee1d04e746b3.tar.xz
linux-0ce814096f388f6801587f01c1c5ee1d04e746b3.zip
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: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'kernel/module.c')
-rw-r--r--kernel/module.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/module.c b/kernel/module.c
index 206915830d29..4eb26b6d6547 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -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,
};