Skip to contentSkip to conversation

powerpc/cell: Fix integer constant warning

PATCH New Denis Kirjanov 1 participant 1 message May 27, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/cell: Fix integer constant warning

Fix smatch warning: warning: constant 0x800000000 is so big it is long

---
arch/powerpc/platforms/cell/iommu.c | 2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
arch/powerpc/platforms/cell/iommu.c +1 -1
index e3ec497..0a33aed 100644
@@ -1067,7 +1067,7 @@ static int __init cell_iommu_fixed_mapping_init(void)
 	fbase = _ALIGN_UP(fbase, 1 << IO_SEGMENT_SHIFT);
 	fsize = lmb_phys_mem_size();
 
-	if ((fbase + fsize) <= 0x800000000)
+	if ((fbase + fsize) <= 0x800000000ul)
 		hbase = 0; /* use the device tree window */
 	else {
 		/* If we're over 32 GB we need to cheat. We can't map all of