Re: Another compile problem with 2.6.15.5 on AMD64

From: Jesper Juhl
Date: Thu Mar 02 2006 - 12:09:05 EST


On Thursday 02 March 2006 17:18, Steffen Weber wrote:
> I´m getting a compile error with 2.6.15.5 on x86_64 using GCC 3.4.4
> (does not seem to be related to the NFS one):
>
> CC mm/mempolicy.o
> mm/mempolicy.c: In function `get_nodes':
> mm/mempolicy.c:527: error: `BITS_PER_BYTE' undeclared (first use in
> this function)
> mm/mempolicy.c:527: error: (Each undeclared identifier is reported only
> once
> mm/mempolicy.c:527: error: for each function it appears in.)
>

Try the following (untested patch).


Signed-off-by: Jesper Juhl <jesper.juhl@xxxxxxxxx>
---

mm/mempolicy.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

--- linux-2.6.15.5/mm/mempolicy.c~ 2006-03-02 18:05:18.000000000 +0100
+++ linux-2.6.15.5/mm/mempolicy.c 2006-03-02 18:05:18.000000000 +0100
@@ -82,7 +82,7 @@
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/compat.h>
-#include <linux/mempolicy.h>
+#include <linux/types.h>
#include <asm/tlbflush.h>
#include <asm/uaccess.h>




-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/