Bug 672844

Summary: section mismatch due to wrong annotation of hugetlb_sysfs_add_hstate()
Product: Red Hat Enterprise Linux 6 Reporter: Dean Nelson <dnelson>
Component: kernelAssignee: Dean Nelson <dnelson>
Status: CLOSED ERRATA QA Contact: Caspar Zhang <czhang>
Severity: high Docs Contact:
Priority: high    
Version: 6.1CC: czhang, qcai
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: kernel-2.6.32-112.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-23 20:39:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dean Nelson 2011-01-26 15:20:58 UTC
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>
  Date:   Tue Feb 2 13:44:14 2010 -0800
      hugetlb: fix section mismatches

Comment 1 RHEL Program Management 2011-01-26 15:30:53 UTC
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.

Comment 3 Aristeu Rozanski 2011-02-03 19:06:26 UTC
Patch(es) available on kernel-2.6.32-112.el6

Comment 6 Caspar Zhang 2011-03-18 10:24:41 UTC
Tested with kernel-2.6.32-124.el6.src.rpm, the section mismatch was gone.

Move to "VERIFIED"

Comment 7 errata-xmlrpc 2011-05-23 20:39:02 UTC
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