From: Steven Rostedt Date: Tue, 20 Aug 2013 06:03:19 +0000 (+0930) Subject: module: Add NOARG flag for ops with param_set_bool_enable_only() set function X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0ce814096f388f6801587f01c1c5ee1d04e746b3;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Rusty Russell --- 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, };