From: Russell King <rmk+lkml@arm.linux.org.uk>
To: Linux Kernel List <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@osdl.org>
Subject: [PATCH 1/2] Clean up asm/pgalloc.h include
Date: Sun, 18 Apr 2004 23:17:20 +0100 [thread overview]
Message-ID: <20040418231720.C12222@flint.arm.linux.org.uk> (raw)
This patch cleans up needless includes of asm/pgalloc.h from the
fs/ kernel/ and mm/ subtrees. Compile tested on multiple ARM
platforms, and x86, this patch appears safe.
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.
I suggest testing in -mm for a while to ensure there aren't any
hidden arch issues.
fs/binfmt_aout.c | 1 -
fs/binfmt_elf.c | 1 -
fs/binfmt_flat.c | 1 -
fs/exec.c | 1 -
fs/proc/proc_misc.c | 1 -
include/asm-arm26/tlb.h | 1 +
include/asm-generic/tlb.h | 1 +
kernel/module.c | 1 -
mm/highmem.c | 1 -
mm/mincore.c | 1 -
mm/mmap.c | 1 -
mm/mprotect.c | 1 -
mm/mremap.c | 1 -
mm/msync.c | 1 -
mm/nommu.c | 1 -
mm/rmap.c | 1 -
mm/vmalloc.c | 1 -
mm/vmscan.c | 1 -
18 files changed, 2 insertions(+), 16 deletions(-)
diff -urpN orig/fs/binfmt_aout.c linux/fs/binfmt_aout.c
--- orig/fs/binfmt_aout.c Tue Apr 13 19:40:58 2004
+++ linux/fs/binfmt_aout.c Sun Apr 18 17:40:04 2004
@@ -27,7 +27,6 @@
#include <asm/system.h>
#include <asm/uaccess.h>
-#include <asm/pgalloc.h>
#include <asm/cacheflush.h>
static int load_aout_binary(struct linux_binprm *, struct pt_regs * regs);
diff -urpN orig/fs/binfmt_elf.c linux/fs/binfmt_elf.c
--- orig/fs/binfmt_elf.c Tue Apr 13 19:40:58 2004
+++ linux/fs/binfmt_elf.c Sun Apr 18 17:41:05 2004
@@ -40,7 +40,6 @@
#include <asm/uaccess.h>
#include <asm/param.h>
-#include <asm/pgalloc.h>
#include <linux/elf.h>
diff -urpN orig/fs/binfmt_flat.c linux/fs/binfmt_flat.c
--- orig/fs/binfmt_flat.c Sat Feb 28 10:10:05 2004
+++ linux/fs/binfmt_flat.c Sun Apr 18 19:45:54 2004
@@ -40,7 +40,6 @@
#include <asm/byteorder.h>
#include <asm/system.h>
#include <asm/uaccess.h>
-#include <asm/pgalloc.h>
#include <asm/unaligned.h>
#include <asm/cacheflush.h>
diff -urpN orig/fs/exec.c linux/fs/exec.c
--- orig/fs/exec.c Tue Apr 13 19:40:59 2004
+++ linux/fs/exec.c Sun Apr 18 17:39:15 2004
@@ -48,7 +48,6 @@
#include <linux/rmap.h>
#include <asm/uaccess.h>
-#include <asm/pgalloc.h>
#include <asm/mmu_context.h>
#ifdef CONFIG_KMOD
diff -urpN orig/fs/proc/proc_misc.c linux/fs/proc/proc_misc.c
--- orig/fs/proc/proc_misc.c Thu Apr 1 19:33:30 2004
+++ linux/fs/proc/proc_misc.c Sun Apr 18 22:44:44 2004
@@ -47,7 +47,6 @@
#include <asm/uaccess.h>
#include <asm/pgtable.h>
#include <asm/io.h>
-#include <asm/pgalloc.h>
#include <asm/tlb.h>
#include <asm/div64.h>
diff -urpN orig/kernel/module.c linux/kernel/module.c
--- orig/kernel/module.c Tue Apr 13 19:41:19 2004
+++ linux/kernel/module.c Sun Apr 18 17:26:31 2004
@@ -36,7 +36,6 @@
#include <linux/stop_machine.h>
#include <asm/uaccess.h>
#include <asm/semaphore.h>
-#include <asm/pgalloc.h>
#include <asm/cacheflush.h>
#if 0
diff -urpN orig/include/asm-arm26/tlb.h linux/include/asm-arm26/tlb.h
--- orig/include/asm-arm26/tlb.h Sat Jun 14 22:34:36 2003
+++ linux/include/asm-arm26/tlb.h Sun Apr 18 22:58:37 2004
@@ -1,6 +1,7 @@
#ifndef __ASMARM_TLB_H
#define __ASMARM_TLB_H
+#include <asm/pgalloc.h>
#include <asm/tlbflush.h>
/*
diff -urpN orig/include/asm-generic/tlb.h linux/include/asm-generic/tlb.h
--- orig/include/asm-generic/tlb.h Sat Feb 28 10:10:14 2004
+++ linux/include/asm-generic/tlb.h Sun Apr 18 22:58:51 2004
@@ -15,6 +15,7 @@
#include <linux/config.h>
#include <linux/swap.h>
+#include <asm/pgalloc.h>
#include <asm/tlbflush.h>
/*
diff -urpN orig/mm/highmem.c linux/mm/highmem.c
--- orig/mm/highmem.c Thu Mar 11 09:57:01 2004
+++ linux/mm/highmem.c Sun Apr 18 17:30:16 2004
@@ -26,7 +26,6 @@
#include <linux/init.h>
#include <linux/hash.h>
#include <linux/highmem.h>
-#include <asm/pgalloc.h>
#include <asm/tlbflush.h>
static mempool_t *page_pool, *isa_page_pool;
diff -urpN orig/mm/mincore.c linux/mm/mincore.c
--- orig/mm/mincore.c Thu Feb 5 15:27:04 2004
+++ linux/mm/mincore.c Sun Apr 18 22:44:25 2004
@@ -14,7 +14,6 @@
#include <asm/uaccess.h>
#include <asm/pgtable.h>
-#include <asm/pgalloc.h>
/*
* Later we can get more picky about what "in core" means precisely.
diff -urpN orig/mm/mmap.c linux/mm/mmap.c
--- orig/mm/mmap.c Tue Apr 13 19:41:20 2004
+++ linux/mm/mmap.c Sun Apr 18 22:44:19 2004
@@ -23,7 +23,6 @@
#include <linux/mount.h>
#include <asm/uaccess.h>
-#include <asm/pgalloc.h>
#include <asm/tlb.h>
/*
diff -urpN orig/mm/mprotect.c linux/mm/mprotect.c
--- orig/mm/mprotect.c Sat Apr 10 12:31:53 2004
+++ linux/mm/mprotect.c Sun Apr 18 17:35:19 2004
@@ -18,7 +18,6 @@
#include <linux/security.h>
#include <asm/uaccess.h>
-#include <asm/pgalloc.h>
#include <asm/pgtable.h>
#include <asm/cacheflush.h>
#include <asm/tlbflush.h>
diff -urpN orig/mm/mremap.c linux/mm/mremap.c
--- orig/mm/mremap.c Tue Apr 13 19:41:20 2004
+++ linux/mm/mremap.c Sun Apr 18 17:36:04 2004
@@ -19,7 +19,6 @@
#include <linux/security.h>
#include <asm/uaccess.h>
-#include <asm/pgalloc.h>
#include <asm/cacheflush.h>
#include <asm/tlbflush.h>
diff -urpN orig/mm/msync.c linux/mm/msync.c
--- orig/mm/msync.c Thu Feb 5 15:27:04 2004
+++ linux/mm/msync.c Sun Apr 18 22:43:53 2004
@@ -13,7 +13,6 @@
#include <linux/mman.h>
#include <asm/pgtable.h>
-#include <asm/pgalloc.h>
#include <asm/tlbflush.h>
/*
diff -urpN orig/mm/nommu.c linux/mm/nommu.c
--- orig/mm/nommu.c Tue Apr 13 19:41:20 2004
+++ linux/mm/nommu.c Sun Apr 18 23:04:41 2004
@@ -20,7 +20,6 @@
#include <linux/blkdev.h>
#include <linux/backing-dev.h>
-#include <asm/pgalloc.h>
#include <asm/uaccess.h>
#include <asm/tlb.h>
#include <asm/tlbflush.h>
diff -urpN orig/mm/rmap.c linux/mm/rmap.c
--- orig/mm/rmap.c Tue Apr 13 19:41:20 2004
+++ linux/mm/rmap.c Sun Apr 18 22:43:45 2004
@@ -30,7 +30,6 @@
#include <linux/cache.h>
#include <linux/percpu.h>
-#include <asm/pgalloc.h>
#include <asm/rmap.h>
#include <asm/tlb.h>
#include <asm/tlbflush.h>
diff -urpN orig/mm/vmalloc.c linux/mm/vmalloc.c
--- orig/mm/vmalloc.c Wed Feb 18 22:35:30 2004
+++ linux/mm/vmalloc.c Sun Apr 18 22:46:15 2004
@@ -17,7 +17,6 @@
#include <linux/vmalloc.h>
#include <asm/uaccess.h>
-#include <asm/pgalloc.h>
#include <asm/tlbflush.h>
diff -urpN orig/mm/vmscan.c linux/mm/vmscan.c
--- orig/mm/vmscan.c Tue Apr 13 19:41:20 2004
+++ linux/mm/vmscan.c Sun Apr 18 17:28:19 2004
@@ -33,7 +33,6 @@
#include <linux/cpu.h>
#include <linux/notifier.h>
-#include <asm/pgalloc.h>
#include <asm/tlbflush.h>
#include <asm/div64.h>
--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/
2.6 Serial core
next reply other threads:[~2004-04-18 22:17 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-18 22:17 Russell King [this message]
2004-04-18 22:23 ` [PATCH 2/2] Clean up asm/pgalloc.h include Russell King
2004-04-18 22:48 ` [PATCH 3/2] " Russell King
2004-04-19 13:20 ` [PATCH] Clean up asm/pgalloc.h include (alpha) Russell King
2004-04-19 20:55 ` Ivan Kokshaysky
2004-04-19 13:20 ` [PATCH] Clean up asm/pgalloc.h include (arm26) Russell King
2004-04-19 13:20 ` [PATCH] Clean up asm/pgalloc.h include (cris) Russell King
2004-04-19 13:21 ` [PATCH] Clean up asm/pgalloc.h include (H8300) Russell King
2004-04-19 13:21 ` [PATCH] Clean up asm/pgalloc.h include (ia64) Russell King
2004-04-19 20:56 ` Alex Williamson
2004-04-19 13:21 ` [PATCH] Clean up asm/pgalloc.h include (m68k) Russell King
2004-04-19 16:18 ` Geert Uytterhoeven
2004-04-19 16:30 ` Russell King
2004-04-19 16:39 ` Geert Uytterhoeven
2004-04-19 16:38 ` Russell King
2004-04-19 13:21 ` [PATCH] Clean up asm/pgalloc.h include (m68knommu) Russell King
2004-04-19 13:21 ` [PATCH] Clean up asm/pgalloc.h include (mips) Russell King
2004-04-19 16:36 ` Ralf Baechle
2004-04-19 13:21 ` [parisc-linux] Re: [PATCH] Clean up asm/pgalloc.h include (parisc) Russell King
2004-04-19 13:21 ` Russell King
2004-04-19 13:21 ` Russell King
2004-04-19 13:22 ` [PATCH] Clean up asm/pgalloc.h include (ppc) Russell King
2004-04-29 22:08 ` Tom Rini
2004-04-19 13:22 ` [PATCH] Clean up asm/pgalloc.h include (ppc64) Russell King
2004-04-19 13:22 ` [PATCH] Clean up asm/pgalloc.h include (s390) Russell King
2004-04-19 13:22 ` [PATCH] Clean up asm/pgalloc.h include (sh) Russell King
2004-04-20 14:46 ` Paul Mundt
2004-04-20 16:01 ` Hugh Dickins
2004-04-20 16:19 ` Paul Mundt
2004-04-19 13:22 ` [PATCH] Clean up asm/pgalloc.h include (sparc) Russell King
2004-04-19 13:22 ` Russell King
2004-04-19 13:23 ` [PATCH] Clean up asm/pgalloc.h include (sparc64) Russell King
2004-04-19 13:23 ` Russell King
2004-04-19 13:23 ` [PATCH] Clean up asm/pgalloc.h include (v850) Russell King
2004-04-19 13:23 ` [PATCH] Clean up asm/pgalloc.h include (x86_64) Russell King
2004-04-19 14:03 ` [discuss] " Andi Kleen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040418231720.C12222@flint.arm.linux.org.uk \
--to=rmk+lkml@arm.linux.org.uk \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.