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 CD9AF42DD2; Wed, 5 Jul 2023 09:21:29 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A4DAA406BC; Wed, 5 Jul 2023 09:21:29 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 5F82240150; Wed, 5 Jul 2023 09:21:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688541687; x=1720077687; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=6yi+SM12yJUjOOU5fsmJdwWTV1pcGpn/sF2n8jiY/88=; b=FHwLP9RWAZ6HHN4k2Vdp36FsJBMYz9PxHZCfIhgH6n+2+MiMXmmiGEiK QWMErrE9U2PJWw5p5EkHYoc7ppe7xXLIS2W6tAXFvN5vIMFhkSJDFPfoY nLy4sAG90oD7R1bMMKjAv3JjX76/geg1dVMqUEmDQphPNRC4SIIwdFa/b mhCWxzYJ6pywohy0m2ZW5ims7XODJvim9xjw3UKTTgRpTkuvVmffWzX3l KEdhPg93joIz/3Lss6DgyDWdjJUjhbTSxjWN6qwZxdH5a0KsnO7SLIawu kw/xkIXrdHuNOR6/j44HBHDMBvpw+apweqSdNTRw5LW5z/6+8YZltMgDN Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10761"; a="394021678" X-IronPort-AV: E=Sophos;i="6.01,182,1684825200"; d="scan'208";a="394021678" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jul 2023 00:21:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10761"; a="696358295" X-IronPort-AV: E=Sophos;i="6.01,182,1684825200"; d="scan'208";a="696358295" Received: from unknown (HELO dpdkserver..) ([10.239.252.174]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jul 2023 00:21:22 -0700 From: Yiding Zhou To: dev@dpdk.org Cc: Yiding Zhou , stable@dpdk.org, Qiming Yang , Qi Zhang , Wenzhuo Lu Subject: [PATCH] ice: fix build error on 32bit configure Date: Wed, 5 Jul 2023 15:32:10 +0800 Message-Id: <20230705073210.168341-1-yidingx.zhou@intel.com> X-Mailer: git-send-email 2.34.1 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 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; } -- 2.34.1