Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7275992imu; Wed, 14 Nov 2018 14:41:55 -0800 (PST) X-Google-Smtp-Source: AJdET5fsr6ws7ppA4CcH2GP15dNY4D5UFvOE7kPCQLDrRxwJRKwFdSUAYUdWESU6XLbSZJ5wmhKx X-Received: by 2002:a63:50b:: with SMTP id 11mr3376395pgf.411.1542235315196; Wed, 14 Nov 2018 14:41:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542235315; cv=none; d=google.com; s=arc-20160816; b=KBv9DKIbS06ZtSiX9s8F2sCTtNBaMJR2NKftI+1MWtpKI4JsxjBanrFOFL6YUqPzA5 ORJox/bwh0legkhRxWaDuAQFF15BSkthlM3FICCRzf3dG0Pu8Fp+4E33tBV+DwzXfTkR 31Jh1fanCL7Km4n73ZxENtLbJfKL9COHBiHCEXywUIY0v3xFUsrX6i50nb5F0bw74ae9 iJy6iQ7Tz4MBIQUpIW8d44BJiXJE5A9/t4FKu9QGckMb9/YiydFBPXbjscMZquVqe1q4 XkH0BNSCRlVcDnYtVLpdEo+zH23PEjVWOnMbeHGhnlZXGhVh8Zd8hjjuB0cIMnPyQX5U vKzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=Mgxk3KYBpx+ahvIpJ+0D9VIGsA2rbFUVGkZiH2N20v4=; b=OCgRDgfKOKN3LjNN7Ws9GPknuCLxjxVNHD+UlgJHW559kzhgeS5rlI3p2hknFxDbe3 rxD2v+JvcEJ0X/s9LpcGQ4dEr4Rt5tArpYQMgwdUDmSHW3kuc0AhLABExlnTwrZIlwLr +z89uXaUEW+ap8g/X/m0ejiVzx4L2HTSH97C3ZtVOVgACJOYixsRb2MbMy4XGQotnz0g KF75e5rWRWt1dZqTWGRYP+AED8f72OGPYzSJceR2VNlunJCuZV7cHlpmBe7ZR3pmubph s4f/ISCPiOC7iNy0etQpysjuApESV6DikNAIVeqRH38vI06nMTR32M8Ayn0lTM+xKk1N 09UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="I/O/wE4C"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 59-v6si27199858pla.195.2018.11.14.14.41.41; Wed, 14 Nov 2018 14:41:55 -0800 (PST) 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="I/O/wE4C"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388038AbeKOIqP (ORCPT + 99 others); Thu, 15 Nov 2018 03:46:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:34408 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728976AbeKOI1Z (ORCPT ); Thu, 15 Nov 2018 03:27:25 -0500 Received: from sasha-vm.mshome.net (unknown [64.114.255.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0568122526; Wed, 14 Nov 2018 22:22:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542234142; bh=P+gfuLXFHyjDPBjTl8w0VSsdNfgPjJWGLwEKaoRwlhU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I/O/wE4CvIbZGW2kXi9VHYdmsjQ0PYqaNN6gT2+xxxubikNTBD3NvH3BJmnFrP5qW j7RFWBl0D/PlZQOKCUU1j3HUuLtlRZfHnU43s3dJDQPK1dUPMfEaDa3cjGJyrA0DRz HDggRvDwnmtoy5yAcBWQ+OKxvgeAc/rmckUL3D90= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Chinh T Cao , Anirudh Venkataramanan , Jeff Kirsher , Sasha Levin Subject: [PATCH AUTOSEL 4.19 57/73] ice: Change req_speeds to be u16 Date: Wed, 14 Nov 2018 17:21:51 -0500 Message-Id: <20181114222207.98701-57-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181114222207.98701-1-sashal@kernel.org> References: <20181114222207.98701-1-sashal@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chinh T Cao [ Upstream commit ffe498237b36ee42624e139b21efa05da4ff1f48 ] Since the req_speeds field in struct ice_link_status is a u8, req_speeds & ICE_AQ_LINK_SPEED_40GB always returns 0. This was caught by a coverity scan. Fix this by changing req_speeds to be u16. Reported-by: Bruce Allan Signed-off-by: Chinh T Cao Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/ice/ice_type.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ice/ice_type.h b/drivers/net/ethernet/intel/ice/ice_type.h index 97c366e0ca59..ba11b5898833 100644 --- a/drivers/net/ethernet/intel/ice/ice_type.h +++ b/drivers/net/ethernet/intel/ice/ice_type.h @@ -83,12 +83,12 @@ struct ice_link_status { u64 phy_type_low; u16 max_frame_size; u16 link_speed; + u16 req_speeds; u8 lse_ena; /* Link Status Event notification */ u8 link_info; u8 an_info; u8 ext_info; u8 pacing; - u8 req_speeds; /* Refer to #define from module_type[ICE_MODULE_TYPE_TOTAL_BYTE] of * ice_aqc_get_phy_caps structure */ -- 2.17.1