Commit c138da28 authored by Dave Hansen's avatar Dave Hansen Committed by Linus Torvalds

[PATCH] remove weird pmd cast

I don't know what this is trying to do.  It might be some kind of artifact
from when get_pgd_slow() was removed.  

The expanded expression with __pa() ends up looking something like this:

	(unsigned long)(u64)(u32)pmd-PAGE_OFFSET

and that is just nutty because pmd is a pointer now, anyway.

Attached patch removes the casts.
Signed-off-by: default avatarDave Hansen <haveblue@us.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 551107ca
...@@ -233,7 +233,7 @@ pgd_t *pgd_alloc(struct mm_struct *mm) ...@@ -233,7 +233,7 @@ pgd_t *pgd_alloc(struct mm_struct *mm)
pmd_t *pmd = kmem_cache_alloc(pmd_cache, GFP_KERNEL); pmd_t *pmd = kmem_cache_alloc(pmd_cache, GFP_KERNEL);
if (!pmd) if (!pmd)
goto out_oom; goto out_oom;
set_pgd(&pgd[i], __pgd(1 + __pa((u64)((u32)pmd)))); set_pgd(&pgd[i], __pgd(1 + __pa(pmd)));
} }
return pgd; return pgd;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment