From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 77F9642DEC; Thu, 6 Jul 2023 20:01:22 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2DE314303E; Thu, 6 Jul 2023 20:00:00 +0200 (CEST) Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by mails.dpdk.org (Postfix) with ESMTP id 6060F43028 for ; Thu, 6 Jul 2023 19:59:55 +0200 (CEST) Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-262ff3a4659so818695a91.0 for ; Thu, 06 Jul 2023 10:59:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1688666394; x=1691258394; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eYZLqmcMVIp38tew4idulcq334VF68FwI/kUdGxlXDY=; b=3SzPXN08+AD8B3+L2UCJPMNDSdvV++2a4vqtUTDcsZNZB8U6pbsRhdoa0kiS50TRte BmSzZL15V0hD/cdL+nV761ALCu4mF96Ki5K//697WEXAq1bPiMd2F2y1hCG637ttHKkI ENuYrzI36aSz9Jw2pqlK5IGBjgHIx41UIRvydcTVDndauQ6hrhlN0Iy3PrY2JO6xMDuJ xjJPOuX9Gn/Fq4ocizPglbhmvPQz12Z82tVIkt88FMphxeJfqSGV6cop3c8cI0OfXfN1 flFgKE3pOeO3grXeELINk66VWb3B4j6TJkvRUeNQJRtSdpZGoCluGrHNStK99/nbAcUs URsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688666394; x=1691258394; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eYZLqmcMVIp38tew4idulcq334VF68FwI/kUdGxlXDY=; b=RW5nNoD8At+1wRDCVLnXqgWfEdQzmXgVMlJQOoLGaDHROo9oRO8EpvjNbSlGEPscHX osvI4CRKJPxhktYPWhFWlr9r80OmP8mHFn1NO8qZW4UBhqTXjRCsIrdluHMLo+80Yd4R 3i9c6WInnpU6MOpP+GA+2tkfEWOgPtKbh3MnN7EwONEsyXEhU+K/pn58EUfNgFCBJvBd qEj+svVZFGNSxmFZb9N2ys1QjL+jHURdV28FSt6B0DxR4g/mIOng8mLpEr1B/1c7mAzY exSr6+wUx7slFs48j76ARhzVQipHB3iarXmH27Xc+qUMLKSXmyS2kZd0hDeTbPO3AgHb MhxQ== X-Gm-Message-State: ABy/qLbx8oGHgTDymQGwwB8om9Fhq2VBEaVUlSj31NA8wY5YZxhf7TMz onWKNLwO2xSyVXEPkDd9P3f3QdSEHdFG5awYT/A= X-Google-Smtp-Source: APBJJlFT60qsuGXaG5mcMxvIFtaDq/Cd4vnstsO7D9+eA6bJXUHmvZfpyf/clbpevDl0S//mvVDX4g== X-Received: by 2002:a17:90a:b011:b0:263:4164:dfba with SMTP id x17-20020a17090ab01100b002634164dfbamr2404557pjq.6.1688666394399; Thu, 06 Jul 2023 10:59:54 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id nh8-20020a17090b364800b00256bbfbabcfsm76464pjb.48.2023.07.06.10.59.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jul 2023 10:59:54 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Nicolas Chautru Subject: [PATCH v3 14/14] baseband/fpga_5gnr: use rte_pktmbu_mtod_offset Date: Thu, 6 Jul 2023 10:59:38 -0700 Message-Id: <20230706175938.62721-15-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230706175938.62721-1-stephen@networkplumber.org> References: <20230505174813.133894-1-stephen@networkplumber.org> <20230706175938.62721-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Autogenerated with cocci/mtod-offset.cocci. Signed-off-by: Stephen Hemminger --- drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c b/drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c index f29565af8cca..465a65f3dca2 100644 --- a/drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c +++ b/drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c @@ -1543,8 +1543,7 @@ fpga_harq_write_loopback(struct fpga_queue *q, rte_bbdev_log(ERR, "HARQ in length > HARQ buffer size\n"); } - input = (uint64_t *)rte_pktmbuf_mtod_offset(harq_input, - uint8_t *, in_offset); + input = rte_pktmbuf_mtod_offset(harq_input, uint64_t *, in_offset); while (left_length > 0) { if (fpga_reg_read_8(q->d->mmio_base, @@ -1621,8 +1620,8 @@ fpga_harq_read_loopback(struct fpga_queue *q, } left_length = harq_in_length; - input = (uint64_t *)rte_pktmbuf_mtod_offset(harq_output, - uint8_t *, harq_out_offset); + input = rte_pktmbuf_mtod_offset(harq_output, uint64_t *, + harq_out_offset); while (left_length > 0) { fpga_reg_write_32(q->d->mmio_base, -- 2.39.2