Except for two lockdep asserts module_mutex is only used in module.c. Remove the two asserts given that the functions they are in are not exported and just called from the module code, and mark module_mutex static.
Showing the changes to kernel (1 of 3 files). Show all
Unified · Split
| @@ -87,7 +87,7 @@ · 86 unmodified lines | ||
| 87 | 87 | * 3) module_addr_min/module_addr_max. |
| 88 | 88 | * (delete and add uses RCU list operations). |
| 89 | 89 | */ |
| 90 | −DEFINE_MUTEX(module_mutex); | |
| 90 | +static DEFINE_MUTEX(module_mutex); | |
| 91 | 91 | static LIST_HEAD(modules); |
| 92 | 92 | |
| 93 | 93 | /* Work queue for freeing init sections in success case */ |