Re: 2.6.8-rc4-mm1: legacy_va_layout compile error with SYSCTL=n

William Lee Irwin III
2004-08-11T23:01:42Z

On Wed, Aug 11, 2004 at 03:33:53PM -0700, William Lee Irwin III wrote:
>> Does this help?

On Wed, Aug 11, 2004 at 03:42:17PM -0700, William Lee Irwin III wrote:
> Hmm, looks like there's a hugetlb warning too.

hugetlb CONFIG_SYSCTL=n fix, take 2: the real thing.

Index: mm1-2.6.8-rc4/mm/hugetlb.c
===================================================================
--- mm1-2.6.8-rc4.orig/mm/hugetlb.c 2004-08-10 23:00:25.100832480 -0700
+++ mm1-2.6.8-rc4/mm/hugetlb.c 2004-08-11 15:34:59.574933488 -0700
@@ -123,6 +123,7 @@
}
__setup("hugepages=", hugetlb_setup);

+#ifdef CONFIG_SYSCTL
static void update_and_free_page(struct page *page)
{
int i;
@@ -188,7 +189,6 @@
return nr_huge_pages;
}

-#ifdef CONFIG_SYSCTL
int hugetlb_sysctl_handler(struct ctl_table *table, int write,
struct file *file, void __user *buffer,
size_t *length, loff_t *ppos)