diff options
author | Chen Zhongjin <chenzhongjin@huawei.com> | 2022-09-24 10:22:16 +0300 |
---|---|---|
committer | Luis Chamberlain <mcgrof@kernel.org> | 2022-11-11 21:19:52 +0300 |
commit | 89a6b5917650edd1542194fd5b5ada64fb94a790 (patch) | |
tree | e0d08f058e98f7ffe3da9959d590bd3f2a1cb0af /kernel/module/main.c | |
parent | 3cd60866d46050d14734cbbac41b00c8d3e51d61 (diff) | |
download | linux-89a6b5917650edd1542194fd5b5ada64fb94a790.tar.xz |
module: Remove unused macros module_addr_min/max
Unused macros reported by [-Wunused-macros].
These macros are introduced to record the bound address of modules.
Commit 80b8bf436990 ("module: Always have struct mod_tree_root") made
"struct mod_tree_root" always present and its members addr_min and
addr_max can be directly accessed.
Macros module_addr_min and module_addr_min are not used anymore, so remove
them.
Signed-off-by: Chen Zhongjin <chenzhongjin@huawei.com>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
[mcgrof: massaged the commit messsage as suggested by Miroslav]
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'kernel/module/main.c')
-rw-r--r-- | kernel/module/main.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/module/main.c b/kernel/module/main.c index d02d39c7174e..ff2dfd1f548d 100644 --- a/kernel/module/main.c +++ b/kernel/module/main.c @@ -85,9 +85,6 @@ struct mod_tree_root mod_data_tree __cacheline_aligned = { }; #endif -#define module_addr_min mod_tree.addr_min -#define module_addr_max mod_tree.addr_max - struct symsearch { const struct kernel_symbol *start, *stop; const s32 *crcs; |