Skip to content

Commit db803f3

Browse files
nathanchancedavem330
authored andcommitted
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: ClangBuiltLinux/linux#125 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent a898fba commit db803f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/qlogic/qed/qed_vf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ int qed_vf_hw_prepare(struct qed_hwfn *p_hwfn)
572572
static void
573573
__qed_vf_prep_tunn_req_tlv(struct vfpf_update_tunn_param_tlv *p_req,
574574
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)
576576
{
577577
if (p_src->b_update_mode) {
578578
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,
587587
static void
588588
qed_vf_prep_tunn_req_tlv(struct vfpf_update_tunn_param_tlv *p_req,
589589
struct qed_tunn_update_type *p_src,
590-
enum qed_tunn_clss mask,
590+
enum qed_tunn_mode mask,
591591
u8 *p_cls, struct qed_tunn_update_udp_port *p_port,
592592
u8 *p_update_port, u16 *p_udp_port)
593593
{

0 commit comments

Comments
 (0)