projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf2fde7
)
modules: only use mod->param_lock if CONFIG_MODULES
author
Stephen Rothwell
<sfr@canb.auug.org.au>
Fri, 26 Jun 2015 03:19:19 +0000
(13:19 +1000)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Sun, 28 Jun 2015 05:20:12 +0000
(14:50 +0930)
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
kernel/params.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/params.c
b/kernel/params.c
index faa461c16f1216fbbe39542a1d9a64213f2eb2dd..adc0bbc06cc5faee7334c7769c82a74eda3e1542 100644
(file)
--- a/
kernel/params.c
+++ b/
kernel/params.c
@@
-30,7
+30,11
@@
static DEFINE_MUTEX(param_lock);
/* Use the module's mutex, or if built-in use the built-in mutex */
+#ifdef CONFIG_MODULES
#define KPARAM_MUTEX(mod) ((mod) ? &(mod)->param_lock : ¶m_lock)
+#else
+#define KPARAM_MUTEX(mod) (¶m_lock)
+#endif
static inline void check_kparam_locked(struct module *mod)
{