Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In function ‘xnn_u8_vclamp_ukernel__neon_u64’: passing argument 1 of ‘vld1q_dup_u8’ from incompatible pointer type #7733

Open
jameshilliard opened this issue Jan 28, 2025 · 0 comments

Comments

@jameshilliard
Copy link

jameshilliard commented Jan 28, 2025

I'm seeing these warnings(error actually on some compiler variants) using a gcc based aarch64 toolchain with cmake:

/home/buildroot/buildroot/output/build/xnnpack-d7f398ee5e135ef4f7045802eea973cc6cb26c6c/src/u8-vclamp/u8-vclamp-neon-u64.c: In functionxnn_u8_vclamp_ukernel__neon_u64’:
/home/buildroot/buildroot/output/build/xnnpack-d7f398ee5e135ef4f7045802eea973cc6cb26c6c/src/u8-vclamp/u8-vclamp-neon-u64.c:24:47: warning: passing argument 1 ofvld1q_dup_u8from incompatible pointer type [-Wincompatible-pointer-types]
   const uint8x16_t voutput_max = vld1q_dup_u8(&params->scalar.max);
                                               ^
In file included from /home/buildroot/buildroot/output/build/xnnpack-d7f398ee5e135ef4f7045802eea973cc6cb26c6c/src/u8-vclamp/u8-vclamp-neon-u64.c:8:0:
/home/buildroot/buildroot/output/per-package/xnnpack/host/opt/ext-toolchain/lib/gcc/aarch64-linux-gnu/7.3.1/include/arm_neon.h:17429:1: note: expectedconst uint8_t * {aka const unsigned char *}’ but argument is of typeconst uint32_t * {aka const unsigned int *}’
 vld1q_dup_u8 (const uint8_t* __a)
 ^~~~~~~~~~~~
/home/buildroot/buildroot/output/build/xnnpack-d7f398ee5e135ef4f7045802eea973cc6cb26c6c/src/u8-vclamp/u8-vclamp-neon-u64.c:25:47: warning: passing argument 1 ofvld1q_dup_u8from incompatible pointer type [-Wincompatible-pointer-types]
   const uint8x16_t voutput_min = vld1q_dup_u8(&params->scalar.min);
                                               ^
In file included from /home/buildroot/buildroot/output/build/xnnpack-d7f398ee5e135ef4f7045802eea973cc6cb26c6c/src/u8-vclamp/u8-vclamp-neon-u64.c:8:0:
/home/buildroot/buildroot/output/per-package/xnnpack/host/opt/ext-toolchain/lib/gcc/aarch64-linux-gnu/7.3.1/include/arm_neon.h:17429:1: note: expectedconst uint8_t * {aka const unsigned char *}’ but argument is of typeconst uint32_t * {aka const unsigned int *}’
 vld1q_dup_u8 (const uint8_t* __a)
 ^~~~~~~~~~~~
/home/buildroot/buildroot/output/build/xnnpack-d7f398ee5e135ef4f7045802eea973cc6cb26c6c/src/u8-maxpool/u8-maxpool-9p8x-minmax-neon-c16.c: In functionxnn_u8_maxpool_minmax_ukernel_9p8x__neon_c16’:
/home/buildroot/buildroot/output/build/xnnpack-d7f398ee5e135ef4f7045802eea973cc6cb26c6c/src/u8-maxpool/u8-maxpool-9p8x-minmax-neon-c16.c:31:47: warning: passing argument 1 ofvld1q_dup_u8from incompatible pointer type [-Wincompatible-pointer-types]
   const uint8x16_t voutput_max = vld1q_dup_u8(&params->scalar.max);
                                               ^
In file included from /home/buildroot/buildroot/output/build/xnnpack-d7f398ee5e135ef4f7045802eea973cc6cb26c6c/src/u8-maxpool/u8-maxpool-9p8x-minmax-neon-c16.c:11:0:
/home/buildroot/buildroot/output/per-package/xnnpack/host/opt/ext-toolchain/lib/gcc/aarch64-linux-gnu/7.3.1/include/arm_neon.h:17429:1: note: expectedconst uint8_t * {aka const unsigned char *}’ but argument is of typeconst uint32_t * {aka const unsigned int *}’
 vld1q_dup_u8 (const uint8_t* __a)
 ^~~~~~~~~~~~
/home/buildroot/buildroot/output/build/xnnpack-d7f398ee5e135ef4f7045802eea973cc6cb26c6c/src/u8-maxpool/u8-maxpool-9p8x-minmax-neon-c16.c:32:47: warning: passing argument 1 ofvld1q_dup_u8from incompatible pointer type [-Wincompatible-pointer-types]
   const uint8x16_t voutput_min = vld1q_dup_u8(&params->scalar.min);
                                               ^
In file included from /home/buildroot/buildroot/output/build/xnnpack-d7f398ee5e135ef4f7045802eea973cc6cb26c6c/src/u8-maxpool/u8-maxpool-9p8x-minmax-neon-c16.c:11:0:
/home/buildroot/buildroot/output/per-package/xnnpack/host/opt/ext-toolchain/lib/gcc/aarch64-linux-gnu/7.3.1/include/arm_neon.h:17429:1: note: expectedconst uint8_t * {aka const unsigned char *}’ but argument is of typeconst uint32_t * {aka const unsigned int *}’
 vld1q_dup_u8 (const uint8_t* __a)
 ^~~~~~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant