UML - fix __pgd_alloc declaration
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.
Signed-off-by Bodo Stroesser <[email protected]>
Signed-off-by Jeff Dike <[email protected]>
arch/um/kernel/mem.c +1 -1
@@ -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 );