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

From: Russell King
Date: Mon Apr 19 2004 - 09:18:31 EST


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

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

http://lkml.org/lkml/2004/4/18/86
http://lkml.org/lkml/2004/4/18/87

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.

===== kernel/armksyms.c 1.2 vs edited =====
--- 1.2/arch/arm26/kernel/armksyms.c Wed Feb 25 10:31:13 2004
+++ edited/kernel/armksyms.c Mon Apr 19 13:33:35 2004
@@ -27,7 +27,6 @@
#include <asm/elf.h>
#include <asm/io.h>
#include <asm/irq.h>
-#include <asm/pgalloc.h>
//#include <asm/proc-fns.h>
#include <asm/processor.h>
#include <asm/semaphore.h>
===== kernel/ecard.c 1.3 vs edited =====
--- 1.3/arch/arm26/kernel/ecard.c Wed Aug 27 01:27:45 2003
+++ edited/kernel/ecard.c Mon Apr 19 13:33:35 2004
@@ -42,7 +42,6 @@
#include <asm/hardware.h>
#include <asm/io.h>
#include <asm/irq.h>
-#include <asm/pgalloc.h>
#include <asm/mmu_context.h>
#include <asm/irq.h>
#include <asm/irqchip.h>
===== kernel/fiq.c 1.1 vs edited =====
--- 1.1/arch/arm26/kernel/fiq.c Wed Jun 4 12:15:45 2003
+++ edited/kernel/fiq.c Mon Apr 19 13:33:35 2004
@@ -46,7 +46,6 @@
#include <asm/fiq.h>
#include <asm/io.h>
#include <asm/irq.h>
-#include <asm/pgalloc.h>
#include <asm/system.h>
#include <asm/uaccess.h>

===== kernel/signal.c 1.1 vs edited =====
--- 1.1/arch/arm26/kernel/signal.c Wed Jun 4 12:15:45 2003
+++ edited/kernel/signal.c Mon Apr 19 13:33:35 2004
@@ -25,7 +25,6 @@
#include <linux/binfmts.h>
#include <linux/elf.h>

-#include <asm/pgalloc.h>
#include <asm/ucontext.h>
#include <asm/uaccess.h>
#include <asm/unistd.h>
===== kernel/traps.c 1.3 vs edited =====
--- 1.3/arch/arm26/kernel/traps.c Wed Oct 8 03:53:37 2003
+++ edited/kernel/traps.c Mon Apr 19 13:33:35 2004
@@ -28,7 +28,6 @@

#include <asm/atomic.h>
#include <asm/io.h>
-#include <asm/pgalloc.h>
#include <asm/pgtable.h>
#include <asm/system.h>
#include <asm/uaccess.h>
===== mm/init.c 1.5 vs edited =====
--- 1.5/arch/arm26/mm/init.c Sun Sep 7 23:46:00 2003
+++ edited/mm/init.c Mon Apr 19 13:33:35 2004
@@ -26,7 +26,6 @@

#include <asm/segment.h>
#include <asm/mach-types.h>
-#include <asm/pgalloc.h>
#include <asm/dma.h>
#include <asm/hardware.h>
#include <asm/setup.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/