From: Nithin Dabilpuram <ndabilpuram@marvell.com>
To: <jerinj@marvell.com>, Paul Szczepanek <paul.szczepanek@arm.com>
Cc: <dev@dpdk.org>, Nithin Dabilpuram <ndabilpuram@marvell.com>,
<stable@dpdk.org>
Subject: [PATCH] ptr_compress: fix build for Arm SVE enabled SoC
Date: Tue, 28 Jan 2025 23:01:32 +0530 [thread overview]
Message-ID: <20250128173132.1128023-1-ndabilpuram@marvell.com> (raw)
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
reply other threads:[~2025-01-28 17:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250128173132.1128023-1-ndabilpuram@marvell.com \
--to=ndabilpuram@marvell.com \
--cc=dev@dpdk.org \
--cc=jerinj@marvell.com \
--cc=paul.szczepanek@arm.com \
--cc=stable@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).