DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] ptr_compress: fix build for Arm SVE enabled SoC
@ 2025-01-28 17:31 Nithin Dabilpuram
  0 siblings, 0 replies; only message in thread
From: Nithin Dabilpuram @ 2025-01-28 17:31 UTC (permalink / raw)
  To: jerinj, Paul Szczepanek; +Cc: dev, Nithin Dabilpuram, stable

Fix compilation issue with const conversion.

Fixes: 077596a4b077 ("ptr_compress: add pointer compression library")
Cc: stable@dpdk.org

Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
---
 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-01-28 17:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-28 17:31 [PATCH] ptr_compress: fix build for Arm SVE enabled SoC Nithin Dabilpuram

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).