History

module: mark module_mutex static

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.

Christoph Hellwig committed 5 years ago

Commit 922f2a71 parent 3e355203 files · +1 −6Browse files

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

Unified · Split

kernel/module.c+1−1
@@ -87,7 +87,7 @@ · 86 unmodified lines
87 * 3) module_addr_min/module_addr_max.87 * 3) module_addr_min/module_addr_max.
88 * (delete and add uses RCU list operations).88 * (delete and add uses RCU list operations).
89 */89 */
90DEFINE_MUTEX(module_mutex);90static DEFINE_MUTEX(module_mutex);
91static LIST_HEAD(modules);91static LIST_HEAD(modules);
92 92
93/* Work queue for freeing init sections in success case */93/* Work queue for freeing init sections in success case */

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