diff --git a/kernel/power/gemm_common.c b/kernel/power/gemm_common.c index 2dd5a8982d..adfbb85c2a 100644 --- a/kernel/power/gemm_common.c +++ b/kernel/power/gemm_common.c @@ -49,7 +49,7 @@ FORCEINLINE void vec_load_pair(vec_f32 *dst, vec_f32 *src) #ifdef __clang__ vy0p = __builtin_vsx_lxvp(0L, (const __vector_pair *)(src)); #else - vy0p = *(__vector_pair *)(src); + vy0p = *(__vector_pair *)((void *)src); #endif __builtin_vsx_disassemble_pair((void *)(dst), &vy0p); #else @@ -66,7 +66,7 @@ FORCEINLINE void vec_store_pair(vec_f32 *dst, vec_f32 *src) #ifdef __clang__ __builtin_vsx_stxvp(vy0p, 0L, (__vector_pair *)(dst)); #else - *(__vector_pair *)(dst) = vy0p; + *(__vector_pair *)((void *)dst) = vy0p; #endif #else dst[0] = src[0];