Skip to content

Commit 40bb0c3

Browse files
andreas-schwabLinus Torvalds
authored andcommitted
[PATCH] m68k: fix broken macros causing compile errors
Add parens around macro parameters. Signed-off-by: Andreas Schwab <schwab@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 0572e3d commit 40bb0c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/asm-m68k/page.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,13 @@ extern unsigned long m68k_memoffset;
138138
#define __pa(vaddr) ((unsigned long)(vaddr)+m68k_memoffset)
139139
#define __va(paddr) ((void *)((unsigned long)(paddr)-m68k_memoffset))
140140
#else
141-
#define __pa(vaddr) virt_to_phys((void *)vaddr)
142-
#define __va(paddr) phys_to_virt((unsigned long)paddr)
141+
#define __pa(vaddr) virt_to_phys((void *)(vaddr))
142+
#define __va(paddr) phys_to_virt((unsigned long)(paddr))
143143
#endif
144144

145145
#else /* !CONFIG_SUN3 */
146146
/* This #define is a horrible hack to suppress lots of warnings. --m */
147-
#define __pa(x) ___pa((unsigned long)x)
147+
#define __pa(x) ___pa((unsigned long)(x))
148148
static inline unsigned long ___pa(unsigned long x)
149149
{
150150
if(x == 0)

0 commit comments

Comments
 (0)