Skip to content

Commit 1ca77ff

Browse files
marc-hbakpm00
authored andcommitted
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/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>
1 parent a0a9f21 commit 1ca77ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/hugetlb.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -5179,7 +5179,7 @@ static const struct ctl_table hugetlb_table[] = {
51795179
},
51805180
};
51815181

5182-
static void hugetlb_sysctl_init(void)
5182+
static void __init hugetlb_sysctl_init(void)
51835183
{
51845184
register_sysctl_init("vm", hugetlb_table);
51855185
}

0 commit comments

Comments
 (0)