Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2455325imd; Fri, 2 Nov 2018 11:41:53 -0700 (PDT) X-Google-Smtp-Source: AJdET5fbf0TZxXRRdLgICExp7KRP11rauZTy8jTS28i/qt39MTQJ8N/0Wfx8gSv5FfF6KQBrp8Jz X-Received: by 2002:a17:902:b486:: with SMTP id y6-v6mr12796286plr.263.1541184113887; Fri, 02 Nov 2018 11:41:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541184113; cv=none; d=google.com; s=arc-20160816; b=RSGJJjhtPREkImdZZNIhjiNgSJHAi/qd4WJlUqdWzsLBtMqUo95qgZNHWRW02q/DDS pmOxpoOc2O2U/2pwKFvAccCxfC2SDodzBMAjleNVSVkb6kulIbKGviu6DxzmdY61QmKX 2SuMvIx77OMsKeewZxGGYFhe3HezoKdk4lY1zwjYgaGx6pjHTv/UASyTwCFwzWTl2fSa wg7amNsH/YnrnILM88Q6RWlJLHyJcnt4gBabns0Q8trohpav5eKYY2VeHP5Qo2Gjkc/6 M+pJ0hyKa6NSRe0tL2yP+pKTIytWAUlUKX8wXlzZxBqixYltW6HgWx/nMYnwxcez7fwt R06A== 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=1fSiV0aSEYOqWvywhEgMQbYsUDu2sAvaolDjrZKr9fk=; b=fS2K9OsR9j4cERFwnHNYsWN+rQU+PrcJKHmpsoWkKBffQO+YU4oVVg4blNopfywB0a Rqy19MtJBKVL3y4iYg2OuSkb9eCetZwlhV6nbD6zz4CN78PZPvAeuUtUTv30LZyZMX8X u4HLJ5CtHFnn01UzIIEnB+phyh36zAACvrOWz1MpkLNHcH8sL+rtca9rF1WlEVpIaXDs 3wagIN323vJiOFjlXsZFfgDHv4Yzp3OLAMJo/M1DldhcZUW7IYkgGsDINPVk5GrhZoaT tAU1pS7SjCKFTul2m2ZWiIf3tazpKs9vc7kussC7gO1opbmhWiN5hlsp3LZu4NXi6Exn Sc0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tSNPxTw2; 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 p3-v6si12202812pff.272.2018.11.02.11.41.38; Fri, 02 Nov 2018 11:41:53 -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=tSNPxTw2; 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 S1729403AbeKCDst (ORCPT + 99 others); Fri, 2 Nov 2018 23:48:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:43184 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728836AbeKCDss (ORCPT ); Fri, 2 Nov 2018 23:48:48 -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 A231920843; Fri, 2 Nov 2018 18:40:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541184036; bh=9/thJ46j3FhHy+c6jePD6f+EjsEYO+sLVEH7N5MySto=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tSNPxTw2Gi10iMmmoGwsZyUn3l0ThvkAg+HwjaHGhST3eOv/B2j8gxBYI6zP2crJE +JqyUrM6veW0dImVoOfQD9yfYEqHp5/fIWDN51fSyoK/R2wOqjzgWPpimB/84uIZzV GWECQei+xvL8eT2pIArZqbejhpQuugTJdTNRvviw= 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 029/150] qed: Avoid implicit enum conversion in qed_set_tunn_cls_info Date: Fri, 2 Nov 2018 19:33:11 +0100 Message-Id: <20181102182905.335211128@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 a898fba32229efd5e6b6154f83fa86a7145156b9 ] 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 Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/qlogic/qed/qed_sp_commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/qlogic/qed/qed_sp_commands.c b/drivers/net/ethernet/qlogic/qed/qed_sp_commands.c index 8de644b4721e..77b6248ad3b9 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_sp_commands.c +++ b/drivers/net/ethernet/qlogic/qed/qed_sp_commands.c @@ -154,7 +154,7 @@ qed_set_pf_update_tunn_mode(struct qed_tunnel_info *p_tun, static void qed_set_tunn_cls_info(struct qed_tunnel_info *p_tun, struct qed_tunnel_info *p_src) { - enum tunnel_clss type; + int type; p_tun->b_update_rx_cls = p_src->b_update_rx_cls; p_tun->b_update_tx_cls = p_src->b_update_tx_cls; -- 2.17.1