NTB: fix 32-bit compiler warning
authorArnd Bergmann <arnd@arndb.de>
Wed, 7 Oct 2015 07:59:34 +0000 (09:59 +0200)
committerJon Mason <jdmason@kudzu.us>
Sun, 8 Nov 2015 21:24:43 +0000 (16:24 -0500)
commitfdcb4b2e78220bde95ce4ba3213088e3a1f1cec6
tree1ec34697abd3aae920b523881e3fde74508157f7
parent8b782fab4da771c97a198f6cb496d124dace36fd
NTB: fix 32-bit compiler warning

resource_size_t may be 32-bit wide on some architectures, which causes
this warning when building the NTB code:

drivers/ntb/ntb_transport.c: In function 'ntb_transport_link_work':
drivers/ntb/ntb_transport.c:828:46: warning: right shift count >= width of type [-Wshift-count-overflow]

The warning is harmless but can be avoided by using the upper_32_bits()
macro.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: e26a5843f7f5 ("NTB: Split ntb_hw_intel and ntb_transport drivers")
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/ntb_transport.c