Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp13477009ybl; Sun, 29 Dec 2019 12:50:47 -0800 (PST) X-Google-Smtp-Source: APXvYqyi+qeEvu1asNoE5XmVqyVKf3USK+cpEEF/rXY0nU49KMogmHmWOmy5H9bnKX/LujoXVrMM X-Received: by 2002:a9d:7586:: with SMTP id s6mr69762282otk.342.1577652647830; Sun, 29 Dec 2019 12:50:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577652647; cv=none; d=google.com; s=arc-20160816; b=c0J1QG4PcM/TPkTVNbeTQ8bsMKkKuLB09u/0tyk+aFTfRcA4eCFrwT9OyPmaaDjILy 0WdyyWGoDXl07TFaITGU/oIjXUlo4r/ckgf0ew73wKt81CrS8sm1VbB27Iy6hCD6W8sT pauyfR6eXSDFqdI42CoRbwaHhXINwbOGnfdNxNg+sF4gnWVGK+hqji9AObyR0uXsCKFX JY/ZnMU/gA5S9Zg3nfWi7GTjwdUyUhnQdBGMm8effGauKAs9vvR+yzYwhvYsxAHDoAbh hl5Ke5hNU8gTYPz6/0ouweLLjAbC4FGxbBjWD/ZKthy9UFYsXfYnI8rWRMYwvLA2btih 5hRA== 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=Kf5nyuL/yzpI4Uw1HU5HhnJ9Jh3q+FK9qONhfg5b16w=; b=k1ezoIk1o4r/IHKirM/zLassZtY8g6oxiN8yyXV324/95tr8QFxlEQbJ3MaoEUyZcU Tb1tjT2YRHCB9nDdRjlcGLhtOsRFkoJVBf+wlr1QoAHQjPrn+Kvxb7rGinp+LnQEJMUA C3vSzer1FEp3QB63lSESHNeJEtxFi2YBEoSI7MenHo75KGL341vWlDpKAVOl+BtMx3AQ wTok+sn6+dBIDllsVWApMxxGZaDNKD3KfZJRkF/WR6O70lNsHGQLngFW0njWDYVd4dU4 5s+VYLFle6TQH1xG/hICecNknce2OP6xVNSHxyJRn8o2MNTWjK6xoLbnFMEnsCyX0SVi cEWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KR2cRkul; 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 x5si20009664oic.72.2019.12.29.12.50.37; Sun, 29 Dec 2019 12:50:47 -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=KR2cRkul; 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 S2387592AbfL2SB6 (ORCPT + 99 others); Sun, 29 Dec 2019 13:01:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:44272 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732933AbfL2Rzc (ORCPT ); Sun, 29 Dec 2019 12:55:32 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 AC756206A4; Sun, 29 Dec 2019 17:55:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577642132; bh=JCaGLxuX1+7lSZZEo0VAEfdKz+ADCMd4+VgzpVhEvms=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KR2cRkul356aUH8wuRv3iIPek52IeJb7H/j46rQeeKWyHZTQhtujp0/UzFJrbUccX i7AE7K80APtKZzNhN9RtZI4+5kRWx9HW1eeSV7/SpEneAxa00rsD2abwpAZkymYUIl wXZeGPM++CyrUz2KPeNUaPpOpJILluq15D/AMoMY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Devesh Sharma , Jason Gunthorpe , Sasha Levin Subject: [PATCH 5.4 354/434] RDMA/bnxt_re: Fix missing le16_to_cpu Date: Sun, 29 Dec 2019 18:26:47 +0100 Message-Id: <20191229172725.484108806@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191229172702.393141737@linuxfoundation.org> References: <20191229172702.393141737@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Devesh Sharma [ Upstream commit fca5b9dc0986aa49b3f0a7cfe24b6c82422ac1d7 ] >From sparse: drivers/infiniband/hw/bnxt_re/main.c:1274:18: warning: cast from restricted __le16 drivers/infiniband/hw/bnxt_re/main.c:1275:18: warning: cast from restricted __le16 drivers/infiniband/hw/bnxt_re/main.c:1276:18: warning: cast from restricted __le16 drivers/infiniband/hw/bnxt_re/main.c:1277:21: warning: restricted __le16 degrades to integer Fixes: 2b827ea1926b ("RDMA/bnxt_re: Query HWRM Interface version from FW") Link: https://lore.kernel.org/r/1574317343-23300-4-git-send-email-devesh.sharma@broadcom.com Signed-off-by: Devesh Sharma Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin --- drivers/infiniband/hw/bnxt_re/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/infiniband/hw/bnxt_re/main.c b/drivers/infiniband/hw/bnxt_re/main.c index 30a54f8aa42c..b31e21588200 100644 --- a/drivers/infiniband/hw/bnxt_re/main.c +++ b/drivers/infiniband/hw/bnxt_re/main.c @@ -1270,10 +1270,10 @@ static void bnxt_re_query_hwrm_intf_version(struct bnxt_re_dev *rdev) return; } rdev->qplib_ctx.hwrm_intf_ver = - (u64)resp.hwrm_intf_major << 48 | - (u64)resp.hwrm_intf_minor << 32 | - (u64)resp.hwrm_intf_build << 16 | - resp.hwrm_intf_patch; + (u64)le16_to_cpu(resp.hwrm_intf_major) << 48 | + (u64)le16_to_cpu(resp.hwrm_intf_minor) << 32 | + (u64)le16_to_cpu(resp.hwrm_intf_build) << 16 | + le16_to_cpu(resp.hwrm_intf_patch); } static void bnxt_re_ib_unreg(struct bnxt_re_dev *rdev) -- 2.20.1