linux_dsm_epyc7002/drivers/net/ethernet/qlogic
Nathan Chancellor 8fa74e3c49 qed: Avoid implicit enum conversion in qed_ooo_submit_tx_buffers
Clang warns when one enumerated type is implicitly converted to another.

drivers/net/ethernet/qlogic/qed/qed_ll2.c:799:32: warning: implicit
conversion from enumeration type 'enum core_tx_dest' to different
enumeration type 'enum qed_ll2_tx_dest' [-Wenum-conversion]
                tx_pkt.tx_dest = p_ll2_conn->tx_dest;
                               ~ ~~~~~~~~~~~~^~~~~~~
1 warning generated.

Fix this by using a switch statement to convert between the enumerated
values since they are not 1 to 1, which matches how the rest of the
driver handles this conversion.

Link: https://github.com/ClangBuiltLinux/linux/issues/125
Suggested-by: Tomer Tayar <Tomer.Tayar@cavium.com>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Acked-by: Tomer Tayar <Tomer.Tayar@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-10-04 09:57:26 -07:00
..
netxen qlogic: netxen: remove ndo_poll_controller 2018-09-28 11:12:29 -07:00
qed qed: Avoid implicit enum conversion in qed_ooo_submit_tx_buffers 2018-10-04 09:57:26 -07:00
qede qede: Add driver support for 20G link speed. 2018-10-02 11:29:40 -07:00
qlcnic Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-10-03 21:00:17 -07:00
qlge qlge: Fix netdev features configuration. 2018-08-25 17:37:38 -07:00
Kconfig qed*: Utilize FW 8.33.1.0 2018-01-02 13:59:16 -05:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
qla3xxx.c net: qla3xxx: Eliminate duplicate barriers on weakly-ordered archs 2018-03-26 12:47:55 -04:00
qla3xxx.h