[PATCH] UML - fix __pgd_alloc declaration

From: Jeff Dike
Date: Fri Dec 03 2004 - 14:49:53 EST


>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 <bstroesser@xxxxxxxxxxxxxxxxxxx>
Signed-off-by: Jeff Dike <jdike@xxxxxxxxxxx>

Index: 2.6.9/arch/um/kernel/mem.c
===================================================================
--- 2.6.9.orig/arch/um/kernel/mem.c 2004-12-01 23:46:07.000000000 -0500
+++ 2.6.9/arch/um/kernel/mem.c 2004-12-01 23:49:39.000000000 -0500
@@ -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);


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/