module: Remove unused macros module_addr_min/max
authorChen Zhongjin <chenzhongjin@huawei.com>
Sat, 24 Sep 2022 07:22:16 +0000 (15:22 +0800)
committerLuis Chamberlain <mcgrof@kernel.org>
Fri, 11 Nov 2022 18:19:52 +0000 (10:19 -0800)
commit89a6b5917650edd1542194fd5b5ada64fb94a790
treee0d08f058e98f7ffe3da9959d590bd3f2a1cb0af
parent3cd60866d46050d14734cbbac41b00c8d3e51d61
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>
kernel/module/main.c