From 1a9fa6504fc9dbb2bb25eba9c0a38feb3b4016be Mon Sep 17 00:00:00 2001 From: Alexander Viro <viro@parcelfarce.linux.theplanet.co.uk> Date: Tue, 1 Feb 2005 21:30:35 -0800 Subject: [PATCH] [PATCH] missing () in macros (alpha pgtable.h) Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org> --- include/asm-alpha/pgtable.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/asm-alpha/pgtable.h b/include/asm-alpha/pgtable.h index 846b09b0f96c..a22e394a3d52 100644 --- a/include/asm-alpha/pgtable.h +++ b/include/asm-alpha/pgtable.h @@ -194,7 +194,7 @@ extern unsigned long __zero_page(void); * and a page entry and page directory to the page they refer to. */ #ifndef CONFIG_DISCONTIGMEM -#define page_to_pa(page) ((page - mem_map) << PAGE_SHIFT) +#define page_to_pa(page) (((page) - mem_map) << PAGE_SHIFT) #define pte_pfn(pte) (pte_val(pte) >> 32) #define pte_page(pte) pfn_to_page(pte_pfn(pte)) @@ -272,7 +272,7 @@ extern inline pte_t pte_mkyoung(pte_t pte) { pte_val(pte) |= __ACCESS_BITS; retu #define PAGE_DIR_OFFSET(tsk,address) pgd_offset((tsk),(address)) /* to find an entry in a kernel page-table-directory */ -#define pgd_offset_k(address) pgd_offset(&init_mm, address) +#define pgd_offset_k(address) pgd_offset(&init_mm, (address)) /* to find an entry in a page-table-directory. */ #define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1)) -- 2.30.9