Re: [PATCH] scsi: aacraid: avoid open-coded upper_32_bits
> "Arnd" == Arnd Bergmannwrites: 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
RE: [PATCH] scsi: aacraid: avoid open-coded upper_32_bits
> -Original Message- > From: Arnd Bergmann [mailto:a...@arndb.de] > Sent: Tuesday, February 7, 2017 5:00 AM > To: dl-esc-Aacraid Linux Driver; James E.J. > Bottomley ; Martin K. Petersen > > Cc: Arnd Bergmann ; Johannes Thumshirn > ; Raghava Aditya Renukunta > ; Dave Carroll > ; linux-scsi@vger.kernel.org; linux- > ker...@vger.kernel.org > Subject: [PATCH] scsi: aacraid: avoid open-coded upper_32_bits > > EXTERNAL EMAIL > > > 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 > --- Reviewed-by: Raghava Aditya Renukunta
Re: [PATCH] scsi: aacraid: avoid open-coded upper_32_bits
On 02/07/2017 01:59 PM, Arnd Bergmann wrote: > 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> --- The coolest thing with your patches is, one gets to know new cool functions/macros. Anyways looks good, Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850