Parcourir la source

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>
Michal Simek il y a 15 ans
Parent
commit
5f0cb3e01e
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      arch/microblaze/include/asm/pgalloc.h

+ 2 - 1
arch/microblaze/include/asm/pgalloc.h

@@ -165,7 +165,8 @@ extern inline void pte_free(struct mm_struct *mm, struct page *ptepage)
 
 #define __pte_free_tlb(tlb, pte, addr)	pte_free((tlb)->mm, (pte))
 
-#define pmd_populate(mm, pmd, pte)	(pmd_val(*(pmd)) = page_address(pte))
+#define pmd_populate(mm, pmd, pte) \
+			(pmd_val(*(pmd)) = (unsigned long)page_address(pte))
 
 #define pmd_populate_kernel(mm, pmd, pte) \
 		(pmd_val(*(pmd)) = (unsigned long) (pte))