summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2010-11-17 18:52:45 +0000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2010-11-29 15:48:23 +1100
commit0b97fee0ef9b0a0445520f90980410f905c6f9da (patch)
tree3c0690bbfd915409f3396d40588eeb2e4584d6b0 /arch
parent6f08cb3be6345bc354e48131f7466766db4d355a (diff)
downloadop-kernel-dev-0b97fee0ef9b0a0445520f90980410f905c6f9da.zip
op-kernel-dev-0b97fee0ef9b0a0445520f90980410f905c6f9da.tar.gz
powerpc/mm: Avoid avoidable void* pointer
Change pgdir from a void to real type. Having this as a void is stupid and has already caused 1 bug. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/mm/hash_utils_64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils_64.c
index 5e95844..a5991fa 100644
--- a/arch/powerpc/mm/hash_utils_64.c
+++ b/arch/powerpc/mm/hash_utils_64.c
@@ -1070,7 +1070,7 @@ void hash_preload(struct mm_struct *mm, unsigned long ea,
unsigned long access, unsigned long trap)
{
unsigned long vsid;
- void *pgdir;
+ pgd_t *pgdir;
pte_t *ptep;
unsigned long flags;
int rc, ssize, local = 0;
OpenPOWER on IntegriCloud