[patch for 2.6.27? 04/10] drivers/net/mlx4/alloc.c needs mm.h
From: akpm@linux-foundation.org
Date: 2008-09-22 21:12:05
From: Andrew Morton <akpm@linux-foundation.org> sparc32 allmodconfig with linux-next: drivers/net/mlx4/alloc.c: In function 'mlx4_buf_alloc': drivers/net/mlx4/alloc.c:164: error: 'PAGE_KERNEL' undeclared (first use in this function) drivers/net/mlx4/alloc.c:164: error: (Each undeclared identifier is reported only once drivers/net/mlx4/alloc.c:164: error: for each function it appears in.) this is due to some header shuffle in linux-next. I didn't look to see what it was. I'd sugges that this patch be merged ahead of a linux-next merge to avoid bisection breaks. We strictly only need asm/pgtable.h, but going direct to asm includes always seems grubby. Cc: Jeff Garzik <redacted> Cc: "David S. Miller" <davem@davemloft.net> Acked-by: Roland Dreier <redacted> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> --- drivers/net/mlx4/alloc.c | 1 + 1 file changed, 1 insertion(+) diff -puN drivers/net/mlx4/alloc.c~drivers-net-mlx4-allocc-needs-mmh drivers/net/mlx4/alloc.c
--- a/drivers/net/mlx4/alloc.c~drivers-net-mlx4-allocc-needs-mmh
+++ a/drivers/net/mlx4/alloc.c@@ -33,6 +33,7 @@ #include <linux/errno.h> #include <linux/slab.h> +#include <linux/mm.h> #include <linux/bitmap.h> #include <linux/dma-mapping.h> #include <linux/vmalloc.h>
_