Re: 2.6.23-rc2-mm2

Aurelien Jarno
2007-08-10T09:56:37Z

On Thu, Aug 09, 2007 at 10:42:54PM -0700, Andrew Morton wrote:
>
> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.23-rc2/2.6.23-rc2-mm2/
>
> - Various problems from 2.6.23-rc2-mm1 were fixed

I have just tried it, and it fails to build for MIPS with the following
error:

CC arch/mips/kernel/asm-offsets.s
In file included from include/linux/sched.h:58,
from arch/mips/kernel/asm-offsets.c:13:
include/linux/mm_types.h:115: error: expected specifier-qualifier-list before 'pgprot_t'
include/linux/mm_types.h:169: warning: 'struct file' declared inside parameter list
include/linux/mm_types.h:169: warning: its scope is only this definition or declaration, which is probably not what you want
include/linux/mm_types.h:175: error: expected specifier-qualifier-list before 'pgd_t'

The trivial patch below fixes this problem.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

--- a/include/linux/mm_types.h
+++ b/include/linux/mm_types.h
@@ -10,6 +10,7 @@
#include <linux/rbtree.h>
#include <linux/rwsem.h>
#include <linux/completion.h>
+#include <asm/page.h>
#include <asm/mmu.h>

struct address_space;

--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net