]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc79979d5548ab72b99675cd26d377083066d4e82
tree1ec34697abd3aae920b523881e3fde74508157f7
parentbd4741ae62130cbc28070f01688d99a05b948383
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: 50228b579984 ("NTB: Split ntb_hw_intel and ntb_transport drivers")
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/ntb_transport.c