History

module: Remove module_addr_min and module_addr_max

Replace module_addr_min and module_addr_max by mod_tree.addr_min and mod_tree.addr_max

Christophe Leroy committed 4 years ago

Commit 55ce5561 parent 01dc0381 file · +3 −3Browse files

Unified · Split

kernel/module/main.c+3−3
@@ -63,7 +63,7 @@ · 62 unmodified lines
63 * Mutex protects:63 * Mutex protects:
64 * 1) List of modules (also safely readable with preempt_disable),64 * 1) List of modules (also safely readable with preempt_disable),
65 * 2) module_use links,65 * 2) module_use links,
66 * 3) module_addr_min/module_addr_max.66 * 3) mod_tree.addr_min/mod_tree.addr_max.
67 * (delete and add uses RCU list operations).67 * (delete and add uses RCU list operations).
68 */68 */
69DEFINE_MUTEX(module_mutex);69DEFINE_MUTEX(module_mutex);
@@ -2972,14 +2972,14 @@ static void cfi_init(struct module *mod) · 2902 unmodified lines
2972 mod->exit = *exit;2972 mod->exit = *exit;
2973#endif2973#endif
2974 2974
2975 cfi_module_add(mod, module_addr_min);2975 cfi_module_add(mod, mod_tree.addr_min);
2976#endif2976#endif
2977}2977}
2978 2978
2979static void cfi_cleanup(struct module *mod)2979static void cfi_cleanup(struct module *mod)
2980{2980{
2981#ifdef CONFIG_CFI_CLANG2981#ifdef CONFIG_CFI_CLANG
2982 cfi_module_remove(mod, module_addr_min);2982 cfi_module_remove(mod, mod_tree.addr_min);
2983#endif2983#endif
2984}2984}
2985 2985

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