[PATCH -next] rapidio: change inbound window size type to u64 fix

From: Alexandre Bounine
Date: Tue Aug 02 2016 - 14:51:03 EST


Fix for patch "rapidio: change inbound window size type to u64".

Remove compiler warning about size of constant.

Signed-off-by: Alexandre Bounine <alexandre.bounine@xxxxxxx>
Cc: Matt Porter <mporter@xxxxxxxxxxxxxxxxxxx>
Cc: Michael Ellerman <mpe@xxxxxxxxxxxxxx>
Cc: Andre van Herk <andre.van.herk@xxxxxxxxxxxxxxxxxxxxxxxxx>
Cc: Barry Wood <barry.wood@xxxxxxx>
Cc: linux-kernel@xxxxxxxxxxxxxxx
---
arch/powerpc/sysdev/fsl_rio.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/sysdev/fsl_rio.c b/arch/powerpc/sysdev/fsl_rio.c
index 4ad2321..f03930c 100644
--- a/arch/powerpc/sysdev/fsl_rio.c
+++ b/arch/powerpc/sysdev/fsl_rio.c
@@ -298,7 +298,7 @@ int fsl_map_inb_mem(struct rio_mport *mport, dma_addr_t lstart,
u32 riwar;
int i;

- if ((size & (size - 1)) != 0 || size > 0x400000000UL)
+ if ((size & (size - 1)) != 0 || size > 0x400000000ULL)
return -EINVAL;

base_size_log = ilog2(size);
--
1.7.8.4