module: move 'struct module_use' to internal.h
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Fri, 11 Jul 2025 13:31:36 +0000 (15:31 +0200)
committerDaniel Gomez <da.gomez@samsung.com>
Thu, 31 Jul 2025 11:40:46 +0000 (13:40 +0200)
commit199d9ffb31650f948dd342ade1c1b920e157630f
tree5c507d53f768957e9fb86e9e9deb3676aacb68c1
parent260f6f4fda93c8485c8037865c941b42b9cba5d2
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>
include/linux/module.h
kernel/module/internal.h