RE: ia64: allnoconfig build fails

From: Chen, Kenneth W <kenneth.w.chen_at_intel.com>
Date: 2006-01-22 06:14:48
Len Brown wrote on Saturday, January 21, 2006 12:20 AM
> mm/mempolicy.c: In function `huge_zonelist':
> mm/mempolicy.c:1045: error: `HPAGE_SHIFT' undeclared (first use in
this function)
> mm/mempolicy.c:1045: error: (Each undeclared identifier is reported
only once
> mm/mempolicy.c:1045: error: for each function it appears in.)
> make[1]: *** [mm/mempolicy.o] Error 1

Need to wrap huge_zonelist function with CONFIG_HUGETLBFS.


Signed-off-by: Ken Chen <kenneth.w.chen@intel.com>


--- ./mm/mempolicy.c.orig	2006-01-21 11:00:30.000000000 -0800
+++ ./mm/mempolicy.c	2006-01-21 11:00:54.000000000 -0800
@@ -1034,6 +1034,7 @@ static inline unsigned interleave_nid(st
 		return interleave_nodes(pol);
 }
 
+#ifdef CONFIG_HUGETLBFS
 /* Return a zonelist suitable for a huge page allocation. */
 struct zonelist *huge_zonelist(struct vm_area_struct *vma, unsigned
long addr)
 {
@@ -1047,6 +1048,7 @@ struct zonelist *huge_zonelist(struct vm
 	}
 	return zonelist_policy(GFP_HIGHUSER, pol);
 }
+#endif
 
 /* Allocate a page in interleaved policy.
    Own path because it needs to do special accounting. */

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Sun Jan 22 06:15:27 2006

This archive was generated by hypermail 2.1.8 : 2006-01-22 06:15:36 EST