]> www.infradead.org Git - users/hch/misc.git/commit
kernel: globalize lookup_or_create_module_kobject()
authorShyam Saini <shyamsaini@linux.microsoft.com>
Thu, 27 Feb 2025 18:49:29 +0000 (10:49 -0800)
committerPetr Pavlu <petr.pavlu@suse.com>
Wed, 16 Apr 2025 12:54:53 +0000 (14:54 +0200)
commit7c76c813cfc42a7376378a0c4b7250db2eebab81
treed6c48cf5d291e39da1323f9bada8aea2b454685c
parent1c7777feb0e2f5925908c489513656ebb443a699
kernel: globalize lookup_or_create_module_kobject()

lookup_or_create_module_kobject() is marked as static and __init,
to make it global drop static keyword.
Since this function can be called from non-init code, use __modinit
instead of __init, __modinit marker will make it __init if
CONFIG_MODULES is not defined.

Suggested-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Shyam Saini <shyamsaini@linux.microsoft.com>
Link: https://lore.kernel.org/r/20250227184930.34163-4-shyamsaini@linux.microsoft.com
Signed-off-by: Petr Pavlu <petr.pavlu@suse.com>
include/linux/module.h
kernel/params.c