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 3ECB342A49; Fri, 5 May 2023 19:49:49 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 257B642D9C; Fri, 5 May 2023 19:48:35 +0200 (CEST) Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) by mails.dpdk.org (Postfix) with ESMTP id 6FC7042D8D for ; Fri, 5 May 2023 19:48:33 +0200 (CEST) Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-64384c6797eso1794400b3a.2 for ; Fri, 05 May 2023 10:48:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1683308912; x=1685900912; 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=O8KMnDEpWQt7pJx3yziS3MkQwwNg28z5GdVlcu4G7VtYjdb395lNKHNR7zfr/Gjknv GFTIlT0JZQkQx6Bzxynn0LLKDNV+U63cC33UnbKAEj5HhcFg5VRhCUANHsxWbhT/HDgs 9D9D4lDezvw5KKRC3iq/QDDPp/4B9i5A226M/swlc62tKIZi1KN7NEZap8jP7USuZiDN zmYC9crHRxj4Foqy6OtemddU6UJBbZ3k6+sqopOhEOidVwYXOBoLaXuZmP0311048Xbs y8QhGBCsiBLZTLC5TB+3ygpAjnzOf9gS9qrQLKXuE/mvhMRZUW7R5MsdEyng5qpIOSFY AdLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683308912; x=1685900912; 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=MbhPN/w0OVBta8mYUQHxqh71T6G3Go6SLm4QibAysc9wGZAtYAHdTJCp/oBTbcuc02 FWG/2Dx+xvebwzWRpN+qClmUpHLDqJE9gy4TBzS7OArFLDDc3AxABIV6/pNGTH9oZqVa C2rAeYzCEHF2usRF9qUgGhKAFP5/wzqRgPybup7apR3nd2dWApwIEgz9TzY60FqlC2my SOkI+ucd3/HGtakdMKu3l00n8fLQ3iyyVB/fzSf/yb3ZZ+0MJ/JBfF5JL1yrGj3FsFem IZAmOnTNa+2vAx3JgD7shLcdey4t7wiS9FrhszKeAQHaWBDorZWuUDmOiAWrJkEkdFf9 HIHA== X-Gm-Message-State: AC+VfDx1gdiJ2qwvnseqPl2hhGmiI98kYjQPBwRa/vCS25fBmnMXSr2r P8KPMwRVTQpxsTc2ugZRRbIY52zGLqunTloIhqqMag== X-Google-Smtp-Source: ACHHUZ6I9EWL2eUAInXPIiFBvNNX6mrxTlwH3yrCHtqyX8HblP2o+UGB5fzu09fFl8HSiiIkGRqQ/A== X-Received: by 2002:a05:6a00:23c3:b0:643:64fb:3b6a with SMTP id g3-20020a056a0023c300b0064364fb3b6amr3412974pfc.13.1683308912428; Fri, 05 May 2023 10:48:32 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id a15-20020aa780cf000000b0063799398eb9sm1895707pfn.58.2023.05.05.10.48.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 10:48:31 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Nicolas Chautru Subject: [PATCH 14/14] baseband/fpga_5gnr: use rte_pktmbu_mtod_offset Date: Fri, 5 May 2023 10:48:13 -0700 Message-Id: <20230505174813.133894-15-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230505174813.133894-1-stephen@networkplumber.org> References: <20230505174813.133894-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