s390: fix pgd_index() compile warnings
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
Signed-off-by Heiko Carstens <[email protected]>
include/asm-s390/pgtable.h +1 -1
@@ -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 */