diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-01-10 17:42:38 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-01-10 17:50:01 +0100 |
commit | 72d1465789506cdc441cb85271d993aee4ae79fe (patch) | |
tree | 7a1d06407f3d8c299810eaeeca58e59159428dc0 /include/linux/dqblk_qtree.h | |
parent | 09c479f7f1fbfaf848e5813996793966cd50be81 (diff) | |
download | talos-obmc-linux-72d1465789506cdc441cb85271d993aee4ae79fe.tar.gz talos-obmc-linux-72d1465789506cdc441cb85271d993aee4ae79fe.zip |
uio_hv_generic: fix type mismatch warnings
I moved the virt_to_phys() conversion into hv_uio_probe() as part of
a warning fix. Stephen's cleanup to remove the private mmap() function
seems reasonable, but part of it reverted the change that I did to
hide the warnings, so they are back now:
drivers/uio/uio_hv_generic.c: In function 'hv_uio_probe':
drivers/uio/uio_hv_generic.c:123:5: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
drivers/uio/uio_hv_generic.c:130:5: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
drivers/uio/uio_hv_generic.c:136:5: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
The type mismatch is now the result of the uio_mmap() definition, and
the best way I see from here is to shut them up with a uintptr_t cast.
Fixes: 9c40546c012c ("uio_hv_generic: use standard mmap for resources")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/dqblk_qtree.h')
0 files changed, 0 insertions, 0 deletions