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 05DC446142; Tue, 28 Jan 2025 18:31:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D026740615; Tue, 28 Jan 2025 18:31:43 +0100 (CET) Received: from mx0a-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 9372240144; Tue, 28 Jan 2025 18:31:42 +0100 (CET) Received: from pps.filterd (m0431384.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50SD5BM3030879; Tue, 28 Jan 2025 09:31:38 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=pfpt0220; bh=Vm6CDhPNph/zcfO6DdHawo7 KeuTTTwbXbRS/WDOJ9+U=; b=WgO6enwMoKArQSRRSzXyCeVyZ8vcoKIy1OcjqP4 N0RiZpZsV/mnAd8bfe0c3JQBL8a9C0BFRetk7tMJm1YtTpxn40eOln4jgLpR7TIH xFLPhGt71qnwNfCPzLnrZ0nAjycO0inw49SYWVX01/QVr/PvyOlzrgirDu5ptf3E ucaNWH0KAzNoCVGM2IBPKBWPHKD25xVTS+/CclX+e/rh/KSQf/RgBVNxgX7gv0MQ O6gLNC8wpOW4AlF9QMg7PJ3dgfpdFvxqJSm7Z+w0PvV3tsd5RAuSk0N4LfXAu0B9 jPgVK0/k7/RwhzHZqWNDq8RPAHgs2gKd9hIlK1lox+/mpDw== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 44eyt78mna-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Jan 2025 09:31:38 -0800 (PST) Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Tue, 28 Jan 2025 09:31:37 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Tue, 28 Jan 2025 09:31:37 -0800 Received: from hyd1588t430.caveonetworks.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id DA5873F7079; Tue, 28 Jan 2025 09:31:35 -0800 (PST) From: Nithin Dabilpuram To: , Paul Szczepanek CC: , Nithin Dabilpuram , Subject: [PATCH] ptr_compress: fix build for Arm SVE enabled SoC Date: Tue, 28 Jan 2025 23:01:32 +0530 Message-ID: <20250128173132.1128023-1-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: rkNZUJVyEfgiXDJICuDtbeodCcVv_DwF X-Proofpoint-GUID: rkNZUJVyEfgiXDJICuDtbeodCcVv_DwF X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-28_04,2025-01-27_01,2024-11-22_01 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 Fix compilation issue with const conversion. Fixes: 077596a4b077 ("ptr_compress: add pointer compression library") Cc: stable@dpdk.org Signed-off-by: Nithin Dabilpuram --- lib/ptr_compress/rte_ptr_compress.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ptr_compress/rte_ptr_compress.h b/lib/ptr_compress/rte_ptr_compress.h index 9742a9594a..231d96c518 100644 --- a/lib/ptr_compress/rte_ptr_compress.h +++ b/lib/ptr_compress/rte_ptr_compress.h @@ -134,7 +134,7 @@ rte_ptr_compress_32_shift(void *ptr_base, void * const *src_table, svuint64_t v_ptr_table; do { svbool_t pg = svwhilelt_b64(i, n); - v_ptr_table = svld1_u64(pg, (uint64_t *)src_table + i); + v_ptr_table = svld1_u64(pg, (const uint64_t *)src_table + i); v_ptr_table = svsub_x(pg, v_ptr_table, (uint64_t)ptr_base); v_ptr_table = svlsr_x(pg, v_ptr_table, bit_shift); svst1w(pg, &dest_table[i], v_ptr_table); @@ -260,7 +260,7 @@ rte_ptr_compress_16_shift(void *ptr_base, void * const *src_table, svuint64_t v_ptr_table; do { svbool_t pg = svwhilelt_b64(i, n); - v_ptr_table = svld1_u64(pg, (uint64_t *)src_table + i); + v_ptr_table = svld1_u64(pg, (const uint64_t *)src_table + i); v_ptr_table = svsub_x(pg, v_ptr_table, (uint64_t)ptr_base); v_ptr_table = svlsr_x(pg, v_ptr_table, bit_shift); svst1h(pg, &dest_table[i], v_ptr_table); -- 2.34.1