Re: [patch] mm/hugetlb.c: fix build failure
From: Ingo Molnar
Date: Fri Jul 25 2008 - 14:36:28 EST
* Ingo Molnar <mingo@xxxxxxx> wrote:
> on !CONFIG_SYSCTL on x86 with latest -git i get:
>
> mm/hugetlb.c: In function 'decrement_hugepage_resv_vma':
> mm/hugetlb.c:83: error: 'reserve' undeclared (first use in this function)
> mm/hugetlb.c:83: error: (Each undeclared identifier is reported only once
> mm/hugetlb.c:83: error: for each function it appears in.)
the above build error came from a bisection run, the fix i sent was for
this build error:
mm/hugetlb.c: In function âhugetlb_acct_memory': mm/hugetlb.c:1507:
error: implicit declaration of function âcpuset_mems_nr'
but i also get a second hugetlb build failure on 64-bit x86:
arch/x86/mm/built-in.o: In function `setup_hugepagesz':
hugetlbpage.c:(.init.text+0xb49): undefined reference to `hugetlb_add_hstate'
fixed by the patch below.
Ingo
---------------->