projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f08cb3
)
powerpc/mm: Avoid avoidable void* pointer
author
Michael Neuling
<mikey@neuling.org>
Wed, 17 Nov 2010 18:52:45 +0000
(18:52 +0000)
committer
Benjamin Herrenschmidt
<benh@kernel.crashing.org>
Mon, 29 Nov 2010 04:48:23 +0000
(15:48 +1100)
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>
arch/powerpc/mm/hash_utils_64.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/mm/hash_utils_64.c
b/arch/powerpc/mm/hash_utils_64.c
index 5e9584405c4560c13c5567ba6affa81b2391e6bd..a5991facddcef87d0c40f8fb9bdd83a0bc7725bd 100644
(file)
--- 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;