]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - fs/cramfs/cramfs.c
mtd: fix warnings due to 64-bit partition support
[karo-tx-uboot.git] / fs / cramfs / cramfs.c
index e578a1e8bc82b2d79a0394c4c77409669f0ec38c..fd8e4ef31e6b7c42d589b3a62726ebbc025ceccc 100644 (file)
@@ -43,9 +43,10 @@ struct cramfs_super super;
  * device address space offset, so we need to shift it by a device start address. */
 #if !defined(CONFIG_SYS_NO_FLASH)
 extern flash_info_t flash_info[];
-#define PART_OFFSET(x) (x->offset + flash_info[x->dev->id->num].start[0])
+#define PART_OFFSET(x) ((ulong)x->offset + \
+                        flash_info[x->dev->id->num].start[0])
 #else
-#define PART_OFFSET(x) (x->offset)
+#define PART_OFFSET(x) ((ulong)x->offset)
 #endif
 
 static int cramfs_read_super (struct part_info *info)