Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1455397 > unrolled thread

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

Started byAlexandre Bounine <alexandre.bounine@idt.com>
First post2016-08-02 21:00 +0200
Last post2016-08-02 21:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH -next] rapidio: change inbound window size type to u64 fix Alexandre Bounine <alexandre.bounine@idt.com> - 2016-08-02 21:00 +0200

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

FromAlexandre Bounine <alexandre.bounine@idt.com>
Date2016-08-02 21:00 +0200
Subject[PATCH -next] rapidio: change inbound window size type to u64 fix
Message-ID<s1N50-8oW-29@gated-at.bofh.it>
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@idt.com>
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Andre van Herk <andre.van.herk@prodrive-technologies.com>
Cc: Barry Wood <barry.wood@idt.com>
Cc: linux-kernel@vger.kernel.org
---
 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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web