Skip to content

Commit 55ce556

Browse files
chleroymcgrof
authored andcommitted
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: Christophe Leroy <[email protected]> Signed-off-by: Luis Chamberlain <[email protected]>
1 parent 01dc038 commit 55ce556

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kernel/module/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
* Mutex protects:
6464
* 1) List of modules (also safely readable with preempt_disable),
6565
* 2) module_use links,
66-
* 3) module_addr_min/module_addr_max.
66+
* 3) mod_tree.addr_min/mod_tree.addr_max.
6767
* (delete and add uses RCU list operations).
6868
*/
6969
DEFINE_MUTEX(module_mutex);
@@ -2972,14 +2972,14 @@ static void cfi_init(struct module *mod)
29722972
mod->exit = *exit;
29732973
#endif
29742974

2975-
cfi_module_add(mod, module_addr_min);
2975+
cfi_module_add(mod, mod_tree.addr_min);
29762976
#endif
29772977
}
29782978

29792979
static void cfi_cleanup(struct module *mod)
29802980
{
29812981
#ifdef CONFIG_CFI_CLANG
2982-
cfi_module_remove(mod, module_addr_min);
2982+
cfi_module_remove(mod, mod_tree.addr_min);
29832983
#endif
29842984
}
29852985

0 commit comments

Comments
 (0)