Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2455377imd; Fri, 2 Nov 2018 11:41:58 -0700 (PDT) X-Google-Smtp-Source: AJdET5dj7Epj9/CU/SMFWM/i+qjBNlWRfOmMds9+Ws/gGOuYUqmNkBd7b1E5jXsqfEJyuLBbn3MG X-Received: by 2002:a63:78cd:: with SMTP id t196mr9351525pgc.62.1541184118077; Fri, 02 Nov 2018 11:41:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541184118; cv=none; d=google.com; s=arc-20160816; b=xZzRDJoSOjNvx9Qo5UHWw82qqW5Wt+sW8tRwKOeyNnGDhqVZNxES1n9THpnRf0mUw1 2F1blm4ktNHTXWaVPftUv611GsI+UI/ejJQ5lk1gsokee+uKvLRquxQizYXEazAoFewI q2tGBTYeFrb1cdptbh1Y/bW3i2GVT4EOIjrWy19x2DILlaF5OoZWXt5NWMcHTV16CTOP rJ44eJeq39GAPc4BvQ4qRQP6FwgDwfrrkx0nqEYeRrRWlvluH2V/47vLvX4oz3oAGWp4 cEBwA5cOzsB1OD51z/UI+0jvD1EiHxpi0FSjSXvObbPqWQagKiIJS3is/ua4Dlciaric DReQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+43M1HOt7nAcjDqFyTZg656/qNugkOhOGV78mp+svcI=; b=DK4g3pPFeuVZw/lB9VV7zLdLxglrxxMoCK+pk3xh+Se+dvdTRRSOULfPJxOHHQSlWM FhvECbb94mppiNlX/Jf5uJW6lYWnhlevEv3xv+EkPCNIBDg0EFmYMB8/5A5nNxAsuYdo iQLrLkyqIIzFhUE1/zVnmxGgAsVT0ILIllQP2GlJgRgfd7va7VFXoL+q8jbK9VtGSkpy ec46gkGUyYEa6zjB3aOCuVwA6L/kEv9u5p5iZHkoEjX6h8M5UFlFOkHTk6cBFyWfbu/2 20dcFZt0FvkM3BkWJFFlk9u81C9HwpV4u2jeSeKBmti7zp0JbVUQHJjioIjPdfjozArx bjAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jDnW6g2r; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b3si7333360pgc.587.2018.11.02.11.41.43; Fri, 02 Nov 2018 11:41:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jDnW6g2r; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729415AbeKCDsv (ORCPT + 99 others); Fri, 2 Nov 2018 23:48:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:43254 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728578AbeKCDsv (ORCPT ); Fri, 2 Nov 2018 23:48:51 -0400 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CEB5320840; Fri, 2 Nov 2018 18:40:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541184039; bh=HZCQ/2+GextAS7M6Bb1kLZbirzYs/D9qIQwzNq/LTe4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jDnW6g2rYa8c9JPtD0fWVSAoj2b0eoUYlxVigC9KWpbqmdJslZeRJbymAbbsxy2iz nI0kzKlSJaaBvN+78b4cRkZ+/D3as6aDsJ1ORslllmyEJtuqPG3etsTe3JXmAKWs3b icKTKOQ+LPA96P5f+3xbktxrXNCk0sm6aG1jWAOQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor , "David S. Miller" , Sasha Levin Subject: [PATCH 4.18 030/150] qed: Fix mask parameter in qed_vf_prep_tunn_req_tlv Date: Fri, 2 Nov 2018 19:33:12 +0100 Message-Id: <20181102182905.440405340@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181102182902.250560510@linuxfoundation.org> References: <20181102182902.250560510@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit db803f36e56f23b5a2266807e190d1dc11554d54 ] 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 Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/qlogic/qed/qed_vf.c | 4 ++-- 1 file 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 be6ddde1a104..ac3f54bbe9b9 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: static void __qed_vf_prep_tunn_req_tlv(struct vfpf_update_tunn_param_tlv *p_req, struct qed_tunn_update_type *p_src, - enum qed_tunn_clss mask, u8 *p_cls) + enum qed_tunn_mode mask, u8 *p_cls) { if (p_src->b_update_mode) { 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, static void qed_vf_prep_tunn_req_tlv(struct vfpf_update_tunn_param_tlv *p_req, struct qed_tunn_update_type *p_src, - enum qed_tunn_clss mask, + enum qed_tunn_mode mask, u8 *p_cls, struct qed_tunn_update_udp_port *p_port, u8 *p_update_port, u16 *p_udp_port) { -- 2.17.1