Skip to content

Commit 199d9ff

Browse files
t-8chdkruces
authored andcommitted
module: move 'struct module_use' to internal.h
The struct was moved to the public header file in commit c8e21ce ("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 <[email protected]> Reviewed-by: Daniel Gomez <[email protected]> Reviewed-by: Petr Pavlu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Gomez <[email protected]>
1 parent 260f6f4 commit 199d9ff

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

include/linux/module.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -313,13 +313,6 @@ void *__symbol_get_gpl(const char *symbol);
313313
__used __section(".no_trim_symbol") = __stringify(x); \
314314
(typeof(&x))(__symbol_get(__stringify(x))); })
315315

316-
/* modules using other modules: kdb wants to see this. */
317-
struct module_use {
318-
struct list_head source_list;
319-
struct list_head target_list;
320-
struct module *source, *target;
321-
};
322-
323316
enum module_state {
324317
MODULE_STATE_LIVE, /* Normal state. */
325318
MODULE_STATE_COMING, /* Full formed, running module_init. */

kernel/module/internal.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,13 @@ struct find_symbol_arg {
112112
enum mod_license license;
113113
};
114114

115+
/* modules using other modules */
116+
struct module_use {
117+
struct list_head source_list;
118+
struct list_head target_list;
119+
struct module *source, *target;
120+
};
121+
115122
int mod_verify_sig(const void *mod, struct load_info *info);
116123
int try_to_force_load(struct module *mod, const char *reason);
117124
bool find_symbol(struct find_symbol_arg *fsa);

0 commit comments

Comments
 (0)