linux-stable/drivers/scsi/qedf
Arnd Bergmann 6f359f99b8 qedf: fix wrong le16 conversion
gcc points out that we are converting a 16-bit integer into a 32-bit
little-endian type and assigning that to 16-bit little-endian
will end up with a zero:

drivers/scsi/qedf/drv_fcoe_fw_funcs.c: In function 'init_initiator_rw_fcoe_task':
include/uapi/linux/byteorder/big_endian.h:32:26: error: large integer implicitly truncated to unsigned type [-Werror=overflow]
  t_st_ctx->read_write.rx_id = cpu_to_le32(FCOE_RX_ID);

The correct solution appears to be to just use a 16-bit byte swap instead.

Fixes: be086e7c53 ("qed*: Utilize Firmware 8.15.3.0")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Chad Dupuis <chad.dupuis@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-03-23 11:56:08 -07:00
..
drv_fcoe_fw_funcs.c qedf: fix wrong le16 conversion 2017-03-23 11:56:08 -07:00
drv_fcoe_fw_funcs.h qed*: Utilize Firmware 8.15.3.0 2017-03-13 15:33:09 -07:00
drv_scsi_fw_funcs.c qed*: Utilize Firmware 8.15.3.0 2017-03-13 15:33:09 -07:00
drv_scsi_fw_funcs.h qed*: Utilize Firmware 8.15.3.0 2017-03-13 15:33:09 -07:00
Kconfig
Makefile qed*: Utilize Firmware 8.15.3.0 2017-03-13 15:33:09 -07:00
qedf.h qed*: Utilize Firmware 8.15.3.0 2017-03-13 15:33:09 -07:00
qedf_attr.c
qedf_dbg.c
qedf_dbg.h scsi: qedf: Fix defective logging format and argument mismatches 2017-03-06 22:38:52 -05:00
qedf_debugfs.c
qedf_els.c qed*: Utilize Firmware 8.15.3.0 2017-03-13 15:33:09 -07:00
qedf_fip.c scsi: qedf: Fix defective logging format and argument mismatches 2017-03-06 22:38:52 -05:00
qedf_hsi.h
qedf_io.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-03-15 11:59:10 -07:00
qedf_main.c scsi: qedf: Use vsprintf extension %pad 2017-03-06 22:39:26 -05:00
qedf_version.h