From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Russell King <rmk+lkml@arm.linux.org.uk>
Cc: Linux Kernel List <linux-kernel@vger.kernel.org>,
Jes Sorensen <jes@trained-monkey.org>,
Linux/m68k <linux-m68k@lists.linux-m68k.org>
Subject: Re: [PATCH] Clean up asm/pgalloc.h include (m68k)
Date: Mon, 19 Apr 2004 18:18:41 +0200 (MEST) [thread overview]
Message-ID: <Pine.GSO.4.58.0404191815100.3430@waterleaf.sonytel.be> (raw)
In-Reply-To: <E1BFYiF-00055y-3q@dyn-67.arm.linux.org.uk>
On Mon, 19 Apr 2004, Russell King wrote:
> This patch cleans up needless includes of asm/pgalloc.h from the
> arch/m68k/ 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.
The patch below fixes all compile-issues on m68k, except when compiling for
Sun-3.
include/asm-generic/tlb.h now includes <asm/pgalloc.h>, which includes
<asm/sun3_pgalloc.h>. But the last file needs tlb_remove_page(), which is
defined in include/asm-generic/tlb.h
Do you really need <asm/pgalloc.h> in include/asm-generic/tlb.h? If yes, can it
be moved down, after the definition of tlb_remove_page()?
--- linux-m68k-2.6.6-rc1-rmk/arch/m68k/kernel/m68k_ksyms.c 2004-04-19 15:35:42.000000000 +0200
+++ linux-m68k-2.6.6-rc1-geert/arch/m68k/kernel/m68k_ksyms.c 2004-04-19 16:19:39.000000000 +0200
@@ -16,6 +16,7 @@
#include <asm/semaphore.h>
#include <asm/checksum.h>
#include <asm/hardirq.h>
+#include <asm/cacheflush.h>
asmlinkage long long __ashldi3 (long long, int);
asmlinkage long long __ashrdi3 (long long, int);
--- linux-m68k-2.6.6-rc1-rmk/arch/m68k/kernel/traps.c 2004-04-19 15:35:42.000000000 +0200
+++ linux-m68k-2.6.6-rc1-geert/arch/m68k/kernel/traps.c 2004-04-19 15:53:54.000000000 +0200
@@ -39,6 +39,7 @@
#include <asm/traps.h>
#include <asm/machdep.h>
#include <asm/siginfo.h>
+#include <asm/tlbflush.h>
/* assembler routines */
asmlinkage void system_call(void);
--- linux-m68k-2.6.6-rc1-rmk/arch/m68k/mm/kmap.c 2004-04-19 15:35:42.000000000 +0200
+++ linux-m68k-2.6.6-rc1-geert/arch/m68k/mm/kmap.c 2004-04-19 16:04:18.000000000 +0200
@@ -20,6 +20,7 @@
#include <asm/page.h>
#include <asm/io.h>
#include <asm/system.h>
+#include <asm/tlbflush.h>
#undef DEBUG
--- linux-m68k-2.6.6-rc1-rmk/arch/m68k/mm/memory.c 2004-04-19 15:35:42.000000000 +0200
+++ linux-m68k-2.6.6-rc1-geert/arch/m68k/mm/memory.c 2004-04-19 16:04:46.000000000 +0200
@@ -19,6 +19,7 @@
#include <asm/system.h>
#include <asm/traps.h>
#include <asm/machdep.h>
+#include <asm/tlbflush.h>
/* ++andreas: {get,free}_pointer_table rewritten to use unused fields from
--- linux-m68k-2.6.6-rc1-rmk/arch/m68k/mm/motorola.c 2004-04-19 15:35:42.000000000 +0200
+++ linux-m68k-2.6.6-rc1-geert/arch/m68k/mm/motorola.c 2004-04-19 16:05:22.000000000 +0200
@@ -30,6 +30,8 @@
#ifdef CONFIG_ATARI
#include <asm/atari_stram.h>
#endif
+#include <asm/tlbflush.h>
+#include <asm/cacheflush.h>
#undef DEBUG
--- linux-m68k-2.6.6-rc1-rmk/arch/m68k/sun3x/dvma.c 2004-04-19 15:35:42.000000000 +0200
+++ linux-m68k-2.6.6-rc1-geert/arch/m68k/sun3x/dvma.c 2004-04-19 17:38:35.000000000 +0200
@@ -23,6 +23,7 @@
#include <asm/io.h>
#include <asm/page.h>
#include <asm/pgtable.h>
+#include <asm/tlbflush.h>
/* IOMMU support */
--- linux-m68k-2.6.6-rc1-rmk/include/asm-m68k/motorola_pgalloc.h 2003-05-06 14:08:25.000000000 +0200
+++ linux-m68k-2.6.6-rc1-geert/include/asm-m68k/motorola_pgalloc.h 2004-04-19 15:50:33.000000000 +0200
@@ -1,6 +1,7 @@
#ifndef _MOTOROLA_PGALLOC_H
#define _MOTOROLA_PGALLOC_H
+#include <asm/tlbflush.h>
#include <asm/tlb.h>
extern pmd_t *get_pointer_table(void);
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
next prev parent reply other threads:[~2004-04-19 16:18 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-18 22:17 [PATCH 1/2] Clean up asm/pgalloc.h include Russell King
2004-04-18 22:23 ` [PATCH 2/2] " 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 [this message]
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 ` [PATCH] Clean up asm/pgalloc.h include (parisc) 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:23 ` [PATCH] Clean up asm/pgalloc.h include (sparc64) 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=Pine.GSO.4.58.0404191815100.3430@waterleaf.sonytel.be \
--to=geert@linux-m68k.org \
--cc=jes@trained-monkey.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-m68k@lists.linux-m68k.org \
--cc=rmk+lkml@arm.linux.org.uk \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®