Skip to content
  • Arnd Bergmann's avatar
    NTB: fix 32-bit compiler warning · fdcb4b2e
    Arnd Bergmann authored
    
    
    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: default avatarArnd Bergmann <arnd@arndb.de>
    Fixes: e26a5843
    
     ("NTB: Split ntb_hw_intel and ntb_transport drivers")
    Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
    fdcb4b2e