module: Always have struct mod_tree_root
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 23 Feb 2022 12:02:11 +0000 (13:02 +0100)
committerLuis Chamberlain <mcgrof@kernel.org>
Tue, 5 Apr 2022 15:43:05 +0000 (08:43 -0700)
commit80b8bf4369906aefbcb63a03012aed7a1abcbd18
tree079dffe467e5d50246048f7d49ec33f2e89e74cc
parent7337f929d5672e37a80c8582d357f084320f475f
module: Always have struct mod_tree_root

In order to separate text and data, we need to setup
two rb trees.

This means that struct mod_tree_root is required even without
MODULES_TREE_LOOKUP.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Reviewed-by: Aaron Tomlin <atomlin@atomlin.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
kernel/module/internal.h
kernel/module/main.c