Files
android_kernel_xiaomi_sm8450/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
..
2018-08-01 09:37:15 -07:00
2018-08-01 09:37:15 -07:00
2017-05-18 13:21:40 -04:00
2017-05-21 12:56:53 -04:00
2018-06-05 10:48:09 -04:00
2018-06-05 10:48:09 -04:00
2017-01-01 21:02:14 -05:00
2018-03-27 09:51:22 +02:00
2018-08-01 09:37:15 -07:00
2017-05-21 12:56:53 -04:00
2018-08-01 09:37:15 -07:00
2018-01-02 13:59:16 -05:00
2018-08-09 14:05:30 -07:00
2018-08-01 09:37:15 -07:00
2018-08-09 14:05:30 -07:00
2017-10-19 12:46:43 +01:00
2017-10-19 12:46:43 +01:00
2018-08-07 13:22:10 -07:00
2018-08-01 09:37:15 -07:00
2018-01-02 13:59:16 -05:00
2018-08-01 09:37:15 -07:00
2018-08-07 13:22:10 -07:00