Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 185202

Summary: Kernel build requires "High Memory Support"
Product: Red Hat Enterprise Linux 4 Reporter: Steve Snyder <swsnyder>
Component: kernelAssignee: Jason Baron <jbaron>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: knoel, vgoyal
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: RHSA-2008-0665 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-07-24 19:11:14 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:
Bug Depends On:    
Bug Blocks: 430698    

Description Steve Snyder 2006-03-11 17:54:02 UTC
Description of problem:

The kernel cannot be built if "High Memory Support" is disabled.  If the option 
is changed from the default 4GB to "off" the file arch/i386/mm/pageattr.c fails 
to compile.

Version-Release number of selected component (if applicable):

kernel-2.6.9-34.EL.i686

How reproducible:

Every time.

Steps to Reproduce:
1. Extract kernel source files from kernel SRPM as usual.
2. Rebuild kernel using the config-2.6.9-34.EL installed by the i686 RPM.  Build 
succeeds
3. Change "High Memory Support" (I used "make menuconfig") to "off".  Attempt to 
rebuild kernel fails.
  
Actual results:

arch/i386/mm/pageattr.c: In function `revert_page':
arch/i386/mm/pageattr.c:100: error: `_etext' undeclared (first use in this 
function)
arch/i386/mm/pageattr.c:100: error: (Each undeclared identifier is reported only 
once
arch/i386/mm/pageattr.c:100: error: for each function it appears in.)
arch/i386/mm/pageattr.c:104: warning: ISO C90 forbids mixed declarations and 
code
arch/i386/mm/pageattr.c: In function `__change_page_attr':
arch/i386/mm/pageattr.c:135: error: `_etext' undeclared (first use in this 
function)
make[1]: *** [arch/i386/mm/pageattr.o] Error 1

Expected results:

There should be no compilation errors.

Additional info:

Yes, yes, yes, I know Red Hat doesn't support custom configurations.  
Nevertheless, I think you will want to know that you are unconditionally using 
variables that only exist in specific configurations.

The low-memory machine I intend to run this kernel on cannot support more the 
256MB of RAM.  It is inefficient to enable High Memory Support on a machine that 
will never be able to use those high-memory page tables.

Comment 1 Jason Baron 2006-03-13 19:21:32 UTC
strange. _etext is not related to highmem...this patch is also in the upstream
kernel...i'll see if i can figure this out, but its not a high priority for
us...thanks.

Comment 2 Steve Snyder 2006-08-24 14:54:00 UTC
Problem still exists in kernel-2.6.9-42.0.2.EL.

Look, I'll make it easy for you:

diff -Nu arch/i386/mm/pageattr.c.orig arch/i386/mm/pageattr.c
--- arch/i386/mm/pageattr.c.orig        2006-08-24 06:38:52.000000000 -0400
+++ arch/i386/mm/pageattr.c     2006-08-24 11:00:48.000000000 -0400
@@ -12,6 +12,7 @@
 #include <asm/uaccess.h>
 #include <asm/processor.h>
 #include <asm/tlbflush.h>
+#include <asm/sections.h>

 static spinlock_t cpa_lock = SPIN_LOCK_UNLOCKED;
 static struct list_head df_list = LIST_HEAD_INIT(df_list);


Comment 3 RHEL Program Management 2007-05-09 10:43:32 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 6 Vivek Goyal 2008-03-14 23:37:57 UTC
Committed in 68.21.EL . RPMS are available at http://people.redhat.com/vgoyal/rhel4/

Comment 10 errata-xmlrpc 2008-07-24 19:11:14 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-2008-0665.html