[PATCH 10/14] ARM: shmobile: rcar-gen2: Use "1ULL" instead of "(u64)1"
Simon Horman
horms+renesas at verge.net.au
Wed Jun 25 00:35:22 PDT 2014
From: Geert Uytterhoeven <geert+renesas at glider.be>
Casts are evil
Signed-off-by: Geert Uytterhoeven <geert+renesas at glider.be>
Acked-by: Magnus Damm <damm+renesas at opensource.se>
Signed-off-by: Simon Horman <horms+renesas at verge.net.au>
---
arch/arm/mach-shmobile/setup-rcar-gen2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-shmobile/setup-rcar-gen2.c b/arch/arm/mach-shmobile/setup-rcar-gen2.c
index b0626f8..51d5723 100644
--- a/arch/arm/mach-shmobile/setup-rcar-gen2.c
+++ b/arch/arm/mach-shmobile/setup-rcar-gen2.c
@@ -126,7 +126,7 @@ static int __init rcar_gen2_scan_mem(unsigned long node, const char *uname,
const __be32 *reg, *endp;
int l;
struct memory_reserve_config *mrc = data;
- u64 lpae_start = (u64)1 << 32;
+ u64 lpae_start = 1ULL << 32;
/* We are scanning "memory" nodes only */
if (type == NULL) {
--
2.0.0.rc2
More information about the linux-arm-kernel
mailing list