linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [masahiroy:for-next 3/5] lib/raid6/neon1.c:39:9: warning: mixing declarations and code is incompatible with standards before C99
@ 2022-03-10 11:39 kernel test robot
  2022-03-10 18:03 ` Nick Desaulniers
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2022-03-10 11:39 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: llvm, kbuild-all, linux-kernel, Masahiro Yamada, Alex Shi,
	Nick Desaulniers, Miguel Ojeda, Nathan Chancellor

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git for-next
head:   cf4a68247a204c9d46768fabaf7de68a39d8b7c9
commit: 6992f0b3f0fd879b31095263986ba1aedb27c83b [3/5] Kbuild: move to -std=gnu11
config: arm64-randconfig-r026-20220310 (https://download.01.org/0day-ci/archive/20220310/202203101914.axpeuY5Y-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 276ca87382b8f16a65bddac700202924228982f6)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git/commit/?id=6992f0b3f0fd879b31095263986ba1aedb27c83b
        git remote add masahiroy https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git
        git fetch --no-tags masahiroy for-next
        git checkout 6992f0b3f0fd879b31095263986ba1aedb27c83b
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash lib/raid6/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> lib/raid6/neon1.c:39:9: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
           return vshlq_n_u8(v, 1);
                  ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon1.c:48:20: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
           return (unative_t)vshrq_n_s8((int8x16_t)v, 7);
                             ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25303:13: note: expanded from macro 'vshrq_n_s8'
     int8x16_t __ret; \
               ^
   lib/raid6/neon1.c:56:6: warning: no previous prototype for function 'raid6_neon1_gen_syndrome_real' [-Wmissing-prototypes]
   void raid6_neon1_gen_syndrome_real(int disks, unsigned long bytes, void **ptrs)
        ^
   lib/raid6/neon1.c:56:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void raid6_neon1_gen_syndrome_real(int disks, unsigned long bytes, void **ptrs)
   ^
   static 
   lib/raid6/neon1.c:117:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w20 = vshrq_n_u8(wq0, 4);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon1.c:118:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w10 = vshlq_n_u8(wq0, 4);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon1.c:126:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w20 = vshrq_n_u8(wq0, 5);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon1.c:127:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w10 = vshlq_n_u8(wq0, 3);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon1.c:133:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w20 = vshrq_n_u8(wq0, 6);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon1.c:134:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w10 = vshlq_n_u8(wq0, 2);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon1.c:86:6: warning: no previous prototype for function 'raid6_neon1_xor_syndrome_real' [-Wmissing-prototypes]
   void raid6_neon1_xor_syndrome_real(int disks, int start, int stop,
        ^
   lib/raid6/neon1.c:86:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void raid6_neon1_xor_syndrome_real(int disks, int start, int stop,
   ^
   static 
   10 warnings generated.
--
>> lib/raid6/neon2.c:39:9: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
           return vshlq_n_u8(v, 1);
                  ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon2.c:48:20: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
           return (unative_t)vshrq_n_s8((int8x16_t)v, 7);
                             ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25303:13: note: expanded from macro 'vshrq_n_s8'
     int8x16_t __ret; \
               ^
   lib/raid6/neon2.c:56:6: warning: no previous prototype for function 'raid6_neon2_gen_syndrome_real' [-Wmissing-prototypes]
   void raid6_neon2_gen_syndrome_real(int disks, unsigned long bytes, void **ptrs)
        ^
   lib/raid6/neon2.c:56:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void raid6_neon2_gen_syndrome_real(int disks, unsigned long bytes, void **ptrs)
   ^
   static 
   lib/raid6/neon2.c:138:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w20 = vshrq_n_u8(wq0, 4);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon2.c:139:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w21 = vshrq_n_u8(wq1, 4);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon2.c:140:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w10 = vshlq_n_u8(wq0, 4);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon2.c:141:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w11 = vshlq_n_u8(wq1, 4);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon2.c:151:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w20 = vshrq_n_u8(wq0, 5);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon2.c:152:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w21 = vshrq_n_u8(wq1, 5);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon2.c:153:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w10 = vshlq_n_u8(wq0, 3);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon2.c:154:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w11 = vshlq_n_u8(wq1, 3);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon2.c:162:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w20 = vshrq_n_u8(wq0, 6);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon2.c:163:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w21 = vshrq_n_u8(wq1, 6);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon2.c:164:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w10 = vshlq_n_u8(wq0, 2);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon2.c:165:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w11 = vshlq_n_u8(wq1, 2);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon2.c:97:6: warning: no previous prototype for function 'raid6_neon2_xor_syndrome_real' [-Wmissing-prototypes]
   void raid6_neon2_xor_syndrome_real(int disks, int start, int stop,
        ^
   lib/raid6/neon2.c:97:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void raid6_neon2_xor_syndrome_real(int disks, int start, int stop,
   ^
   static 
   16 warnings generated.
--
>> lib/raid6/neon4.c:39:9: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
           return vshlq_n_u8(v, 1);
                  ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon4.c:48:20: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
           return (unative_t)vshrq_n_s8((int8x16_t)v, 7);
                             ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25303:13: note: expanded from macro 'vshrq_n_s8'
     int8x16_t __ret; \
               ^
   lib/raid6/neon4.c:56:6: warning: no previous prototype for function 'raid6_neon4_gen_syndrome_real' [-Wmissing-prototypes]
   void raid6_neon4_gen_syndrome_real(int disks, unsigned long bytes, void **ptrs)
        ^
   lib/raid6/neon4.c:56:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void raid6_neon4_gen_syndrome_real(int disks, unsigned long bytes, void **ptrs)
   ^
   static 
   lib/raid6/neon4.c:180:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w20 = vshrq_n_u8(wq0, 4);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon4.c:181:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w21 = vshrq_n_u8(wq1, 4);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon4.c:182:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w22 = vshrq_n_u8(wq2, 4);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon4.c:183:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w23 = vshrq_n_u8(wq3, 4);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon4.c:184:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w10 = vshlq_n_u8(wq0, 4);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon4.c:185:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w11 = vshlq_n_u8(wq1, 4);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon4.c:186:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w12 = vshlq_n_u8(wq2, 4);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon4.c:187:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w13 = vshlq_n_u8(wq3, 4);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon4.c:201:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w20 = vshrq_n_u8(wq0, 5);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon4.c:202:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w21 = vshrq_n_u8(wq1, 5);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon4.c:203:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w22 = vshrq_n_u8(wq2, 5);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon4.c:204:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w23 = vshrq_n_u8(wq3, 5);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon4.c:205:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w10 = vshlq_n_u8(wq0, 3);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon4.c:206:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w11 = vshlq_n_u8(wq1, 3);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
--
>> lib/raid6/neon8.c:39:9: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
           return vshlq_n_u8(v, 1);
                  ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon8.c:48:20: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
           return (unative_t)vshrq_n_s8((int8x16_t)v, 7);
                             ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25303:13: note: expanded from macro 'vshrq_n_s8'
     int8x16_t __ret; \
               ^
   lib/raid6/neon8.c:56:6: warning: no previous prototype for function 'raid6_neon8_gen_syndrome_real' [-Wmissing-prototypes]
   void raid6_neon8_gen_syndrome_real(int disks, unsigned long bytes, void **ptrs)
        ^
   lib/raid6/neon8.c:56:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void raid6_neon8_gen_syndrome_real(int disks, unsigned long bytes, void **ptrs)
   ^
   static 
   lib/raid6/neon8.c:264:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w20 = vshrq_n_u8(wq0, 4);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon8.c:265:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w21 = vshrq_n_u8(wq1, 4);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon8.c:266:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w22 = vshrq_n_u8(wq2, 4);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon8.c:267:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w23 = vshrq_n_u8(wq3, 4);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon8.c:268:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w24 = vshrq_n_u8(wq4, 4);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon8.c:269:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w25 = vshrq_n_u8(wq5, 4);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon8.c:270:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w26 = vshrq_n_u8(wq6, 4);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon8.c:271:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w27 = vshrq_n_u8(wq7, 4);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon8.c:272:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w10 = vshlq_n_u8(wq0, 4);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon8.c:273:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w11 = vshlq_n_u8(wq1, 4);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon8.c:274:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w12 = vshlq_n_u8(wq2, 4);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon8.c:275:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w13 = vshlq_n_u8(wq3, 4);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon8.c:276:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w14 = vshlq_n_u8(wq4, 4);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
     uint8x16_t __ret; \
                ^
   lib/raid6/neon8.c:277:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
                           w15 = vshlq_n_u8(wq5, 4);
                                 ^
   /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
..

---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [masahiroy:for-next 3/5] lib/raid6/neon1.c:39:9: warning: mixing declarations and code is incompatible with standards before C99
  2022-03-10 11:39 [masahiroy:for-next 3/5] lib/raid6/neon1.c:39:9: warning: mixing declarations and code is incompatible with standards before C99 kernel test robot
@ 2022-03-10 18:03 ` Nick Desaulniers
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Desaulniers @ 2022-03-10 18:03 UTC (permalink / raw)
  To: Arnd Bergmann, Masahiro Yamada
  Cc: llvm, kbuild-all, linux-kernel, Alex Shi, Miguel Ojeda,
	Nathan Chancellor, kernel test robot

On Thu, Mar 10, 2022 at 3:40 AM kernel test robot <lkp@intel.com> wrote:
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git for-next
> head:   cf4a68247a204c9d46768fabaf7de68a39d8b7c9
> commit: 6992f0b3f0fd879b31095263986ba1aedb27c83b [3/5] Kbuild: move to -std=gnu11
> config: arm64-randconfig-r026-20220310 (https://download.01.org/0day-ci/archive/20220310/202203101914.axpeuY5Y-lkp@intel.com/config)
> compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 276ca87382b8f16a65bddac700202924228982f6)
> reproduce (this is a W=1 build):
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         # install arm64 cross compiling tool for clang build
>         # apt-get install binutils-aarch64-linux-gnu
>         # https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git/commit/?id=6992f0b3f0fd879b31095263986ba1aedb27c83b
>         git remote add masahiroy https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git
>         git fetch --no-tags masahiroy for-next
>         git checkout 6992f0b3f0fd879b31095263986ba1aedb27c83b
>         # save the config file to linux build tree
>         mkdir build_dir
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash lib/raid6/
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
>
> All warnings (new ones prefixed by >>):
>
> >> lib/raid6/neon1.c:39:9: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>            return vshlq_n_u8(v, 1);
>                   ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'

^ this header is generated by clang. We'll fix it in clang.
https://github.com/ClangBuiltLinux/linux/issues/1603

>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon1.c:48:20: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>            return (unative_t)vshrq_n_s8((int8x16_t)v, 7);
>                              ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25303:13: note: expanded from macro 'vshrq_n_s8'
>      int8x16_t __ret; \
>                ^
>    lib/raid6/neon1.c:56:6: warning: no previous prototype for function 'raid6_neon1_gen_syndrome_real' [-Wmissing-prototypes]
>    void raid6_neon1_gen_syndrome_real(int disks, unsigned long bytes, void **ptrs)
>         ^
>    lib/raid6/neon1.c:56:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
>    void raid6_neon1_gen_syndrome_real(int disks, unsigned long bytes, void **ptrs)
>    ^
>    static
>    lib/raid6/neon1.c:117:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w20 = vshrq_n_u8(wq0, 4);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon1.c:118:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w10 = vshlq_n_u8(wq0, 4);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon1.c:126:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w20 = vshrq_n_u8(wq0, 5);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon1.c:127:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w10 = vshlq_n_u8(wq0, 3);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon1.c:133:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w20 = vshrq_n_u8(wq0, 6);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon1.c:134:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w10 = vshlq_n_u8(wq0, 2);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon1.c:86:6: warning: no previous prototype for function 'raid6_neon1_xor_syndrome_real' [-Wmissing-prototypes]
>    void raid6_neon1_xor_syndrome_real(int disks, int start, int stop,
>         ^
>    lib/raid6/neon1.c:86:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
>    void raid6_neon1_xor_syndrome_real(int disks, int start, int stop,
>    ^
>    static
>    10 warnings generated.
> --
> >> lib/raid6/neon2.c:39:9: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>            return vshlq_n_u8(v, 1);
>                   ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon2.c:48:20: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>            return (unative_t)vshrq_n_s8((int8x16_t)v, 7);
>                              ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25303:13: note: expanded from macro 'vshrq_n_s8'
>      int8x16_t __ret; \
>                ^
>    lib/raid6/neon2.c:56:6: warning: no previous prototype for function 'raid6_neon2_gen_syndrome_real' [-Wmissing-prototypes]
>    void raid6_neon2_gen_syndrome_real(int disks, unsigned long bytes, void **ptrs)
>         ^
>    lib/raid6/neon2.c:56:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
>    void raid6_neon2_gen_syndrome_real(int disks, unsigned long bytes, void **ptrs)
>    ^
>    static
>    lib/raid6/neon2.c:138:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w20 = vshrq_n_u8(wq0, 4);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon2.c:139:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w21 = vshrq_n_u8(wq1, 4);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon2.c:140:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w10 = vshlq_n_u8(wq0, 4);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon2.c:141:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w11 = vshlq_n_u8(wq1, 4);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon2.c:151:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w20 = vshrq_n_u8(wq0, 5);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon2.c:152:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w21 = vshrq_n_u8(wq1, 5);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon2.c:153:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w10 = vshlq_n_u8(wq0, 3);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon2.c:154:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w11 = vshlq_n_u8(wq1, 3);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon2.c:162:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w20 = vshrq_n_u8(wq0, 6);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon2.c:163:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w21 = vshrq_n_u8(wq1, 6);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon2.c:164:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w10 = vshlq_n_u8(wq0, 2);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon2.c:165:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w11 = vshlq_n_u8(wq1, 2);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon2.c:97:6: warning: no previous prototype for function 'raid6_neon2_xor_syndrome_real' [-Wmissing-prototypes]
>    void raid6_neon2_xor_syndrome_real(int disks, int start, int stop,
>         ^
>    lib/raid6/neon2.c:97:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
>    void raid6_neon2_xor_syndrome_real(int disks, int start, int stop,
>    ^
>    static
>    16 warnings generated.
> --
> >> lib/raid6/neon4.c:39:9: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>            return vshlq_n_u8(v, 1);
>                   ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon4.c:48:20: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>            return (unative_t)vshrq_n_s8((int8x16_t)v, 7);
>                              ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25303:13: note: expanded from macro 'vshrq_n_s8'
>      int8x16_t __ret; \
>                ^
>    lib/raid6/neon4.c:56:6: warning: no previous prototype for function 'raid6_neon4_gen_syndrome_real' [-Wmissing-prototypes]
>    void raid6_neon4_gen_syndrome_real(int disks, unsigned long bytes, void **ptrs)
>         ^
>    lib/raid6/neon4.c:56:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
>    void raid6_neon4_gen_syndrome_real(int disks, unsigned long bytes, void **ptrs)
>    ^
>    static
>    lib/raid6/neon4.c:180:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w20 = vshrq_n_u8(wq0, 4);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon4.c:181:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w21 = vshrq_n_u8(wq1, 4);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon4.c:182:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w22 = vshrq_n_u8(wq2, 4);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon4.c:183:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w23 = vshrq_n_u8(wq3, 4);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon4.c:184:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w10 = vshlq_n_u8(wq0, 4);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon4.c:185:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w11 = vshlq_n_u8(wq1, 4);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon4.c:186:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w12 = vshlq_n_u8(wq2, 4);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon4.c:187:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w13 = vshlq_n_u8(wq3, 4);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon4.c:201:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w20 = vshrq_n_u8(wq0, 5);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon4.c:202:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w21 = vshrq_n_u8(wq1, 5);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon4.c:203:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w22 = vshrq_n_u8(wq2, 5);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon4.c:204:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w23 = vshrq_n_u8(wq3, 5);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon4.c:205:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w10 = vshlq_n_u8(wq0, 3);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon4.c:206:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w11 = vshlq_n_u8(wq1, 3);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
> --
> >> lib/raid6/neon8.c:39:9: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>            return vshlq_n_u8(v, 1);
>                   ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon8.c:48:20: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>            return (unative_t)vshrq_n_s8((int8x16_t)v, 7);
>                              ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25303:13: note: expanded from macro 'vshrq_n_s8'
>      int8x16_t __ret; \
>                ^
>    lib/raid6/neon8.c:56:6: warning: no previous prototype for function 'raid6_neon8_gen_syndrome_real' [-Wmissing-prototypes]
>    void raid6_neon8_gen_syndrome_real(int disks, unsigned long bytes, void **ptrs)
>         ^
>    lib/raid6/neon8.c:56:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
>    void raid6_neon8_gen_syndrome_real(int disks, unsigned long bytes, void **ptrs)
>    ^
>    static
>    lib/raid6/neon8.c:264:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w20 = vshrq_n_u8(wq0, 4);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon8.c:265:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w21 = vshrq_n_u8(wq1, 4);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon8.c:266:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w22 = vshrq_n_u8(wq2, 4);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon8.c:267:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w23 = vshrq_n_u8(wq3, 4);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon8.c:268:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w24 = vshrq_n_u8(wq4, 4);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon8.c:269:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w25 = vshrq_n_u8(wq5, 4);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon8.c:270:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w26 = vshrq_n_u8(wq6, 4);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon8.c:271:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w27 = vshrq_n_u8(wq7, 4);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:25231:14: note: expanded from macro 'vshrq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon8.c:272:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w10 = vshlq_n_u8(wq0, 4);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon8.c:273:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w11 = vshlq_n_u8(wq1, 4);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon8.c:274:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w12 = vshlq_n_u8(wq2, 4);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon8.c:275:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w13 = vshlq_n_u8(wq3, 4);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon8.c:276:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w14 = vshlq_n_u8(wq4, 4);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
>      uint8x16_t __ret; \
>                 ^
>    lib/raid6/neon8.c:277:10: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
>                            w15 = vshlq_n_u8(wq5, 4);
>                                  ^
>    /opt/cross/clang-276ca87382/lib/clang/15.0.0/include/arm_neon.h:24823:14: note: expanded from macro 'vshlq_n_u8'
> ..
>
> ---
> 0-DAY CI Kernel Test Service
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org



-- 
Thanks,
~Nick Desaulniers

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-03-10 18:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-10 11:39 [masahiroy:for-next 3/5] lib/raid6/neon1.c:39:9: warning: mixing declarations and code is incompatible with standards before C99 kernel test robot
2022-03-10 18:03 ` Nick Desaulniers

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).