* [uml-devel] [Patch] uml: fix the highmem build error
@ 2008-11-27 18:12 ` Américo Wang
0 siblings, 0 replies; 4+ messages in thread
From: Américo Wang @ 2008-11-27 18:12 UTC (permalink / raw)
To: LKML; +Cc: Andrew Morton, jdike, Al Viro, user-mode-linux-devel
This patch fixes this error:
arch/um/kernel/mem.c: In function ‘init_highmem’:
arch/um/kernel/mem.c:177: error: ‘pkmap_page_table’ undeclared (first
use in this function)
arch/um/kernel/mem.c:177: error: (Each undeclared identifier is
reported only once
arch/um/kernel/mem.c:177: error: for each function it appears in.)
Compile and run tested.
Signed-off-by: WANG Cong <wangcong@zeuux.org>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
---
diff --git a/arch/um/include/asm/fixmap.h b/arch/um/include/asm/fixmap.h
index 69c0252..4e656c9 100644
--- a/arch/um/include/asm/fixmap.h
+++ b/arch/um/include/asm/fixmap.h
@@ -40,6 +40,9 @@ enum fixed_addresses {
#endif
__end_of_fixed_addresses
};
+extern pte_t *pkmap_page_table;
+extern pte_t *kmap_pte;
+extern pgprot_t kmap_prot;
extern void __set_fixmap (enum fixed_addresses idx,
unsigned long phys, pgprot_t flags);
diff --git a/arch/x86/mm/highmem_32.c b/arch/x86/mm/highmem_32.c
index bcc079c..884f9e2 100644
--- a/arch/x86/mm/highmem_32.c
+++ b/arch/x86/mm/highmem_32.c
@@ -1,3 +1,4 @@
+#include <asm/fixmap.h>
#include <linux/highmem.h>
#include <linux/module.h>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Patch] uml: fix the highmem build error
@ 2008-11-27 18:12 ` Américo Wang
0 siblings, 0 replies; 4+ messages in thread
From: Américo Wang @ 2008-11-27 18:12 UTC (permalink / raw)
To: LKML; +Cc: Andrew Morton, jdike, user-mode-linux-devel, Al Viro
This patch fixes this error:
arch/um/kernel/mem.c: In function ‘init_highmem’:
arch/um/kernel/mem.c:177: error: ‘pkmap_page_table’ undeclared (first
use in this function)
arch/um/kernel/mem.c:177: error: (Each undeclared identifier is
reported only once
arch/um/kernel/mem.c:177: error: for each function it appears in.)
Compile and run tested.
Signed-off-by: WANG Cong <wangcong@zeuux.org>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
---
diff --git a/arch/um/include/asm/fixmap.h b/arch/um/include/asm/fixmap.h
index 69c0252..4e656c9 100644
--- a/arch/um/include/asm/fixmap.h
+++ b/arch/um/include/asm/fixmap.h
@@ -40,6 +40,9 @@ enum fixed_addresses {
#endif
__end_of_fixed_addresses
};
+extern pte_t *pkmap_page_table;
+extern pte_t *kmap_pte;
+extern pgprot_t kmap_prot;
extern void __set_fixmap (enum fixed_addresses idx,
unsigned long phys, pgprot_t flags);
diff --git a/arch/x86/mm/highmem_32.c b/arch/x86/mm/highmem_32.c
index bcc079c..884f9e2 100644
--- a/arch/x86/mm/highmem_32.c
+++ b/arch/x86/mm/highmem_32.c
@@ -1,3 +1,4 @@
+#include <asm/fixmap.h>
#include <linux/highmem.h>
#include <linux/module.h>
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [uml-devel] [Patch] uml: fix the highmem build error
2008-11-27 18:12 ` Américo Wang
@ 2008-11-27 21:31 ` Américo Wang
-1 siblings, 0 replies; 4+ messages in thread
From: Américo Wang @ 2008-11-27 21:31 UTC (permalink / raw)
To: LKML; +Cc: Andrew Morton, jdike, Al Viro, user-mode-linux-devel
On Thu, Nov 27, 2008 at 6:12 PM, Américo Wang <xiyou.wangcong@gmail.com> wrote:
>
> This patch fixes this error:
>
> arch/um/kernel/mem.c: In function 'init_highmem':
> arch/um/kernel/mem.c:177: error: 'pkmap_page_table' undeclared (first
> use in this function)
> arch/um/kernel/mem.c:177: error: (Each undeclared identifier is
> reported only once
> arch/um/kernel/mem.c:177: error: for each function it appears in.)
>
> Compile and run tested.
>
Ignore the above one, below is the updated version.
------->
This patch fixes this error:
arch/um/kernel/mem.c: In function 'init_highmem':
arch/um/kernel/mem.c:177: error: 'pkmap_page_table' undeclared (first
use in this function)
arch/um/kernel/mem.c:177: error: (Each undeclared identifier is
reported only once
arch/um/kernel/mem.c:177: error: for each function it appears in.)
Signed-off-by: WANG Cong <wangcong@zeuux.org>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/arch/um/include/asm/fixmap.h b/arch/um/include/asm/fixmap.h
index 69c0252..a8e29e5 100644
--- a/arch/um/include/asm/fixmap.h
+++ b/arch/um/include/asm/fixmap.h
@@ -41,6 +41,12 @@ enum fixed_addresses {
__end_of_fixed_addresses
};
+#ifdef CONFIG_HIGHMEM
+extern pte_t *pkmap_page_table;
+extern pte_t *kmap_pte;
+extern pgprot_t kmap_prot;
+#endif
+
extern void __set_fixmap (enum fixed_addresses idx,
unsigned long phys, pgprot_t flags);
diff --git a/arch/x86/mm/highmem_32.c b/arch/x86/mm/highmem_32.c
index bcc079c..884f9e2 100644
--- a/arch/x86/mm/highmem_32.c
+++ b/arch/x86/mm/highmem_32.c
@@ -1,3 +1,4 @@
+#include <asm/fixmap.h>
#include <linux/highmem.h>
#include <linux/module.h>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Patch] uml: fix the highmem build error
@ 2008-11-27 21:31 ` Américo Wang
0 siblings, 0 replies; 4+ messages in thread
From: Américo Wang @ 2008-11-27 21:31 UTC (permalink / raw)
To: LKML; +Cc: Andrew Morton, jdike, user-mode-linux-devel, Al Viro
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=UTF-8, Size: 1785 bytes --]
On Thu, Nov 27, 2008 at 6:12 PM, Américo Wang <xiyou.wangcong@gmail.com> wrote:>> This patch fixes this error:>> arch/um/kernel/mem.c: In function 'init_highmem':> arch/um/kernel/mem.c:177: error: 'pkmap_page_table' undeclared (first> use in this function)> arch/um/kernel/mem.c:177: error: (Each undeclared identifier is> reported only once> arch/um/kernel/mem.c:177: error: for each function it appears in.)>> Compile and run tested.>
Ignore the above one, below is the updated version.
------->
This patch fixes this error:
arch/um/kernel/mem.c: In function 'init_highmem':arch/um/kernel/mem.c:177: error: 'pkmap_page_table' undeclared (firstuse in this function)arch/um/kernel/mem.c:177: error: (Each undeclared identifier isreported only oncearch/um/kernel/mem.c:177: error: for each function it appears in.)
Signed-off-by: WANG Cong <wangcong@zeuux.org>Cc: Jeff Dike <jdike@addtoit.com>Cc: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/arch/um/include/asm/fixmap.h b/arch/um/include/asm/fixmap.hindex 69c0252..a8e29e5 100644--- a/arch/um/include/asm/fixmap.h+++ b/arch/um/include/asm/fixmap.h@@ -41,6 +41,12 @@ enum fixed_addresses { __end_of_fixed_addresses };
+#ifdef CONFIG_HIGHMEM+extern pte_t *pkmap_page_table;+extern pte_t *kmap_pte;+extern pgprot_t kmap_prot;+#endif+ extern void __set_fixmap (enum fixed_addresses idx, unsigned long phys, pgprot_t flags);
diff --git a/arch/x86/mm/highmem_32.c b/arch/x86/mm/highmem_32.cindex bcc079c..884f9e2 100644--- a/arch/x86/mm/highmem_32.c+++ b/arch/x86/mm/highmem_32.c@@ -1,3 +1,4 @@+#include <asm/fixmap.h> #include <linux/highmem.h> #include <linux/module.h>ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¥{±þG«éÿ{ayº\x1dÊÚë,j\a¢f£¢·hïêÿêçz_è®\x03(éÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?¨èÚ&£ø§~á¶iOæ¬z·vØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?I¥
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-11-27 22:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-27 18:12 [uml-devel] [Patch] uml: fix the highmem build error Américo Wang
2008-11-27 18:12 ` Américo Wang
2008-11-27 21:31 ` [uml-devel] " Américo Wang
2008-11-27 21:31 ` Américo Wang
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.