From: Paul Mundt <lethal@linux-sh.org>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.6.11-mm4
Date: Thu, 17 Mar 2005 10:19:51 +0200 [thread overview]
Message-ID: <20050317081951.GF5037@linux-sh.org> (raw)
In-Reply-To: <20050316040654.62881834.akpm@osdl.org>
[-- Attachment #1: Type: text/plain, Size: 2059 bytes --]
On Wed, Mar 16, 2005 at 04:06:54AM -0800, Andrew Morton wrote:
> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.11/2.6.11-mm4/
>
sh and sh64 need xlate_dev_mem_ptr/xlate_dev_kmem_ptr definitions too..
otherwise end up with:
LD .tmp_vmlinux1
drivers/built-in.o(.text+0xf0): In function `read_mem':
mem.c: undefined reference to `xlate_dev_mem_ptr'
drivers/built-in.o(.text+0x210): In function `write_mem':
mem.c: undefined reference to `xlate_dev_mem_ptr'
drivers/built-in.o(.text+0x478): In function `read_kmem':
mem.c: undefined reference to `xlate_dev_kmem_ptr'
drivers/built-in.o(.text+0x628): In function `write_kmem':
mem.c: undefined reference to `xlate_dev_kmem_ptr'
make: *** [.tmp_vmlinux1] Error 1
include/asm-sh/io.h | 11 +++++++++++
include/asm-sh64/io.h | 11 +++++++++++
2 files changed, 22 insertions(+)
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
--- linux-sh-2.6.11-mm4.orig/include/asm-sh/io.h 2005-03-17 10:10:56.911518490 +0200
+++ linux-sh-2.6.11-mm4/include/asm-sh/io.h 2005-03-17 10:11:35.164242096 +0200
@@ -295,6 +295,17 @@
#define dma_cache_wback(_start,_size) \
__flush_wback_region(_start,_size)
+/*
+ * Convert a physical pointer to a virtual kernel pointer for /dev/mem
+ * access
+ */
+#define xlate_dev_mem_ptr(p) __va(p)
+
+/*
+ * Convert a virtual cached pointer to an uncached pointer
+ */
+#define xlate_dev_kmem_ptr(p) p
+
#endif /* __KERNEL__ */
#endif /* __ASM_SH_IO_H */
--- linux-sh-2.6.11-mm4.orig/include/asm-sh64/io.h 2005-03-17 10:11:44.187997628 +0200
+++ linux-sh-2.6.11-mm4/include/asm-sh64/io.h 2005-03-17 10:12:26.554154928 +0200
@@ -235,5 +235,16 @@
asm volatile ("ocbwb %0, 0" : : "r" (s));
}
+/*
+ * Convert a physical pointer to a virtual kernel pointer for /dev/mem
+ * access
+ */
+#define xlate_dev_mem_ptr(p) __va(p)
+
+/*
+ * Convert a virtual cached pointer to an uncached pointer
+ */
+#define xlate_dev_kmem_ptr(p) p
+
#endif /* __KERNEL__ */
#endif /* __ASM_SH64_IO_H */
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-03-17 8:20 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-16 12:06 2.6.11-mm4 Andrew Morton
2005-03-16 14:22 ` 2.6.11-mm4 Benoit Boissinot
2005-03-16 17:31 ` 2.6.11-mm4 Adrian Bunk
2005-03-16 14:33 ` 2.6.11-mm4 Brice Goglin
2005-03-16 15:07 ` 2.6.11-mm4 J.A. Magallon
2005-03-16 18:22 ` 2.6.11-mm4 Sam Ravnborg
2005-03-16 18:33 ` 2.6.11-mm4 Sam Ravnborg
2005-03-16 21:26 ` 2.6.11-mm4 Andrew Morton
2005-03-16 22:39 ` 2.6.11-mm4 J.A. Magallon
2005-03-16 23:03 ` 2.6.11-mm4 Andrew Morton
2005-03-17 21:47 ` 2.6.11-mm4 Sam Ravnborg
2005-03-16 22:57 ` [PATCH] make gconfig build again J.A. Magallon
2005-03-16 23:09 ` Andrew Morton
2005-03-16 16:15 ` 2.6.11-mm4 maximilian attems
2005-03-16 22:50 ` 2.6.11-mm4 Sean Neakums
2005-03-16 23:06 ` 2.6.11-mm4 Andrew Morton
2005-03-16 23:22 ` 2.6.11-mm4 Sean Neakums
2005-03-17 8:19 ` Paul Mundt [this message]
2005-03-17 8:42 ` 2.6.11-mm4 Borislav Petkov
2005-03-17 9:18 ` 2.6.11-mm4 Andrew Morton
2005-03-17 9:42 ` 2.6.11-mm4 Borislav Petkov
2005-03-17 11:07 ` 2.6.11-mm4 Borislav Petkov
2005-03-17 13:41 ` 2.6.11-mm4 Barry K. Nathan
2005-03-17 14:07 ` 2.6.11-mm4 Borislav Petkov
2005-03-23 9:42 ` 2.6.11-mm4 and 2.6.12-rc1-mm1 Borislav Petkov
2005-03-23 10:17 ` Andrew Morton
2005-03-24 7:09 ` Borislav Petkov
2005-03-19 13:39 ` 2.6.11-mm4: drivers/scsi/arcmsr/arcmsr.c: enormous stack usage Adrian Bunk
[not found] ` <002c01c52df4$37620cd0$9300a8c0@erich2003>
2005-03-22 15:56 ` Adrian Bunk
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=20050317081951.GF5037@linux-sh.org \
--to=lethal@linux-sh.org \
--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.