]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc6854c346ed07f1ac82712f3bc92949e87f0f46a
tree079dffe467e5d50246048f7d49ec33f2e89e74cc
parent690ed687f8c914f35f5099d3a1b7eb4a17d410ba
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