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

drivers/net/ethernet/qlogic/qed/qed_sp_commands.c:163:25: warning:
implicit conversion from enumeration type 'enum tunnel_clss' to
different enumeration type 'enum qed_tunn_clss' [-Wenum-conversion]
        p_tun->vxlan.tun_cls = type;
                             ~ ^~~~
drivers/net/ethernet/qlogic/qed/qed_sp_commands.c:165:26: warning:
implicit conversion from enumeration type 'enum tunnel_clss' to
different enumeration type 'enum qed_tunn_clss' [-Wenum-conversion]
        p_tun->l2_gre.tun_cls = type;
                              ~ ^~~~
drivers/net/ethernet/qlogic/qed/qed_sp_commands.c:167:26: warning:
implicit conversion from enumeration type 'enum tunnel_clss' to
different enumeration type 'enum qed_tunn_clss' [-Wenum-conversion]
        p_tun->ip_gre.tun_cls = type;
                              ~ ^~~~
drivers/net/ethernet/qlogic/qed/qed_sp_commands.c:169:29: warning:
implicit conversion from enumeration type 'enum tunnel_clss' to
different enumeration type 'enum qed_tunn_clss' [-Wenum-conversion]
        p_tun->l2_geneve.tun_cls = type;
                                 ~ ^~~~
drivers/net/ethernet/qlogic/qed/qed_sp_commands.c:171:29: warning:
implicit conversion from enumeration type 'enum tunnel_clss' to
different enumeration type 'enum qed_tunn_clss' [-Wenum-conversion]
        p_tun->ip_geneve.tun_cls = type;
                                 ~ ^~~~
5 warnings generated.

Avoid this by changing type to an int.

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:16:22 -07:00
..
Makefile qed: Add support for tlv request processing. 2018-05-22 23:29:53 -04:00
qed_cxt.c qed: Make some functions static 2018-08-01 09:37:15 -07:00
qed_cxt.h qed: Add srq core support for RoCE and iWARP 2018-06-04 17:09:54 -04:00
qed_dcbx.c qed: Add missing device config for RoCE EDPM in UFP mode. 2018-09-19 23:12:24 -07:00
qed_dcbx.h qed: Do not add VLAN 0 tag to untagged frames in multi-function mode. 2018-09-19 23:12:24 -07:00
qed_debug.c qed: Make some functions static 2018-08-01 09:37:15 -07:00
qed_debug.h
qed_dev_api.h
qed_dev.c qed: Fix populating the invalid stag value in multi function mode. 2018-09-19 23:12:24 -07:00
qed_fcoe.c qed: Add support for Unified Fabric Port. 2018-05-07 23:46:10 -04:00
qed_fcoe.h
qed_hsi.h qed: Fix populating the invalid stag value in multi function mode. 2018-09-19 23:12:24 -07:00
qed_hw.c qed*: Utilize FW 8.37.2.0 2018-06-05 10:48:09 -04:00
qed_hw.h qed*: Utilize FW 8.37.2.0 2018-06-05 10:48:09 -04:00
qed_init_fw_funcs.c qed: remove redundant functions qed_set_gft_event_id_cm_hdr 2018-07-29 08:33:30 -07:00
qed_init_ops.c qed: fix spelling mistake "comparsion" -> "comparison" 2018-08-25 17:41:09 -07:00
qed_init_ops.h
qed_int.c treewide: Fix typos in printk 2018-03-27 09:51:22 +02:00
qed_int.h
qed_iscsi.c qed: Make some functions static 2018-08-01 09:37:15 -07:00
qed_iscsi.h
qed_iwarp.c qed: Make some functions static 2018-08-01 09:37:15 -07:00
qed_iwarp.h
qed_l2.c qed/qede: Multi CoS support. 2018-08-09 14:05:30 -07:00
qed_l2.h qed: Correct Multicast API to reflect existence of 256 approximate buckets. 2018-07-21 16:19:04 -07:00
qed_ll2.c qed: Make some functions static 2018-08-01 09:37:15 -07:00
qed_ll2.h
qed_main.c qed/qede: Multi CoS support. 2018-08-09 14:05:30 -07:00
qed_mcp.c qed: Add missing device config for RoCE EDPM in UFP mode. 2018-09-19 23:12:24 -07:00
qed_mcp.h qed: Avoid sending mailbox commands when MFW is not responsive 2018-08-20 11:34:39 -07:00
qed_mng_tlv.c qed: Add support for processing iscsi tlv request. 2018-05-22 23:29:54 -04:00
qed_ooo.c
qed_ooo.h
qed_ptp.c
qed_rdma.c qed: fix spelling mistake "toogle" -> "toggle" 2018-09-26 20:09:08 -07:00
qed_rdma.h qed: Add srq core support for RoCE and iWARP 2018-06-04 17:09:54 -04:00
qed_reg_addr.h qed: Add missing device config for RoCE EDPM in UFP mode. 2018-09-19 23:12:24 -07:00
qed_roce.c qed: Add Multi-TC RoCE support 2018-08-07 13:22:10 -07:00
qed_roce.h
qed_selftest.c qed: Fix PTT entry leak in the selftest error flow. 2018-03-29 14:29:55 -04:00
qed_selftest.h
qed_sp_commands.c qed: Avoid implicit enum conversion in qed_set_tunn_cls_info 2018-09-26 20:16:22 -07:00
qed_sp.h qed: Add support for Unified Fabric Port. 2018-05-07 23:46:10 -04:00
qed_spq.c
qed_sriov.c qed: Make some functions static 2018-08-01 09:37:15 -07:00
qed_sriov.h
qed_vf.c qed: Make some functions static 2018-08-01 09:37:15 -07:00
qed_vf.h qed: Correct Multicast API to reflect existence of 256 approximate buckets. 2018-07-21 16:19:04 -07:00
qed.h qed: Add Multi-TC RoCE support 2018-08-07 13:22:10 -07:00