aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFigo.zhang <figo1802@gmail.com>2009-06-28 06:07:39 -0400
committerIngo Molnar <mingo@elte.hu>2009-06-29 00:14:42 -0400
commitce0c0f9eec2f377055e8b23c6fa192202381e022 (patch)
tree510068a1c39e208fbe6b9acef05f2f658b576262
parent087975b06b00af9bf888fab6f94ae113c5cd80bd (diff)
x86, pgtable.h: Clean up types
Use "unsigned long" consistently, not "unsigned". Signed-off-by: Figo.zhang <figo1802@gmail.com> LKML-Reference: <1246183659.2530.4.camel@myhost> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--arch/x86/include/asm/pgtable.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h
index af5481e94863..9de8729c1c8f 100644
--- a/arch/x86/include/asm/pgtable.h
+++ b/arch/x86/include/asm/pgtable.h
@@ -356,7 +356,7 @@ static inline unsigned long pmd_page_vaddr(pmd_t pmd)
356 * this macro returns the index of the entry in the pmd page which would 356 * this macro returns the index of the entry in the pmd page which would
357 * control the given virtual address 357 * control the given virtual address
358 */ 358 */
359static inline unsigned pmd_index(unsigned long address) 359static inline unsigned long pmd_index(unsigned long address)
360{ 360{
361 return (address >> PMD_SHIFT) & (PTRS_PER_PMD - 1); 361 return (address >> PMD_SHIFT) & (PTRS_PER_PMD - 1);
362} 362}
@@ -376,7 +376,7 @@ static inline unsigned pmd_index(unsigned long address)
376 * this function returns the index of the entry in the pte page which would 376 * this function returns the index of the entry in the pte page which would
377 * control the given virtual address 377 * control the given virtual address
378 */ 378 */
379static inline unsigned pte_index(unsigned long address) 379static inline unsigned long pte_index(unsigned long address)
380{ 380{
381 return (address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1); 381 return (address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1);
382} 382}
@@ -462,7 +462,7 @@ static inline unsigned long pgd_page_vaddr(pgd_t pgd)
462#define pgd_page(pgd) pfn_to_page(pgd_val(pgd) >> PAGE_SHIFT) 462#define pgd_page(pgd) pfn_to_page(pgd_val(pgd) >> PAGE_SHIFT)
463 463
464/* to find an entry in a page-table-directory. */ 464/* to find an entry in a page-table-directory. */
465static inline unsigned pud_index(unsigned long address) 465static inline unsigned long pud_index(unsigned long address)
466{ 466{
467 return (address >> PUD_SHIFT) & (PTRS_PER_PUD - 1); 467 return (address >> PUD_SHIFT) & (PTRS_PER_PUD - 1);
468} 468}