scsi: aacraid: avoid open-coded upper_32_bits
authorArnd Bergmann <arnd@arndb.de>
Tue, 7 Feb 2017 12:59:30 +0000 (13:59 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 7 Feb 2017 22:25:05 +0000 (17:25 -0500)
commit80a94bb357813901e61f2dc80deae2015c50fdcd
tree308650d1e2ca3854c0213999c37acb96cd4cf692
parent76291469772fb932523c2e0003848934cd29e7cb
scsi: aacraid: avoid open-coded upper_32_bits

Shifting a dma_addr_t right by 32 bits causes a compile-time warning
when that type is only 32 bit wide:

drivers/scsi/aacraid/src.c: In function 'aac_src_start_adapter':
drivers/scsi/aacraid/src.c:414:29: error: right shift count >= width of type [-Werror=shift-count-overflow]

This changes the driver to use the predefined macros consistently,
including one correct but open-coded upper_32_bits() instance.

Fixes: d1ef4da8487f ("scsi: aacraid: added support for init_struct_8")
Fixes: 423400e64d37 ("scsi: aacraid: Include HBA direct interface")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Raghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aacraid/src.c