diff options
author | Arnd Bergmann <[email protected]> | 2017-02-07 13:59:30 +0100 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2017-02-07 17:25:05 -0500 |
commit | 80a94bb357813901e61f2dc80deae2015c50fdcd (patch) | |
tree | 308650d1e2ca3854c0213999c37acb96cd4cf692 /lib/netdev-notifier-error-inject.c | |
parent | 76291469772fb932523c2e0003848934cd29e7cb (diff) |
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 <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Reviewed-by: Raghava Aditya Renukunta <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions