From patchwork Wed Dec 20 04:31:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selvin Xavier X-Patchwork-Id: 13499507 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 896B3156C8 for ; Wed, 20 Dec 2023 04:48:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="ViPZZblu" Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-1d04c097e34so2815895ad.0 for ; Tue, 19 Dec 2023 20:48:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1703047689; x=1703652489; darn=vger.kernel.org; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Kbf/BrTVCPuq0p+0tZHIIAh12ZC3jUUghh83KMflhAY=; b=ViPZZbluDsR0gwwyK7cba1EXRZUO9T4zazGvMYq74fucl592EOHO1jiLMC8OHmSVth 0wVOwaL5RObsMM6eUFOIWgUv+PndPPdqcTee/DW9DOlT4A6QLFvyp226msPkOgNRKnA9 opipoIbgxPNa8Y+hBizRx5XDe4qhPnNPj89RI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703047689; x=1703652489; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Kbf/BrTVCPuq0p+0tZHIIAh12ZC3jUUghh83KMflhAY=; b=Yp/zUpOACW7FCJl9VsiO9YgACZyJxvS7N0I6S8MPpQHG5tD+g2LFevSLhSn4jUg0LH z+Hu1kSJBhLWFiGuo6InSkQrc7NCyzC1OCDqc6ZlMyY762d0cWrUtAaCHy69V/39LGs/ modyFXIvMhPDnzG1wbtUtJdEtz0bLInj9ZRonbgeCGVOvU43n0psaqtAMComApMnnm3H D4NfsdBDINQYru6imeChyiWNO3/UgUv6IK304TfF6pvWjCSaUbFMxQLFUXR+pflpJ0np IsLQ8sL40mF8xZVOAt35sciZIjCcy0fRw2YFWp4u3X6UvYXtzQNhtu/sB/pJQ8+1cmja n0bg== X-Gm-Message-State: AOJu0YxIKa/sYDApTLABSymUT8dZr6M5GhUqNA1SOKN3we8voyHwsR5e hQLfWwlhLjeCxUwQF+WlJvlXOnvBCRkDwJcCvds0mIQGvVYY X-Google-Smtp-Source: AGHT+IFnrXjIERbepnMILd36NVQQkKUk4/1C9wwD67WkOJBaqFmlUUiaQhbfO6urjW5oRSp67lfNRQ== X-Received: by 2002:a17:903:2382:b0:1d3:ac60:95b0 with SMTP id v2-20020a170903238200b001d3ac6095b0mr2582343plh.46.1703047688775; Tue, 19 Dec 2023 20:48:08 -0800 (PST) Received: from dhcp-10-192-206-197.iig.avagotech.net.net ([192.19.252.250]) by smtp.gmail.com with ESMTPSA id g13-20020a170902d5cd00b001d1d6f6b67dsm21989971plh.147.2023.12.19.20.48.06 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Dec 2023 20:48:07 -0800 (PST) From: Selvin Xavier To: leon@kernel.org, jgg@ziepe.ca Cc: linux-rdma@vger.kernel.org, andrew.gospodarek@broadcom.com, Selvin Xavier Subject: [PATCH] RDMA/bnxt_re: Fix the sparse warnings Date: Tue, 19 Dec 2023 20:31:57 -0800 Message-Id: <1703046717-8914-1-git-send-email-selvin.xavier@broadcom.com> X-Mailer: git-send-email 2.5.5 Precedence: bulk X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Fix the following warnings reported drivers/infiniband/hw/bnxt_re/qplib_rcfw.c:909:27: warning: invalid assignment: |= drivers/infiniband/hw/bnxt_re/qplib_rcfw.c:909:27: left side has type restricted __le16 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c:909:27: right side has type unsigned long ... drivers/infiniband/hw/bnxt_re/qplib_fp.c:1620:44: warning: invalid assignment: |= drivers/infiniband/hw/bnxt_re/qplib_fp.c:1620:44: left side has type restricted __le64 drivers/infiniband/hw/bnxt_re/qplib_fp.c:1620:44: right side has type unsigned long long Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202312200537.HoNqPL5L-lkp@intel.com/ Fixes: 07f830ae4913 ("RDMA/bnxt_re: Adds MSN table capability for Gen P7 adapters") Signed-off-by: Selvin Xavier --- drivers/infiniband/hw/bnxt_re/qplib_fp.h | 2 +- drivers/infiniband/hw/bnxt_re/qplib_rcfw.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/bnxt_re/qplib_fp.h b/drivers/infiniband/hw/bnxt_re/qplib_fp.h index 967c669..7fd4506 100644 --- a/drivers/infiniband/hw/bnxt_re/qplib_fp.h +++ b/drivers/infiniband/hw/bnxt_re/qplib_fp.h @@ -632,7 +632,7 @@ static inline u16 bnxt_qplib_calc_ilsize(struct bnxt_qplib_swqe *wqe, u16 max) } /* MSN table update inlin */ -static inline uint64_t bnxt_re_update_msn_tbl(u32 st_idx, u32 npsn, u32 start_psn) +static inline __le64 bnxt_re_update_msn_tbl(u32 st_idx, u32 npsn, u32 start_psn) { return cpu_to_le64((((u64)(st_idx) << SQ_MSN_SEARCH_START_IDX_SFT) & SQ_MSN_SEARCH_START_IDX_MASK) | diff --git a/drivers/infiniband/hw/bnxt_re/qplib_rcfw.c b/drivers/infiniband/hw/bnxt_re/qplib_rcfw.c index 0ea7ccc..3ffaef0c 100644 --- a/drivers/infiniband/hw/bnxt_re/qplib_rcfw.c +++ b/drivers/infiniband/hw/bnxt_re/qplib_rcfw.c @@ -906,7 +906,7 @@ int bnxt_qplib_init_rcfw(struct bnxt_qplib_rcfw *rcfw, skip_ctx_setup: if (BNXT_RE_HW_RETX(rcfw->res->dattr->dev_cap_flags)) - req.flags |= CMDQ_INITIALIZE_FW_FLAGS_HW_REQUESTER_RETX_SUPPORTED; + req.flags |= cpu_to_le16(CMDQ_INITIALIZE_FW_FLAGS_HW_REQUESTER_RETX_SUPPORTED); req.stat_ctx_id = cpu_to_le32(ctx->stats.fw_id); bnxt_qplib_fill_cmdqmsg(&msg, &req, &resp, NULL, sizeof(req), sizeof(resp), 0); rc = bnxt_qplib_rcfw_send_message(rcfw, &msg);