From: Andreas Schwab Date: Wed, 24 Aug 2005 15:36:21 +0000 (+0200) Subject: [PATCH] m68k: fix broken macros causing compile errors X-Git-Tag: v2.6.13~39 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=40bb0c3ef52d872de348e10000eb5432a43a147d;p=linux-2.6-omap-h63xx.git [PATCH] m68k: fix broken macros causing compile errors Add parens around macro parameters. Signed-off-by: Andreas Schwab Signed-off-by: Linus Torvalds --- diff --git a/include/asm-m68k/page.h b/include/asm-m68k/page.h index 99a51670921..206313e2a81 100644 --- a/include/asm-m68k/page.h +++ b/include/asm-m68k/page.h @@ -138,13 +138,13 @@ extern unsigned long m68k_memoffset; #define __pa(vaddr) ((unsigned long)(vaddr)+m68k_memoffset) #define __va(paddr) ((void *)((unsigned long)(paddr)-m68k_memoffset)) #else -#define __pa(vaddr) virt_to_phys((void *)vaddr) -#define __va(paddr) phys_to_virt((unsigned long)paddr) +#define __pa(vaddr) virt_to_phys((void *)(vaddr)) +#define __va(paddr) phys_to_virt((unsigned long)(paddr)) #endif #else /* !CONFIG_SUN3 */ /* This #define is a horrible hack to suppress lots of warnings. --m */ -#define __pa(x) ___pa((unsigned long)x) +#define __pa(x) ___pa((unsigned long)(x)) static inline unsigned long ___pa(unsigned long x) { if(x == 0)