Skip to contentSkip to conversation

uml: fix the highmem build error

PATCH In review Américo Wang 1 participant 2 messages Nov 27, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 uml: fix the highmem build error

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.

---

arch/um/include/asm/fixmap.h +3 -0
index 69c0252..4e656c9 100644
@@ -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);
arch/x86/mm/highmem_32.c +1 -0
index bcc079c..884f9e2 100644
@@ -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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#1 lore raw

On Thu, Nov 27, 2008 at 6:12 PM, Américo Wang <[email protected]> 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.)

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 }; renamed from arch/um/include/asm/fixmap.h +0 -0

+#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);

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�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m���� ������?�I� renamed from arch/x86/mm/highmem_32.c +0 -0