From 8bb63e0e90f804f79862622b8a9c5de31475ccf4 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Fri, 29 Aug 2008 12:51:32 +0100 Subject: [PATCH] --- yaml --- r: 110371 b: refs/heads/master c: 17b746278da8d6642bc487ec35efe4be2333f03f h: refs/heads/master i: 110369: 1f0101e6c6a93bc64e5859f747af1d61658e5268 110367: 929a38cbefd3e568ce4140833d203b7380fb739b v: v3 --- [refs] | 2 +- trunk/arch/x86/mm/pgtable.c | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 2f085378c996..df94cd9a2370 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0722bba8f14eb5271c8b67e97def74da50eceb15 +refs/heads/master: 17b746278da8d6642bc487ec35efe4be2333f03f diff --git a/trunk/arch/x86/mm/pgtable.c b/trunk/arch/x86/mm/pgtable.c index d50302774fe2..86f2ffc43c3d 100644 --- a/trunk/arch/x86/mm/pgtable.c +++ b/trunk/arch/x86/mm/pgtable.c @@ -63,10 +63,8 @@ static inline void pgd_list_del(pgd_t *pgd) #define UNSHARED_PTRS_PER_PGD \ (SHARED_KERNEL_PMD ? KERNEL_PGD_BOUNDARY : PTRS_PER_PGD) -static void pgd_ctor(void *p) +static void pgd_ctor(pgd_t *pgd) { - pgd_t *pgd = p; - /* If the pgd points to a shared pagetable level (either the ptes in non-PAE, or shared PMD in PAE), then just copy the references from swapper_pg_dir. */ @@ -87,7 +85,7 @@ static void pgd_ctor(void *p) pgd_list_add(pgd); } -static void pgd_dtor(void *pgd) +static void pgd_dtor(pgd_t *pgd) { unsigned long flags; /* can be called from interrupt context */