]> git.hungrycats.org Git - linux/commit
[PATCH] remove weird pmd cast
authorDave Hansen <haveblue@us.ibm.com>
Wed, 20 Oct 2004 01:38:41 +0000 (18:38 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 20 Oct 2004 01:38:41 +0000 (18:38 -0700)
commitc138da2803b88581199d71b64cb03c1283f68f7a
tree1d19d207af6e68956c6c4c245c3dca2935fc5afc
parent551107ca34a5e350c3bcaf20b76301db0cf3a242
[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: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/mm/pgtable.c