Re: [PATCH] scsi: aacraid: avoid open-coded upper_32_bits

From: Martin K. Petersen
Date: Tue Feb 07 2017 - 18:44:39 EST


>>>>> "Arnd" == Arnd Bergmann <arnd@xxxxxxxx> writes:

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

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

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

Applied to 4.11/scsi-queue.

--
Martin K. Petersen Oracle Linux Engineering