Skip to contentSkip to conversation

s390: fix pgd_index() compile warnings

PATCH New Heiko Carstens 1 participant 1 message Jan 3, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s390: fix pgd_index() compile warnings

Hi Andrew,

the patch below fixes a few compile warnings due to missing parenthesizes.

Please apply. Thanks,

Heiko

include/asm-s390/pgtable.h +1 -1
diff -urN linux-2.6/include/asm-s390/pgtable.h linux-2.6-patched/include/asm-s390/pgtable.h
@@ -681,7 +681,7 @@
 #define pgd_page_kernel(pgd) (pgd_val(pgd) & PAGE_MASK)
 
 /* to find an entry in a page-table-directory */
-#define pgd_index(address) ((address >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))
+#define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))
 #define pgd_offset(mm, address) ((mm)->pgd+pgd_index(address))
 
 /* to find an entry in a kernel page-table-directory */