diff options
author | Shyam Saini <shyamsaini@linux.microsoft.com> | 2025-02-27 10:49:29 -0800 |
---|---|---|
committer | Petr Pavlu <petr.pavlu@suse.com> | 2025-04-16 14:54:53 +0200 |
commit | 7c76c813cfc42a7376378a0c4b7250db2eebab81 (patch) | |
tree | d6c48cf5d291e39da1323f9bada8aea2b454685c /scripts/generate_rust_analyzer.py | |
parent | 1c7777feb0e2f5925908c489513656ebb443a699 (diff) | |
download | linux-7c76c813cfc42a7376378a0c4b7250db2eebab81.tar.gz linux-7c76c813cfc42a7376378a0c4b7250db2eebab81.tar.bz2 linux-7c76c813cfc42a7376378a0c4b7250db2eebab81.zip |
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>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions