mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] s390: fix pgd_index() compile warnings
@ 2005-01-03 14:24 Heiko Carstens
  0 siblings, 0 replies; only message in thread
From: Heiko Carstens @ 2005-01-03 14:24 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

Hi Andrew,

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

Please apply. Thanks,

Heiko

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>

diff -urN linux-2.6/include/asm-s390/pgtable.h linux-2.6-patched/include/asm-s390/pgtable.h
--- linux-2.6/include/asm-s390/pgtable.h	2005-01-03 14:56:02.000000000 +0100
+++ linux-2.6-patched/include/asm-s390/pgtable.h	2005-01-03 15:05:38.000000000 +0100
@@ -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 */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-01-03 14:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-03 14:24 [PATCH] s390: fix pgd_index() compile warnings Heiko Carstens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®