Skip to contentSkip to conversation

UML - fix __pgd_alloc declaration

PATCH New Jeff Dike 1 participant 1 message Dec 3, 2004 User-mode Linux (UML)

lore
Share & tools
lore

Jeff Dike

author
#0 lore raw

PATCH 1/1 UML - fix __pgd_alloc declaration

Quoted 1 line

From Bodo Stroesser:

__pgd_alloc is defined differently. In include/linux/mm.h it's defined
extern pgd_t fastcall *__pgd_alloc( ...
In arch/um/kernel/mem.c it's defined
pgd_t *__pgd_alloc( ...
Thus, I unified this. Hope, it's correct now.

arch/um/kernel/mem.c +1 -1
Index: 2.6.9/arch/um/kernel/mem.c
===================================================================
@@ -309,7 +309,7 @@
  * Allocate and free page tables.
  */
 
-pgd_t *__pgd_alloc(struct mm_struct *mm, pml4_t *pml4, unsigned long address)
+pgd_t fastcall *__pgd_alloc(struct mm_struct *mm, pml4_t *pml4, unsigned long address)
 {
 	pgd_t *pgd = (pgd_t *)__get_free_page(GFP_KERNEL);