aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/module/internal.h
diff options
context:
space:
mode:
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>2025-07-11 15:31:36 +0200
committerDaniel Gomez <da.gomez@samsung.com>2025-07-31 13:40:46 +0200
commit199d9ffb31650f948dd342ade1c1b920e157630f (patch)
tree5c507d53f768957e9fb86e9e9deb3676aacb68c1 /kernel/module/internal.h
parentMerge tag 'drm-next-2025-07-30' of https://gitlab.freedesktop.org/drm/kernel (diff)
downloadlinux-199d9ffb31650f948dd342ade1c1b920e157630f.tar.gz
linux-199d9ffb31650f948dd342ade1c1b920e157630f.zip
module: move 'struct module_use' to internal.h
The struct was moved to the public header file in commit c8e21ced08b3 ("module: fix kdb's illicit use of struct module_use."). Back then the structure was used outside of the module core. Nowadays this is not true anymore, so the structure can be made internal. Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Reviewed-by: Daniel Gomez <da.gomez@samsung.com> Reviewed-by: Petr Pavlu <petr.pavlu@suse.com> Link: https://lore.kernel.org/r/20250711-kunit-ifdef-modules-v2-1-39443decb1f8@linutronix.de Signed-off-by: Daniel Gomez <da.gomez@samsung.com>
Diffstat (limited to 'kernel/module/internal.h')
-rw-r--r--kernel/module/internal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/module/internal.h b/kernel/module/internal.h
index 51ddd8866ef3..618202578b42 100644
--- a/kernel/module/internal.h
+++ b/kernel/module/internal.h
@@ -112,6 +112,13 @@ struct find_symbol_arg {
enum mod_license license;
};
+/* modules using other modules */
+struct module_use {
+ struct list_head source_list;
+ struct list_head target_list;
+ struct module *source, *target;
+};
+
int mod_verify_sig(const void *mod, struct load_info *info);
int try_to_force_load(struct module *mod, const char *reason);
bool find_symbol(struct find_symbol_arg *fsa);