History

modules: only use mod->param_lock if CONFIG_MODULES

Stephen Rothwell committed 11 years ago

Commit 20bdc2c1 parent cf2fde71 file · +4 −0Browse files

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/params.c+4−0
@@ -30,7 +30,11 @@ · 29 unmodified lines
3030 static DEFINE_MUTEX(param_lock);
3131
3232 /* Use the module's mutex, or if built-in use the built-in mutex */
33+#ifdef CONFIG_MODULES
3334 #define KPARAM_MUTEX(mod) ((mod) ? &(mod)->param_lock : &param_lock)
35+#else
36+#define KPARAM_MUTEX(mod) (&param_lock)
37+#endif
3438
3539 static inline void check_kparam_locked(struct module *mod)
3640 {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t