[PATCH 2/4] chacha20-ppc: silence GCC cast alignment warning
Jussi Kivilinna
jussi.kivilinna at iki.fi
Sat Jun 22 16:40:48 CEST 2024
* cipher/chacha20-ppc.c (vec_load_le, vec_store_le): Cast
pointers through void pointer type.
--
Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
---
cipher/chacha20-ppc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cipher/chacha20-ppc.c b/cipher/chacha20-ppc.c
index 994b6a01..fe991b08 100644
--- a/cipher/chacha20-ppc.c
+++ b/cipher/chacha20-ppc.c
@@ -65,7 +65,7 @@ vec_rol_elems(vector4x_u32 v, unsigned int idx)
static ASM_FUNC_ATTR_INLINE vector4x_u32
-vec_load_le(unsigned long offset, const unsigned char *ptr)
+vec_load_le(unsigned long offset, const void *ptr)
{
vector4x_u32 vec;
vec = vec_vsx_ld (offset, (const u32 *)ptr);
@@ -78,7 +78,7 @@ vec_load_le(unsigned long offset, const unsigned char *ptr)
static ASM_FUNC_ATTR_INLINE void
-vec_store_le(vector4x_u32 vec, unsigned long offset, unsigned char *ptr)
+vec_store_le(vector4x_u32 vec, unsigned long offset, void *ptr)
{
#ifdef WORDS_BIGENDIAN
vec = (vector4x_u32)vec_perm((vector16x_u8)vec, (vector16x_u8)vec,
--
2.43.0
More information about the Gcrypt-devel
mailing list