zcache: Use div_u64 for 64-bit division
commit3ca15c4486beb113700cda44e32109cf0d97528b
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Thu, 4 Aug 2011 22:00:33 +0000 (4 19:00 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Aug 2011 19:05:34 +0000 (8 12:05 -0700)
tree099ee5fff1cd27dfbc7fe070cfb9bb4312355936
parentf704648281831fbb8a4ca1acbe18cb84bc0267c8
zcache: Use div_u64 for 64-bit division

xv_get_total_size_bytes returns a u64 value and it's used in a division.
This causes build failures in 32-bit architectures, as reported by Randy
Dunlap.

Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Dan Magenheimer <dan.magenheimer@oracle.com>
Cc: Nitin Gupta <ngupta@vflare.org>
Acked-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/zcache/zcache-main.c