diff options
author | Michael Neuling <mikey@neuling.org> | 2010-11-17 13:52:45 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-11-28 23:48:23 -0500 |
commit | 0b97fee0ef9b0a0445520f90980410f905c6f9da (patch) | |
tree | 3c0690bbfd915409f3396d40588eeb2e4584d6b0 /arch/powerpc/mm | |
parent | 6f08cb3be6345bc354e48131f7466766db4d355a (diff) |
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/powerpc/mm')
-rw-r--r-- | arch/powerpc/mm/hash_utils_64.c | 2 |
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 5e9584405c45..a5991facddce 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, | |||
1070 | unsigned long access, unsigned long trap) | 1070 | unsigned long access, unsigned long trap) |
1071 | { | 1071 | { |
1072 | unsigned long vsid; | 1072 | unsigned long vsid; |
1073 | void *pgdir; | 1073 | pgd_t *pgdir; |
1074 | pte_t *ptep; | 1074 | pte_t *ptep; |
1075 | unsigned long flags; | 1075 | unsigned long flags; |
1076 | int rc, ssize, local = 0; | 1076 | int rc, ssize, local = 0; |