Re: [PATCH] Clean up asm/pgalloc.h include (ppc64)

From: Russell King
Date: Mon Apr 19 2004 - 09:04:23 EST

This patch cleans up needless includes of asm/pgalloc.h from the
arch/ppc64/ subtree. This has not been compile tested, so
needs the architecture maintainers (or willing volunteers) to

Please ensure that at least the first two patches have already
been applied to your tree; they can be found at:

This patch is part of a larger patch aiming towards getting the
include of asm/pgtable.h out of linux/mm.h, so that asm/pgtable.h
can sanely get at things like mm_struct and friends.

In the event that any of these files fails to build, chances are
you need to include some other header file rather than pgalloc.h.
Normally this is either asm/pgtable.h (unlikely), asm/cacheflush.h
or asm/tlbflush.h.

===== arch/ppc64/mm/hugetlbpage.c 1.23 vs edited =====
--- 1.23/arch/ppc64/mm/hugetlbpage.c Sat Apr 17 19:19:31 2004
+++ edited/arch/ppc64/mm/hugetlbpage.c Mon Apr 19 13:41:03 2004
@@ -18,7 +18,6 @@
#include <linux/err.h>
#include <linux/sysctl.h>
#include <asm/mman.h>
-#include <asm/pgalloc.h>
#include <asm/tlb.h>
#include <asm/tlbflush.h>
#include <asm/mmu_context.h>
===== arch/ppc64/mm/imalloc.c 1.4 vs edited =====
--- 1.4/arch/ppc64/mm/imalloc.c Fri Feb 27 05:25:17 2004
+++ edited/arch/ppc64/mm/imalloc.c Mon Apr 19 13:41:03 2004
@@ -11,7 +11,6 @@
#include <linux/vmalloc.h>

#include <asm/uaccess.h>
-#include <asm/pgalloc.h>
#include <asm/pgtable.h>
#include <asm/semaphore.h>

===== arch/ppc64/mm/init.c 1.67 vs edited =====
--- 1.67/arch/ppc64/mm/init.c Mon Apr 12 18:54:08 2004
+++ edited/arch/ppc64/mm/init.c Mon Apr 19 13:41:03 2004
@@ -37,7 +37,6 @@
#include <linux/bootmem.h>
#include <linux/highmem.h>

-#include <asm/pgalloc.h>
#include <asm/page.h>
#include <asm/abs_addr.h>
#include <asm/prom.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
Please read the FAQ at