From f976477f812d015292b0a1ee81c14314f28ed20c Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Thu, 18 Feb 2010 19:24:23 +0000 Subject: [PATCH] Parens around tertiary operator so that casting the result works... --- sys/mips/cavium/octeon_pcmap_regs.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/mips/cavium/octeon_pcmap_regs.h b/sys/mips/cavium/octeon_pcmap_regs.h index ab19d776fc2d..a80c3d4695a6 100644 --- a/sys/mips/cavium/octeon_pcmap_regs.h +++ b/sys/mips/cavium/octeon_pcmap_regs.h @@ -601,10 +601,9 @@ typedef enum { #define octeon_ptr_to_phys(ptr) \ - ((((mipsx_addr_size) ptr) >> MIPSX_ADDR_SIZE_KSEGX_BIT_SHIFT) == 2) ? \ + (((((mipsx_addr_size) ptr) >> MIPSX_ADDR_SIZE_KSEGX_BIT_SHIFT) == 2) ? \ ((mipsx_addr_size) ptr & MIPSX_ADDR_SIZE_KSEGX_MASK_REMOVED) : \ - (vtophys(ptr)) - + (vtophys(ptr))) #ifdef CODE_FOR_64_BIT_NEEDED static inline mipsx_addr_size octeon_ptr_to_phys (void *ptr)