From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============7910754700980603089==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [ti:ti-rt-linux-5.10.y 9732/9999] drivers/media/platform/vxe-vxd/decoder/bspp.c:194:40: error: initialization of 'int (*)(enum vdec_bstr_format, struct bspp_vid_std_features *, struct bspp_swsr_ctx *, struct bspp_parser_callbacks *, struct bspp_inter_pict_data *)' from incompatible point... Date: Fri, 21 Jan 2022 02:57:01 +0800 Message-ID: <202201210248.9231rNCl-lkp@intel.com> List-Id: --===============7910754700980603089== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi LCPD, First bad commit (maybe !=3D root cause): tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.= 10.y head: 2c79f99170b96e20b59e6bc5363747564aee4898 commit: 18fa57b6524a8135871b9bcf9b8af07f888ddcd2 [9732/9999] Merged TI feat= ure linux_rt-5.10 into ti-rt-linux-5.10.y config: riscv-allmodconfig (https://download.01.org/0day-ci/archive/2022012= 1/202201210248.9231rNCl-lkp(a)intel.com/config) compiler: riscv64-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 git remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.= git git fetch --no-tags ti ti-rt-linux-5.10.y git checkout 18fa57b6524a8135871b9bcf9b8af07f888ddcd2 # 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=3Driscv SHELL=3D/bin/bash drivers/media/platform/vxe-vx= d/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): include/linux/stddef.h:8:14: note: (near initialization for 'parser_fxns= [1].') 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/bspp.c:188:11: note: in expansion= of macro 'NULL' 188 | { NULL, NULL }, | ^~~~ include/linux/stddef.h:8:14: error: positional initialization of field i= n 'struct' declared with 'designated_init' attribute [-Werror=3Ddesignated-= init] 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/bspp.c:188:17: note: in expansion= of macro 'NULL' 188 | { NULL, NULL }, | ^~~~ include/linux/stddef.h:8:14: note: (near initialization for 'parser_fxns= [1]') 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/bspp.c:188:17: note: in expansion= of macro 'NULL' 188 | { NULL, NULL }, | ^~~~ include/linux/stddef.h:8:14: error: positional initialization of field i= n 'struct' declared with 'designated_init' attribute [-Werror=3Ddesignated-= init] 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/bspp.c:190:11: note: in expansion= of macro 'NULL' 190 | { NULL, NULL }, | ^~~~ include/linux/stddef.h:8:14: note: (near initialization for 'parser_fxns= [2]') 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/bspp.c:190:11: note: in expansion= of macro 'NULL' 190 | { NULL, NULL }, | ^~~~ include/linux/stddef.h:8:14: error: invalid initializer 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/bspp.c:190:11: note: in expansion= of macro 'NULL' 190 | { NULL, NULL }, | ^~~~ include/linux/stddef.h:8:14: note: (near initialization for 'parser_fxns= [2].') 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/bspp.c:190:11: note: in expansion= of macro 'NULL' 190 | { NULL, NULL }, | ^~~~ include/linux/stddef.h:8:14: error: positional initialization of field i= n 'struct' declared with 'designated_init' attribute [-Werror=3Ddesignated-= init] 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/bspp.c:190:17: note: in expansion= of macro 'NULL' 190 | { NULL, NULL }, | ^~~~ include/linux/stddef.h:8:14: note: (near initialization for 'parser_fxns= [2]') 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/bspp.c:190:17: note: in expansion= of macro 'NULL' 190 | { NULL, NULL }, | ^~~~ include/linux/stddef.h:8:14: error: positional initialization of field i= n 'struct' declared with 'designated_init' attribute [-Werror=3Ddesignated-= init] 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/bspp.c:192:11: note: in expansion= of macro 'NULL' 192 | { NULL, NULL }, | ^~~~ include/linux/stddef.h:8:14: note: (near initialization for 'parser_fxns= [3]') 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/bspp.c:192:11: note: in expansion= of macro 'NULL' 192 | { NULL, NULL }, | ^~~~ include/linux/stddef.h:8:14: error: invalid initializer 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/bspp.c:192:11: note: in expansion= of macro 'NULL' 192 | { NULL, NULL }, | ^~~~ include/linux/stddef.h:8:14: note: (near initialization for 'parser_fxns= [3].') 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/bspp.c:192:11: note: in expansion= of macro 'NULL' 192 | { NULL, NULL }, | ^~~~ include/linux/stddef.h:8:14: error: positional initialization of field i= n 'struct' declared with 'designated_init' attribute [-Werror=3Ddesignated-= init] 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/bspp.c:192:17: note: in expansion= of macro 'NULL' 192 | { NULL, NULL }, | ^~~~ include/linux/stddef.h:8:14: note: (near initialization for 'parser_fxns= [3]') 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/bspp.c:192:17: note: in expansion= of macro 'NULL' 192 | { NULL, NULL }, | ^~~~ drivers/media/platform/vxe-vxd/decoder/bspp.c:194:11: error: positional = initialization of field in 'struct' declared with 'designated_init' attribu= te [-Werror=3Ddesignated-init] 194 | { bspp_h264_set_parser_config, bspp_h264_determine_unitt= ype }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/platform/vxe-vxd/decoder/bspp.c:194:11: note: (near initia= lization for 'parser_fxns[4]') drivers/media/platform/vxe-vxd/decoder/bspp.c:194:11: error: invalid ini= tializer drivers/media/platform/vxe-vxd/decoder/bspp.c:194:11: note: (near initia= lization for 'parser_fxns[4].') drivers/media/platform/vxe-vxd/decoder/bspp.c:194:40: error: positional = initialization of field in 'struct' declared with 'designated_init' attribu= te [-Werror=3Ddesignated-init] 194 | { bspp_h264_set_parser_config, bspp_h264_determine_unitt= ype }, | ^~~~~~~~~~~~~~~~~~~~~~~~~= ~~~ drivers/media/platform/vxe-vxd/decoder/bspp.c:194:40: note: (near initia= lization for 'parser_fxns[4]') >> drivers/media/platform/vxe-vxd/decoder/bspp.c:194:40: error: initializat= ion of 'int (*)(enum vdec_bstr_format, struct bspp_vid_std_features *, str= uct bspp_swsr_ctx *, struct bspp_parser_callbacks *, struct bspp_inter_pict= _data *)' from incompatible pointer type 'void (*)(unsigned char, int, en= um bspp_unit_type *)' [-Werror=3Dincompatible-pointer-types] drivers/media/platform/vxe-vxd/decoder/bspp.c:194:40: note: (near initia= lization for 'parser_fxns[4].set_parser_config') In file included from include/uapi/linux/posix_types.h:5, from include/uapi/linux/types.h:14, from include/linux/types.h:6, from include/linux/kasan-checks.h:5, from include/asm-generic/rwonce.h:26, from ./arch/riscv/include/generated/asm/rwonce.h:1, from include/linux/compiler.h:248, from arch/riscv/include/asm/bug.h:9, from include/linux/bug.h:5, from include/linux/mmdebug.h:5, from include/linux/gfp.h:5, from include/linux/slab.h:15, from drivers/media/platform/vxe-vxd/decoder/bspp.c:16: include/linux/stddef.h:8:14: error: positional initialization of field i= n 'struct' declared with 'designated_init' attribute [-Werror=3Ddesignated-= init] 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/bspp.c:196:11: note: in expansion= of macro 'NULL' 196 | { NULL, NULL }, | ^~~~ include/linux/stddef.h:8:14: note: (near initialization for 'parser_fxns= [5]') 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/bspp.c:196:11: note: in expansion= of macro 'NULL' 196 | { NULL, NULL }, | ^~~~ include/linux/stddef.h:8:14: error: invalid initializer 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/bspp.c:196:11: note: in expansion= of macro 'NULL' 196 | { NULL, NULL }, | ^~~~ include/linux/stddef.h:8:14: note: (near initialization for 'parser_fxns= [5].') 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/bspp.c:196:11: note: in expansion= of macro 'NULL' 196 | { NULL, NULL }, | ^~~~ include/linux/stddef.h:8:14: error: positional initialization of field i= n 'struct' declared with 'designated_init' attribute [-Werror=3Ddesignated-= init] 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/bspp.c:196:17: note: in expansion= of macro 'NULL' 196 | { NULL, NULL }, | ^~~~ include/linux/stddef.h:8:14: note: (near initialization for 'parser_fxns= [5]') 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/bspp.c:196:17: note: in expansion= of macro 'NULL' 196 | { NULL, NULL }, | ^~~~ include/linux/stddef.h:8:14: error: positional initialization of field i= n 'struct' declared with 'designated_init' attribute [-Werror=3Ddesignated-= init] 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/bspp.c:198:11: note: in expansion= of macro 'NULL' 198 | { NULL, NULL }, | ^~~~ include/linux/stddef.h:8:14: note: (near initialization for 'parser_fxns= [6]') 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/bspp.c:198:11: note: in expansion= of macro 'NULL' 198 | { NULL, NULL }, | ^~~~ include/linux/stddef.h:8:14: error: invalid initializer 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/bspp.c:198:11: note: in expansion= of macro 'NULL' 198 | { NULL, NULL }, | ^~~~ include/linux/stddef.h:8:14: note: (near initialization for 'parser_fxns= [6].') 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/bspp.c:198:11: note: in expansion= of macro 'NULL' 198 | { NULL, NULL }, | ^~~~ include/linux/stddef.h:8:14: error: positional initialization of field i= n 'struct' declared with 'designated_init' attribute [-Werror=3Ddesignated-= init] 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/bspp.c:198:17: note: in expansion= of macro 'NULL' 198 | { NULL, NULL }, | ^~~~ include/linux/stddef.h:8:14: note: (near initialization for 'parser_fxns= [6]') 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/bspp.c:198:17: note: in expansion= of macro 'NULL' 198 | { NULL, NULL }, | ^~~~ include/linux/stddef.h:8:14: error: positional initialization of field i= n 'struct' declared with 'designated_init' attribute [-Werror=3Ddesignated-= init] 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/bspp.c:200:11: note: in expansion= of macro 'NULL' 200 | { NULL, NULL }, | ^~~~ include/linux/stddef.h:8:14: note: (near initialization for 'parser_fxns= [7]') 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/bspp.c:200:11: note: in expansion= of macro 'NULL' 200 | { NULL, NULL }, | ^~~~ include/linux/stddef.h:8:14: error: invalid initializer 8 | #define NULL ((void *)0) vim +194 drivers/media/platform/vxe-vxd/decoder/bspp.c b8acc66aa7f09d9 Sidraya 2021-11-02 183 = b8acc66aa7f09d9 Sidraya 2021-11-02 184 static struct bspp_parser_function= s parser_fxns[VDEC_STD_MAX] =3D { b8acc66aa7f09d9 Sidraya 2021-11-02 185 /* VDEC_STD_UNDEFINED */ b8acc66aa7f09d9 Sidraya 2021-11-02 186 { NULL, NULL }, b8acc66aa7f09d9 Sidraya 2021-11-02 187 /* VDEC_STD_MPEG2 */ b8acc66aa7f09d9 Sidraya 2021-11-02 188 { NULL, NULL }, b8acc66aa7f09d9 Sidraya 2021-11-02 189 /* VDEC_STD_MPEG4 */ b8acc66aa7f09d9 Sidraya 2021-11-02 190 { NULL, NULL }, b8acc66aa7f09d9 Sidraya 2021-11-02 191 /* VDEC_STD_H263 */ b8acc66aa7f09d9 Sidraya 2021-11-02 192 { NULL, NULL }, b8acc66aa7f09d9 Sidraya 2021-11-02 193 /* VDEC_STD_H264 */ b8acc66aa7f09d9 Sidraya 2021-11-02 @194 { bspp_h264_set_parser_config, bs= pp_h264_determine_unittype }, b8acc66aa7f09d9 Sidraya 2021-11-02 195 /* VDEC_STD_VC1 */ b8acc66aa7f09d9 Sidraya 2021-11-02 196 { NULL, NULL }, b8acc66aa7f09d9 Sidraya 2021-11-02 197 /* VDEC_STD_AVS */ b8acc66aa7f09d9 Sidraya 2021-11-02 198 { NULL, NULL }, b8acc66aa7f09d9 Sidraya 2021-11-02 199 /* VDEC_STD_REAL */ b8acc66aa7f09d9 Sidraya 2021-11-02 200 { NULL, NULL }, b8acc66aa7f09d9 Sidraya 2021-11-02 201 /* VDEC_STD_JPEG */ b8acc66aa7f09d9 Sidraya 2021-11-02 202 #ifdef HAS_JPEG b8acc66aa7f09d9 Sidraya 2021-11-02 203 { bspp_jpeg_setparser_config, bsp= p_jpeg_determine_unit_type }, b8acc66aa7f09d9 Sidraya 2021-11-02 204 #else b8acc66aa7f09d9 Sidraya 2021-11-02 205 { NULL, NULL }, b8acc66aa7f09d9 Sidraya 2021-11-02 206 #endif b8acc66aa7f09d9 Sidraya 2021-11-02 207 /* VDEC_STD_VP6 */ b8acc66aa7f09d9 Sidraya 2021-11-02 208 { NULL, NULL }, b8acc66aa7f09d9 Sidraya 2021-11-02 209 /* VDEC_STD_VP8 */ b8acc66aa7f09d9 Sidraya 2021-11-02 210 { NULL, NULL }, b8acc66aa7f09d9 Sidraya 2021-11-02 211 /* VDEC_STD_SORENSON */ b8acc66aa7f09d9 Sidraya 2021-11-02 212 { NULL, NULL }, b8acc66aa7f09d9 Sidraya 2021-11-02 213 /* VDEC_STD_HEVC */ b8acc66aa7f09d9 Sidraya 2021-11-02 214 { bspp_hevc_set_parser_config, bs= pp_hevc_determine_unittype }, b8acc66aa7f09d9 Sidraya 2021-11-02 215 }; b8acc66aa7f09d9 Sidraya 2021-11-02 216 = :::::: The code at line 194 was first introduced by commit :::::: b8acc66aa7f09d97e22bab43b10a2501152580f5 v4l: vxd-dec: Add Bistream = Preparser (BSPP) module for H264. :::::: TO: Sidraya :::::: CC: Praneeth Bajjuri --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============7910754700980603089==--