android_kernel_google_msm/fs/nfs/blocklayout
Helge Deller e71859894b nfs: fix do_div() warning by instead using sector_div()
commit 3873d064b8 upstream.

When compiling a 32bit kernel with CONFIG_LBDAF=n the compiler complains like
shown below.  Fix this warning by instead using sector_div() which is provided
by the kernel.h header file.

fs/nfs/blocklayout/extents.c: In function ‘normalize’:
include/asm-generic/div64.h:43:28: warning: comparison of distinct pointer types lacks a cast [enabled by default]
fs/nfs/blocklayout/extents.c:47:13: note: in expansion of macro ‘do_div’
nfs/blocklayout/extents.c:47:2: warning: right shift count >= width of type [enabled by default]
fs/nfs/blocklayout/extents.c:47:2: warning: passing argument 1 of ‘__div64_32’ from incompatible pointer type [enabled by default]
include/asm-generic/div64.h:35:17: note: expected ‘uint64_t *’ but argument is of type ‘sector_t *’
 extern uint32_t __div64_32(uint64_t *dividend, uint32_t divisor);

Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-12-20 07:34:20 -08:00
..
blocklayout.c umount oops when remove blocklayoutdriver first 2013-02-28 06:59:02 -08:00
blocklayout.h pnfsblock: fix partial page buffer wirte 2012-12-10 10:59:40 -08:00
blocklayoutdev.c NFS: replace global bl_wq with per-net one 2012-03-11 10:57:35 -04:00
blocklayoutdm.c pnfs-block: removing DM device maybe cause oops when call dev_remove 2013-04-05 10:04:30 -07:00
extents.c nfs: fix do_div() warning by instead using sector_div() 2013-12-20 07:34:20 -08:00
Makefile pnfsblock: remove device operations 2011-07-31 12:18:16 -04:00