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 8623B42DDD; Wed, 5 Jul 2023 21:44:25 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2EF29406B6; Wed, 5 Jul 2023 21:44:25 +0200 (CEST) Received: from mail-yw1-f178.google.com (mail-yw1-f178.google.com [209.85.128.178]) by mails.dpdk.org (Postfix) with ESMTP id 5E595406B5 for ; Wed, 5 Jul 2023 21:44:24 +0200 (CEST) Received: by mail-yw1-f178.google.com with SMTP id 00721157ae682-577412111f0so77432887b3.0 for ; Wed, 05 Jul 2023 12:44:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688586263; x=1691178263; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GreSwNXlyB4kYcY5Zd/PnX3lwesWXqOGYDEbY0LLKac=; b=knv6uJemerKodjtvithlzsUPfsx0J6qmEaFXtVrzJbe3s0zu9JzcFVIwsSj7NYubSB RI0ELjIN9VoPFtqn5SHbuOjDI2qSQwR2imdLbG+2V6wrcepEaiOm9f9dz0aU9hDrLGOa /Fkhkl4uQ60b/Y+Y8iawxHZVcxiy+0Bn4wpz8s6TrQwpjNw/suZZ++C5Yhcr7xGQmaSN VP0u8GRleO/VWcX4Hx0iPcsVHV9ExosElzK7/hNpKlybTz3KNP15hO5IrodxDJuMAg1e zcOEc8lSU0WaYI1RtcMaShhB3i0NKalekGRO35AC3vNMJ9HdGueaOB7cniON/OAIGxg4 HR+Q== X-Gm-Message-State: ABy/qLYfM7YZFmcJmhGO6O1puvXbgyERtYLE4E/FM0N4+esT75OsXQM8 UMLoxuswrq2c6uegOqaRbsNDzEWNna3pEQ== X-Google-Smtp-Source: APBJJlEu2V3PtL0mMfYHCOFuBq15I5YsqgmSZkwrDsTQ7oQXFWNybfZaCvaaMseuWsMflfzRFvH8jA== X-Received: by 2002:a25:25c9:0:b0:c51:67b6:e84 with SMTP id l192-20020a2525c9000000b00c5167b60e84mr12458244ybl.33.1688586263540; Wed, 05 Jul 2023 12:44:23 -0700 (PDT) Received: from mail-yw1-f180.google.com (mail-yw1-f180.google.com. [209.85.128.180]) by smtp.gmail.com with ESMTPSA id o73-20020a25d74c000000b00c62e0df7ca8sm418617ybg.24.2023.07.05.12.44.23 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 05 Jul 2023 12:44:23 -0700 (PDT) Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-57712d00cc1so88993617b3.3 for ; Wed, 05 Jul 2023 12:44:23 -0700 (PDT) X-Received: by 2002:a0d:d64f:0:b0:577:4387:197c with SMTP id y76-20020a0dd64f000000b005774387197cmr18881514ywd.16.1688586262777; Wed, 05 Jul 2023 12:44:22 -0700 (PDT) MIME-Version: 1.0 References: <20230705073210.168341-1-yidingx.zhou@intel.com> In-Reply-To: <20230705073210.168341-1-yidingx.zhou@intel.com> From: Luca Boccassi Date: Wed, 5 Jul 2023 20:44:11 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] ice: fix build error on 32bit configure To: Yiding Zhou , dev@dpdk.org Content-Type: text/plain; charset="UTF-8" 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 On Wed, 5 Jul 2023 at 08:21, Yiding Zhou wrote: > > Replace 'rte_memcpy' with 'memcpy' like other PMD code to avoid errors when > compiling with GCC-12 on 32-bit configure. > > Compiler reports the follow error: > > error: array subscript 8 is outside array bounds of "struct rte_mbuf *[32]" > [-Werror=array-bounds] > > Fixes: c68a52b8b38c ("net/ice: support vector SSE in Rx") > Cc: stable@dpdk.org > > Signed-off-by: Yiding Zhou > --- > drivers/net/ice/ice_rxtx_vec_common.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/ice/ice_rxtx_vec_common.h b/drivers/net/ice/ice_rxtx_vec_common.h > index eec6ea2134..55840cf170 100644 > --- a/drivers/net/ice/ice_rxtx_vec_common.h > +++ b/drivers/net/ice/ice_rxtx_vec_common.h > @@ -72,7 +72,7 @@ ice_rx_reassemble_packets(struct ice_rx_queue *rxq, struct rte_mbuf **rx_bufs, > /* save the partial packet for next time */ > rxq->pkt_first_seg = start; > rxq->pkt_last_seg = end; > - rte_memcpy(rx_bufs, pkts, pkt_idx * (sizeof(*pkts))); > + memcpy(rx_bufs, pkts, pkt_idx * (sizeof(*pkts))); > return pkt_idx; > } Tested-by: Luca Boccassi