diff options
author | Nathan Chancellor <natechancellor@gmail.com> | 2018-09-24 17:05:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-26 23:17:24 -0400 |
commit | db803f36e56f23b5a2266807e190d1dc11554d54 (patch) | |
tree | f8fafa6e534381a5cd4074224781cc352f8473ef | |
parent | a898fba32229efd5e6b6154f83fa86a7145156b9 (diff) |
qed: Fix mask parameter in qed_vf_prep_tunn_req_tlv
Clang complains when one enumerated type is implicitly converted to
another.
drivers/net/ethernet/qlogic/qed/qed_vf.c:686:6: warning: implicit
conversion from enumeration type 'enum qed_tunn_mode' to different
enumeration type 'enum qed_tunn_clss' [-Wenum-conversion]
QED_MODE_L2GENEVE_TUNN,
^~~~~~~~~~~~~~~~~~~~~~
Update mask's parameter to expect qed_tunn_mode, which is what was
intended.
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>
-rw-r--r-- | drivers/net/ethernet/qlogic/qed/qed_vf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_vf.c b/drivers/net/ethernet/qlogic/qed/qed_vf.c index 3d4269659820..fcd8da08274f 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_vf.c +++ b/drivers/net/ethernet/qlogic/qed/qed_vf.c | |||
@@ -572,7 +572,7 @@ free_p_iov: | |||
572 | static void | 572 | static void |
573 | __qed_vf_prep_tunn_req_tlv(struct vfpf_update_tunn_param_tlv *p_req, | 573 | __qed_vf_prep_tunn_req_tlv(struct vfpf_update_tunn_param_tlv *p_req, |
574 | struct qed_tunn_update_type *p_src, | 574 | struct qed_tunn_update_type *p_src, |
575 | enum qed_tunn_clss mask, u8 *p_cls) | 575 | enum qed_tunn_mode mask, u8 *p_cls) |
576 | { | 576 | { |
577 | if (p_src->b_update_mode) { | 577 | if (p_src->b_update_mode) { |
578 | p_req->tun_mode_update_mask |= BIT(mask); | 578 | p_req->tun_mode_update_mask |= BIT(mask); |
@@ -587,7 +587,7 @@ __qed_vf_prep_tunn_req_tlv(struct vfpf_update_tunn_param_tlv *p_req, | |||
587 | static void | 587 | static void |
588 | qed_vf_prep_tunn_req_tlv(struct vfpf_update_tunn_param_tlv *p_req, | 588 | qed_vf_prep_tunn_req_tlv(struct vfpf_update_tunn_param_tlv *p_req, |
589 | struct qed_tunn_update_type *p_src, | 589 | struct qed_tunn_update_type *p_src, |
590 | enum qed_tunn_clss mask, | 590 | enum qed_tunn_mode mask, |
591 | u8 *p_cls, struct qed_tunn_update_udp_port *p_port, | 591 | u8 *p_cls, struct qed_tunn_update_udp_port *p_port, |
592 | u8 *p_update_port, u16 *p_udp_port) | 592 | u8 *p_update_port, u16 *p_udp_port) |
593 | { | 593 | { |