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 86540A0544; Mon, 10 Oct 2022 10:23:36 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6B38440146; Mon, 10 Oct 2022 10:23:36 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 6B12F40041 for ; Mon, 10 Oct 2022 10:23:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665390214; x=1696926214; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=KXj7jPSMqmRvV5uzWw85ZeWJvVoaQN68ChinU9WgS8M=; b=fI5bUgjP6VMNpfdw85DGfk6RGoA7ilD3Esrz3oJOYa6OTu4SOqKp4evH mjGw+B8SsAucyEx8QVDNTxe4aGEdhgyiFRvukX1He6MPXv39HwARvRriu mXFH6qlMRSGJqxLGjT4OWhoH+jzNHoYdpIeJDeaS9lHpF7kjAs5/ywAhI hZbfp1D+Ch6aGyO0E2MvcCncryr3FslJNT/Ab5aPsaR/5Mp8bUTZ+R5uV wFIz3+KiDw+lsa6epVnKK98DwZf2+fPDjkgaLF7YNoNtbjn4NwOBhJZTN pwt1qP1/8EFGYQzwJnb80ARj1olb410rhk1hHt9lVbXloweKEyPGJsSGS Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10495"; a="302910144" X-IronPort-AV: E=Sophos;i="5.95,173,1661842800"; d="scan'208";a="302910144" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Oct 2022 01:23:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10495"; a="871023576" X-IronPort-AV: E=Sophos;i="5.95,173,1661842800"; d="scan'208";a="871023576" Received: from dpdk-lrong-icx-01.sh.intel.com ([10.67.119.18]) by fmsmga006.fm.intel.com with ESMTP; 10 Oct 2022 01:23:32 -0700 From: Leyi Rong To: alialnu@nvidia.com, thomas@monjalon.net Cc: dev@dpdk.org, Leyi Rong Subject: [PATCH] member: fix build failure with GCC 5.4.0 Date: Mon, 10 Oct 2022 16:22:45 +0800 Message-Id: <20221010082245.2868071-1-leyi.rong@intel.com> X-Mailer: git-send-email 2.25.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 This patch fixes the build failure by typecasting to match _mm512_i32gather_epi64() definition. Bugzilla ID: 1096 Fixes: db354bd2e1f8 ("member: add NitroSketch mode") Signed-off-by: Leyi Rong --- lib/member/rte_member_sketch_avx512.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/member/rte_member_sketch_avx512.c b/lib/member/rte_member_sketch_avx512.c index 288e37a446..42c6d6b023 100644 --- a/lib/member/rte_member_sketch_avx512.c +++ b/lib/member/rte_member_sketch_avx512.c @@ -28,8 +28,8 @@ sketch_update_avx512(const struct rte_member_setsum *ss, v_row_base = _mm256_mullo_epi32(v_idx, v_col); v_hash_result = _mm256_add_epi32(v_row_base, v_hash_result); - current_sketch = - _mm512_i32gather_epi64(v_hash_result, count_array, 8); + current_sketch = _mm512_i32gather_epi64 + (v_hash_result, (void *)count_array, 8); v_count = _mm512_set1_epi64(count); updated_sketch = _mm512_add_epi64(current_sketch, v_count); _mm512_i32scatter_epi64 -- 2.25.1