Skip to content

Commit

Permalink
module: Remove module_addr_min and module_addr_max
Browse files Browse the repository at this point in the history
Replace module_addr_min and module_addr_max by
mod_tree.addr_min and mod_tree.addr_max

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
  • Loading branch information
Christophe Leroy authored and Luis Chamberlain committed Apr 5, 2022
1 parent 01dc038 commit 55ce556
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernel/module/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 55ce556

Please sign in to comment.