diff options
author | Michal Simek <monstr@monstr.eu> | 2010-08-16 05:02:18 -0400 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2010-10-21 01:51:20 -0400 |
commit | 5f0cb3e01ec41b35b8452856f2ddd7a9f36fb80b (patch) | |
tree | ce6a7ddfc6b4957281f7ed156447661e01d38a33 /arch/microblaze | |
parent | f859f0a235d4d9e7eae49bf10bab6b0967d328f6 (diff) |
microblaze: Fix pmd_populate macro
Compilation warning:
mm/memory.c: In function '__pte_alloc':
mm/memory.c:421: warning: assignment makes integer from pointer without a cast
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze')
-rw-r--r-- | arch/microblaze/include/asm/pgalloc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/microblaze/include/asm/pgalloc.h b/arch/microblaze/include/asm/pgalloc.h index c614a893f8a3..ebd35792482c 100644 --- a/arch/microblaze/include/asm/pgalloc.h +++ b/arch/microblaze/include/asm/pgalloc.h | |||
@@ -165,7 +165,8 @@ extern inline void pte_free(struct mm_struct *mm, struct page *ptepage) | |||
165 | 165 | ||
166 | #define __pte_free_tlb(tlb, pte, addr) pte_free((tlb)->mm, (pte)) | 166 | #define __pte_free_tlb(tlb, pte, addr) pte_free((tlb)->mm, (pte)) |
167 | 167 | ||
168 | #define pmd_populate(mm, pmd, pte) (pmd_val(*(pmd)) = page_address(pte)) | 168 | #define pmd_populate(mm, pmd, pte) \ |
169 | (pmd_val(*(pmd)) = (unsigned long)page_address(pte)) | ||
169 | 170 | ||
170 | #define pmd_populate_kernel(mm, pmd, pte) \ | 171 | #define pmd_populate_kernel(mm, pmd, pte) \ |
171 | (pmd_val(*(pmd)) = (unsigned long) (pte)) | 172 | (pmd_val(*(pmd)) = (unsigned long) (pte)) |