From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============1762552481334074093==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH 1/2] lib/xor: make xor prototypes more friendely to compiler vectorization Date: Fri, 28 Jan 2022 01:14:44 +0800 Message-ID: <202201280125.Q4T02G9Q-lkp@intel.com> In-Reply-To: <20220127081227.2430-2-ardb@kernel.org> List-Id: --===============1762552481334074093== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Ard, I love your patch! Yet something to improve: [auto build test ERROR on e783362eb54cd99b2cac8b3a9aeac942e6f6ac07] url: https://github.com/0day-ci/linux/commits/Ard-Biesheuvel/xor-enable-= auto-vectorization-in-Clang/20220127-161449 base: e783362eb54cd99b2cac8b3a9aeac942e6f6ac07 config: arm64-randconfig-r015-20220127 (https://download.01.org/0day-ci/arc= hive/20220128/202201280125.Q4T02G9Q-lkp(a)intel.com/config) compiler: aarch64-linux-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/0day-ci/linux/commit/543912d52a64185845fd9bde2= 412680ef0156a7c git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Ard-Biesheuvel/xor-enable-auto-vec= torization-in-Clang/20220127-161449 git checkout 543912d52a64185845fd9bde2412680ef0156a7c # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Darm64 SHELL=3D/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): arch/arm64/lib/xor-neon.c:13:6: warning: no previous prototype for 'xor_= arm64_neon_2' [-Wmissing-prototypes] 13 | void xor_arm64_neon_2(unsigned long bytes, unsigned long * __res= trict p1, | ^~~~~~~~~~~~~~~~ arch/arm64/lib/xor-neon.c:40:6: warning: no previous prototype for 'xor_= arm64_neon_3' [-Wmissing-prototypes] 40 | void xor_arm64_neon_3(unsigned long bytes, unsigned long * __res= trict p1, | ^~~~~~~~~~~~~~~~ arch/arm64/lib/xor-neon.c:76:6: warning: no previous prototype for 'xor_= arm64_neon_4' [-Wmissing-prototypes] 76 | void xor_arm64_neon_4(unsigned long bytes, unsigned long * __res= trict p1, | ^~~~~~~~~~~~~~~~ arch/arm64/lib/xor-neon.c:121:6: warning: no previous prototype for 'xor= _arm64_neon_5' [-Wmissing-prototypes] 121 | void xor_arm64_neon_5(unsigned long bytes, unsigned long * __res= trict p1, | ^~~~~~~~~~~~~~~~ arch/arm64/lib/xor-neon.c: In function 'xor_neon_init': >> arch/arm64/lib/xor-neon.c:316:43: error: assignment to 'void (*)(long un= signed int, long unsigned int * __restrict__, const long unsigned int * _= _restrict__, const long unsigned int * __restrict__)' from incompatible po= inter type 'void (*)(long unsigned int, long unsigned int *, long unsigned= int *, long unsigned int *)' [-Werror=3Dincompatible-pointer-types] 316 | xor_block_inner_neon.do_3 =3D xor_arm64_eor3_3; | ^ >> arch/arm64/lib/xor-neon.c:317:43: error: assignment to 'void (*)(long un= signed int, long unsigned int * __restrict__, const long unsigned int * _= _restrict__, const long unsigned int * __restrict__, const long unsigned = int * __restrict__)' from incompatible pointer type 'void (*)(long unsigned= int, long unsigned int *, long unsigned int *, long unsigned int *, long = unsigned int *)' [-Werror=3Dincompatible-pointer-types] 317 | xor_block_inner_neon.do_4 =3D xor_arm64_eor3_4; | ^ arch/arm64/lib/xor-neon.c:318:43: error: assignment to 'void (*)(long un= signed int, long unsigned int * __restrict__, const long unsigned int * _= _restrict__, const long unsigned int * __restrict__, const long unsigned = int * __restrict__, const long unsigned int * __restrict__)' from incompat= ible pointer type 'void (*)(long unsigned int, long unsigned int *, long u= nsigned int *, long unsigned int *, long unsigned int *, long unsigned int = *)' [-Werror=3Dincompatible-pointer-types] 318 | xor_block_inner_neon.do_5 =3D xor_arm64_eor3_5; | ^ cc1: some warnings being treated as errors vim +316 arch/arm64/lib/xor-neon.c 2c54b423cf85ba Ard Biesheuvel 2021-12-13 312 = 2c54b423cf85ba Ard Biesheuvel 2021-12-13 313 static int __init xor_neon_i= nit(void) 2c54b423cf85ba Ard Biesheuvel 2021-12-13 314 { 2c54b423cf85ba Ard Biesheuvel 2021-12-13 315 if (IS_ENABLED(CONFIG_AS_HA= S_SHA3) && cpu_have_named_feature(SHA3)) { 2c54b423cf85ba Ard Biesheuvel 2021-12-13 @316 xor_block_inner_neon.do_3 = =3D xor_arm64_eor3_3; 2c54b423cf85ba Ard Biesheuvel 2021-12-13 @317 xor_block_inner_neon.do_4 = =3D xor_arm64_eor3_4; 2c54b423cf85ba Ard Biesheuvel 2021-12-13 318 xor_block_inner_neon.do_5 = =3D xor_arm64_eor3_5; 2c54b423cf85ba Ard Biesheuvel 2021-12-13 319 } 2c54b423cf85ba Ard Biesheuvel 2021-12-13 320 return 0; 2c54b423cf85ba Ard Biesheuvel 2021-12-13 321 } 2c54b423cf85ba Ard Biesheuvel 2021-12-13 322 module_init(xor_neon_init); 2c54b423cf85ba Ard Biesheuvel 2021-12-13 323 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============1762552481334074093==--