Commit 55ce556d authored by Christophe Leroy's avatar Christophe Leroy Committed by Luis Chamberlain

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
Signed-off-by: default avatarChristophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
parent 01dc0386
......@@ -63,7 +63,7 @@
* Mutex protects:
* 1) List of modules (also safely readable with preempt_disable),
* 2) module_use links,
* 3) module_addr_min/module_addr_max.
* 3) mod_tree.addr_min/mod_tree.addr_max.
* (delete and add uses RCU list operations).
*/
DEFINE_MUTEX(module_mutex);
......@@ -2972,14 +2972,14 @@ static void cfi_init(struct module *mod)
mod->exit = *exit;
#endif
cfi_module_add(mod, module_addr_min);
cfi_module_add(mod, mod_tree.addr_min);
#endif
}
static void cfi_cleanup(struct module *mod)
{
#ifdef CONFIG_CFI_CLANG
cfi_module_remove(mod, module_addr_min);
cfi_module_remove(mod, mod_tree.addr_min);
#endif
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment