aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/module.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2015-06-25 17:14:38 -0400
committerRusty Russell <rusty@rustcorp.com.au>2015-06-28 01:16:14 -0400
commitcf2fde7b39e9446e2af015215d7fb695781af0c1 (patch)
tree646bec4e1717bf8370a3d4153c59a06a4a78f73f /include/linux/module.h
parent38183b9c31cf21d8996d6eee2e3a14508b20c418 (diff)
param: fix module param locks when !CONFIG_SYSFS.
As Dan Streetman points out, the entire point of locking for is to stop sysfs accesses, so they're elided entirely in the !SYSFS case. Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/linux/module.h')
-rw-r--r--include/linux/module.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/module.h b/include/linux/module.h
index 6ba0e87fa804..46efa1c9de60 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -240,7 +240,9 @@ struct module {
240 unsigned int num_syms; 240 unsigned int num_syms;
241 241
242 /* Kernel parameters. */ 242 /* Kernel parameters. */
243#ifdef CONFIG_SYSFS
243 struct mutex param_lock; 244 struct mutex param_lock;
245#endif
244 struct kernel_param *kp; 246 struct kernel_param *kp;
245 unsigned int num_kp; 247 unsigned int num_kp;
246 248