linux/drivers/net/ethernet/qlogic
Nathan Chancellor 77f2d75381 qed: Avoid implicit enum conversion in qed_iwarp_parse_rx_pkt
Clang warns when one enumerated type is implicitly converted to another.

drivers/net/ethernet/qlogic/qed/qed_iwarp.c:1713:25: warning: implicit
conversion from enumeration type 'enum tcp_ip_version' to different
enumeration type 'enum qed_tcp_ip_version' [-Wenum-conversion]
                cm_info->ip_version = TCP_IPV4;
                                    ~ ^~~~~~~~
drivers/net/ethernet/qlogic/qed/qed_iwarp.c:1733:25: warning: implicit
conversion from enumeration type 'enum tcp_ip_version' to different
enumeration type 'enum qed_tcp_ip_version' [-Wenum-conversion]
                cm_info->ip_version = TCP_IPV6;
                                    ~ ^~~~~~~~
2 warnings generated.

Use the appropriate values from the expected type, qed_tcp_ip_version:

TCP_IPV4 = QED_TCP_IPV4 = 0
TCP_IPV6 = QED_TCP_IPV6 = 1

Link: https://github.com/ClangBuiltLinux/linux/issues/125
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-09-26 20:23:16 -07:00
..
netxen netxen_nic: Mark expected switch fall-throughs 2018-08-07 17:54:20 -07:00
qed qed: Avoid implicit enum conversion in qed_iwarp_parse_rx_pkt 2018-09-26 20:23:16 -07:00
qede net_sched: remove list_head from tc_action 2018-08-21 12:45:44 -07:00
qlcnic ethernet/qlogic: remove unused array msi_tgt_status 2018-08-09 14:16:51 -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
qla3xxx.c net: qla3xxx: Eliminate duplicate barriers on weakly-ordered archs 2018-03-26 12:47:55 -04:00
qla3xxx.h