aboutsummaryrefslogtreecommitdiff
path: root/kernel/module
diff options
context:
space:
mode:
authorChristophe Leroy2022-02-23 13:02:15 +0100
committerLuis Chamberlain2022-04-05 08:43:05 -0700
commit55ce556dbf92ec779b65336593d213ceef3f26f3 (patch)
tree3a7dd5cd1ec6265d03c7e7143d6ad0d768af1809 /kernel/module
parent01dc0386efb769056257410ba5754558384006a7 (diff)
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 <christophe.leroy@csgroup.eu> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'kernel/module')
-rw-r--r--kernel/module/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/module/main.c b/kernel/module/main.c
index 84b828431dcb..05a42d8fcd7a 100644
--- a/kernel/module/main.c
+++ b/kernel/module/main.c
@@ -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
}