android_kernel_lge_bullhead/drivers/scsi/bfa
Ben Hutchings db065663ad bfa: Fix undefined bit shift on big-endian architectures with 32-bit DMA address
commit 03a6c3ff3282ee9fa893089304d951e0be93a144 upstream.

bfa_swap_words() shifts its argument (assumed to be 64-bit) by 32 bits
each way.  In two places the argument type is dma_addr_t, which may be
32-bit, in which case the effect of the bit shift is undefined:

drivers/scsi/bfa/bfa_fcpim.c: In function 'bfa_ioim_send_ioreq':
drivers/scsi/bfa/bfa_fcpim.c:2497:4: warning: left shift count >= width of type [enabled by default]
    addr = bfa_sgaddr_le(sg_dma_address(sg));
    ^
drivers/scsi/bfa/bfa_fcpim.c:2497:4: warning: right shift count >= width of type [enabled by default]
drivers/scsi/bfa/bfa_fcpim.c:2509:4: warning: left shift count >= width of type [enabled by default]
    addr = bfa_sgaddr_le(sg_dma_address(sg));
    ^
drivers/scsi/bfa/bfa_fcpim.c:2509:4: warning: right shift count >= width of type [enabled by default]

Avoid this by adding casts to u64 in bfa_swap_words().

Compile-tested only.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Acked-by: Anil Gurumurthy <anil.gurumurthy@qlogic.com>
Fixes: f16a17507b ('[SCSI] bfa: remove all OS wrappers')
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-09-17 09:03:59 -07:00
..
Makefile [SCSI] bfa: Add BSG interface to support ELS, CT and vendor commands. 2011-06-29 15:59:53 -05:00
bfa.h [SCSI] bfa: Revised Fabric Assigned Address(FAA) feature implementation. 2012-03-28 09:55:22 +01:00
bfa_core.c [SCSI] bfa: Add support to read/update the FRU data. 2012-10-07 11:26:53 +01:00
bfa_cs.h [SCSI] bfa: Make changes to FCXP resource management. 2012-09-24 12:10:56 +04:00
bfa_defs.h [SCSI] bfa: Add support to read/update the FRU data. 2012-10-07 11:26:53 +01:00
bfa_defs_fcs.h [SCSI] bfa: Add support to register node symbolic name with name server 2012-09-24 12:10:57 +04:00
bfa_defs_svc.h [SCSI] bfa: Support Power on Hours display and diag temp sensor fixes 2012-10-07 11:24:19 +01:00
bfa_fc.h [SCSI] bfa: Add support for FC Arbitrated Loop topology. 2012-10-07 11:03:50 +01:00
bfa_fcbuild.c [SCSI] bfa: Add support for FC Arbitrated Loop topology. 2012-10-07 11:03:50 +01:00
bfa_fcbuild.h [SCSI] bfa: Add support to register node symbolic name with name server 2012-09-24 12:10:57 +04:00
bfa_fcpim.c [SCSI] bfa: Add support for IO throttling at port level 2012-10-07 11:21:29 +01:00
bfa_fcpim.h [SCSI] bfa: Add support for IO throttling at port level 2012-10-07 11:21:29 +01:00
bfa_fcs.c [SCSI] bfa: Add support for FC Arbitrated Loop topology. 2012-10-07 11:03:50 +01:00
bfa_fcs.h SCSI: bfa: Fix crash when symb name set for offline vport 2013-12-11 22:36:26 -08:00
bfa_fcs_fcpim.c [SCSI] bfa: Add support for max target ports discovery 2012-09-24 12:10:57 +04:00
bfa_fcs_lport.c SCSI: bfa: Fix crash when symb name set for offline vport 2013-12-11 22:36:26 -08:00
bfa_fcs_rport.c [SCSI] bfa: Add support for IO throttling at port level 2012-10-07 11:21:29 +01:00
bfa_hw_cb.c [SCSI] bfa: Update RME interrupt handling. 2011-07-27 14:44:48 +04:00
bfa_hw_ct.c [SCSI] bfa: Update RME interrupt handling. 2011-07-27 14:44:48 +04:00
bfa_ioc.c [SCSI] bfa: Add support to read/update the FRU data. 2012-10-07 11:26:53 +01:00
bfa_ioc.h bfa: Fix undefined bit shift on big-endian architectures with 32-bit DMA address 2014-09-17 09:03:59 -07:00
bfa_ioc_cb.c [SCSI] bfa: IOC bug fixes. 2011-06-29 16:57:52 -05:00
bfa_ioc_ct.c [SCSI] bfa: Flash Controller PLL initialization fixes 2012-10-07 11:12:12 +01:00
bfa_modules.h [SCSI] bfa: Add support to read/update the FRU data. 2012-10-07 11:26:53 +01:00
bfa_plog.h
bfa_port.c [SCSI] bfa: Add diagnostic port (D-Port) support 2012-10-07 11:17:27 +01:00
bfa_port.h [SCSI] bfa: Add diagnostic port (D-Port) support 2012-10-07 11:17:27 +01:00
bfa_svc.c [SCSI] bfa: Add support for user to configure bandwidth on QoS priorities 2012-10-07 11:20:08 +01:00
bfa_svc.h [SCSI] bfa: Add support for user to configure bandwidth on QoS priorities 2012-10-07 11:20:08 +01:00
bfad.c SCSI: bfa: Chinook quad port 16G FC HBA claim issue 2014-02-06 11:08:17 -08:00
bfad_attr.c SCSI: bfa: Fix crash when symb name set for offline vport 2013-12-11 22:36:26 -08:00
bfad_bsg.c [SCSI] bfa: Add support to read/update the FRU data. 2012-10-07 11:26:53 +01:00
bfad_bsg.h [SCSI] bfa: Add support to read/update the FRU data. 2012-10-07 11:26:53 +01:00
bfad_debugfs.c lseek(fd, n, SEEK_END) does *not* go to eof - n 2013-06-16 08:10:53 -10:00
bfad_drv.h [SCSI] bfa: Update the driver version to 3.1.2.1 2012-10-07 11:29:16 +01:00
bfad_im.c scsi/bfa: convert to idr_alloc() 2013-02-27 19:10:18 -08:00
bfad_im.h [SCSI] bfa: Fix to set vport FC host sysfs entries 2012-05-22 11:06:29 +01:00
bfi.h [SCSI] bfa: Add support to read/update the FRU data. 2012-10-07 11:26:53 +01:00
bfi_ms.h [SCSI] bfa: Add support to read/update the FRU data. 2012-10-07 11:26:53 +01:00
bfi_reg.h [SCSI] bfa: Flash Controller PLL initialization fixes 2012-10-07 11:12:12 +01:00