Red Hat Bugzilla – Bug 672844
section mismatch due to wrong annotation of hugetlb_sysfs_add_hstate()
Last modified: 2013-07-03 03:28:57 EDT
Since the recent setting of CONFIG_DEBUG_SECTION_MISMATCH to 'y', builds of RHEL6.1 are seeing the following warning message: WARNING: mm/built-in.o(.text+0x405c0): Section mismatch in reference from the function hugetlb_register_node() to the function .init.text:hugetlb_sysfs_add_hstate() The function hugetlb_register_node() references the function __init hugetlb_sysfs_add_hstate(). This is often because hugetlb_register_node lacks a __init annotation or the annotation of hugetlb_sysfs_add_hstate is wrong. It turns out that the annotation of hugetlb_sysfs_add_hstate() is wrong. And can be corrected by backporting the following linux-2.6 commit: commit 094e9539bd24bbe23b8e2741e903b0f3f1f85b03 Author: Jeff Mahoney <jeffm@suse.com> Date: Tue Feb 2 13:44:14 2010 -0800 hugetlb: fix section mismatches
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
Patch(es) available on kernel-2.6.32-112.el6
Tested with kernel-2.6.32-124.el6.src.rpm, the section mismatch was gone. Move to "VERIFIED"
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2011-0542.html