[PATCH] fs/jfs/super.c: Fix compile warning - 'comparison of distinct pointer types lacks'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Found a compile warning on linux-next:

fs/jfs/super.c: In function ‘jfs_fill_super’:
fs/jfs/super.c:527: warning: comparison of distinct pointer types lacks
a cast

and the corresponding fix::

Signed-off-by: Greg Petr <greg.petr@xxxxxxxxx>

diff --git a/fs/jfs/super.c b/fs/jfs/super.c
index 2234c73..3d8dbab 100644
--- a/fs/jfs/super.c
+++ b/fs/jfs/super.c
@@ -524,7 +524,8 @@ static int jfs_fill_super(struct super_block *sb,
void *data, int silent)
 	 * Page cache is indexed by long.
 	 * I would use MAX_LFS_FILESIZE, but it's only half as big
 	 */
-	sb->s_maxbytes = min(((u64) PAGE_CACHE_SIZE << 32) - 1,
sb->s_maxbytes);
+	 sb->s_maxbytes = min(((u64) PAGE_CACHE_SIZE << 32) - 1,
+				(u64)sb->s_maxbytes);
 #endif
 	sb->s_time_gran = 1;
 	return 0;

Regards.


--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux