diff options
| author | Marc Herbert <[email protected]> | 2025-03-19 06:00:30 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-04-01 22:14:43 +0000 |
| commit | 1ca77ff1837249701053a7fcbdedabc41f4ae67c (patch) | |
| tree | cc18d74f69f7f283183bee1d0a1b94b1e8d6b2f4 | |
| parent | mm: page_isolation: avoid calling folio_hstate() without hugetlb_lock (diff) | |
| download | kernel-1ca77ff1837249701053a7fcbdedabc41f4ae67c.tar.gz kernel-1ca77ff1837249701053a7fcbdedabc41f4ae67c.zip | |
mm/hugetlb: move hugetlb_sysctl_init() to the __init section
hugetlb_sysctl_init() is only invoked once by an __init function and is
merely a wrapper around another __init function so there is not reason to
keep it.
Fixes the following warning when toning down some GCC inline options:
WARNING: modpost: vmlinux: section mismatch in reference:
hugetlb_sysctl_init+0x1b (section: .text) ->
__register_sysctl_init (section: .init.text)
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Marc Herbert <[email protected]>
Reviewed-by: Anshuman Khandual <[email protected]>
Reviewed-by: Muchun Song <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
| -rw-r--r-- | mm/hugetlb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 6fccfe6d046c..39f92aad7bd1 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -5179,7 +5179,7 @@ static const struct ctl_table hugetlb_table[] = { }, }; -static void hugetlb_sysctl_init(void) +static void __init hugetlb_sysctl_init(void) { register_sysctl_init("vm", hugetlb_table); } |
