提交 ce0c0f9e 编写于 作者: F Figo.zhang 提交者: Ingo Molnar

x86, pgtable.h: Clean up types

Use "unsigned long" consistently, not "unsigned".
Signed-off-by: NFigo.zhang <figo1802@gmail.com>
LKML-Reference: <1246183659.2530.4.camel@myhost>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 087975b0
...@@ -356,7 +356,7 @@ static inline unsigned long pmd_page_vaddr(pmd_t pmd) ...@@ -356,7 +356,7 @@ static inline unsigned long pmd_page_vaddr(pmd_t pmd)
* this macro returns the index of the entry in the pmd page which would * this macro returns the index of the entry in the pmd page which would
* control the given virtual address * control the given virtual address
*/ */
static inline unsigned pmd_index(unsigned long address) static inline unsigned long pmd_index(unsigned long address)
{ {
return (address >> PMD_SHIFT) & (PTRS_PER_PMD - 1); return (address >> PMD_SHIFT) & (PTRS_PER_PMD - 1);
} }
...@@ -376,7 +376,7 @@ static inline unsigned pmd_index(unsigned long address) ...@@ -376,7 +376,7 @@ static inline unsigned pmd_index(unsigned long address)
* this function returns the index of the entry in the pte page which would * this function returns the index of the entry in the pte page which would
* control the given virtual address * control the given virtual address
*/ */
static inline unsigned pte_index(unsigned long address) static inline unsigned long pte_index(unsigned long address)
{ {
return (address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1); return (address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1);
} }
...@@ -462,7 +462,7 @@ static inline unsigned long pgd_page_vaddr(pgd_t pgd) ...@@ -462,7 +462,7 @@ static inline unsigned long pgd_page_vaddr(pgd_t pgd)
#define pgd_page(pgd) pfn_to_page(pgd_val(pgd) >> PAGE_SHIFT) #define pgd_page(pgd) pfn_to_page(pgd_val(pgd) >> PAGE_SHIFT)
/* to find an entry in a page-table-directory. */ /* to find an entry in a page-table-directory. */
static inline unsigned pud_index(unsigned long address) static inline unsigned long pud_index(unsigned long address)
{ {
return (address >> PUD_SHIFT) & (PTRS_PER_PUD - 1); return (address >> PUD_SHIFT) & (PTRS_PER_PUD - 1);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册