diff options
| author | Marc Herbert <Marc.Herbert@linux.intel.com> | 2025-03-19 06:00:30 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-04-20 10:23:09 +0200 |
| commit | 125791284ed8cb95101a787e54f8893bc2d9c52b (patch) | |
| tree | f9b4629c6d5a81ea28022b41b78756635f29c019 /mm | |
| parent | df9bbef548938acc68ee8778e90978c66eb59531 (diff) | |
| download | linux-125791284ed8cb95101a787e54f8893bc2d9c52b.tar.gz linux-125791284ed8cb95101a787e54f8893bc2d9c52b.tar.bz2 linux-125791284ed8cb95101a787e54f8893bc2d9c52b.zip | |
mm/hugetlb: move hugetlb_sysctl_init() to the __init section
commit 1ca77ff1837249701053a7fcbdedabc41f4ae67c upstream.
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/20250319060041.2737320-1-marc.herbert@linux.intel.com
Signed-off-by: Marc Herbert <Marc.Herbert@linux.intel.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Reviewed-by: Muchun Song <muchun.song@linux.dev>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm')
| -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 318624c96584..44b8feb83402 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -4912,7 +4912,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); } |
