From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============8358534468858641042==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [ti:ti-rt-linux-5.10.y 9666/9999] drivers/media/platform/vxe-vxd/decoder/core.c:307:26: error: initialization of 'int (*)(struct core_stream_context *, struct vdecdd_seq_resint *, struct vxdio_mempool, struct core_seq_resinfo *)' from incompatible pointer type 'int (*)(struct core_stream... Date: Mon, 31 Jan 2022 06:28:36 +0800 Message-ID: <202201310550.7TyUbDKu-lkp@intel.com> List-Id: --===============8358534468858641042== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi LCPD, FYI, the error/warning still remains. tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.= 10.y head: d9c7b73166b23dbc62e12edb621943f916019e45 commit: 18fa57b6524a8135871b9bcf9b8af07f888ddcd2 [9666/9999] Merged TI feat= ure linux_rt-5.10 into ti-rt-linux-5.10.y config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20220131/= 202201310550.7TyUbDKu-lkp(a)intel.com/config) compiler: arm-linux-gnueabi-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=3Darm 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 >>): include/linux/stddef.h:8:14: note: (near initialization for 'std_specifi= c_ops[9]') 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/core.c:302:74: note: in expansion= of macro 'NULL' 302 | /* VP8 */ { NULL, NULL, NULL, NULL, NU= LL, 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/core.c:304:29: note: in expansion= of macro 'NULL' 304 | /* SORENSON */ { NULL, NULL, NULL, NULL,= NULL, NULL}, | ^~~~ include/linux/stddef.h:8:14: note: (near initialization for 'std_specifi= c_ops[10]') 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/core.c:304:29: note: in expansion= of macro 'NULL' 304 | /* SORENSON */ { NULL, NULL, NULL, NULL,= NULL, NULL}, | ^~~~ include/linux/stddef.h:8:14: error: invalid initializer 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/core.c:304:29: note: in expansion= of macro 'NULL' 304 | /* SORENSON */ { NULL, NULL, NULL, NULL,= NULL, NULL}, | ^~~~ include/linux/stddef.h:8:14: note: (near initialization for 'std_specifi= c_ops[10].') 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/core.c:304:29: note: in expansion= of macro 'NULL' 304 | /* SORENSON */ { NULL, NULL, NULL, NULL,= 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/core.c:304:41: note: in expansion= of macro 'NULL' 304 | /* SORENSON */ { NULL, NULL, NULL, NULL,= NULL, NULL}, | ^~~~ include/linux/stddef.h:8:14: note: (near initialization for 'std_specifi= c_ops[10]') 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/core.c:304:41: note: in expansion= of macro 'NULL' 304 | /* SORENSON */ { NULL, NULL, NULL, NULL,= 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/core.c:304:52: note: in expansion= of macro 'NULL' 304 | /* SORENSON */ { NULL, NULL, NULL, NULL,= NULL, NULL}, | ^~~~ include/linux/stddef.h:8:14: note: (near initialization for 'std_specifi= c_ops[10]') 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/core.c:304:52: note: in expansion= of macro 'NULL' 304 | /* SORENSON */ { NULL, NULL, NULL, NULL,= 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/core.c:304:60: note: in expansion= of macro 'NULL' 304 | /* SORENSON */ { NULL, NULL, NULL, NULL,= NULL, NULL}, | ^~~~ include/linux/stddef.h:8:14: note: (near initialization for 'std_specifi= c_ops[10]') 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/core.c:304:60: note: in expansion= of macro 'NULL' 304 | /* SORENSON */ { NULL, NULL, NULL, NULL,= 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/core.c:304:67: note: in expansion= of macro 'NULL' 304 | /* SORENSON */ { NULL, NULL, NULL, NULL,= NULL, NULL}, | = ^~~~ include/linux/stddef.h:8:14: note: (near initialization for 'std_specifi= c_ops[10]') 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/core.c:304:67: note: in expansion= of macro 'NULL' 304 | /* SORENSON */ { NULL, NULL, NULL, NULL,= 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/core.c:304:78: note: in expansion= of macro 'NULL' 304 | /* SORENSON */ { NULL, NULL, NULL, NULL,= NULL, NULL}, | = ^~~~ include/linux/stddef.h:8:14: note: (near initialization for 'std_specifi= c_ops[10]') 8 | #define NULL ((void *)0) | ^ drivers/media/platform/vxe-vxd/decoder/core.c:304:78: note: in expansion= of macro 'NULL' 304 | /* SORENSON */ { NULL, NULL, NULL, NULL,= NULL, NULL}, | = ^~~~ drivers/media/platform/vxe-vxd/decoder/core.c:306:26: error: positional = initialization of field in 'struct' declared with 'designated_init' attribu= te [-Werror=3Ddesignated-init] 306 | /* HEVC */ { core_alloc_hevc_specific_pict_buffers, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/platform/vxe-vxd/decoder/core.c:306:26: note: (near initia= lization for 'std_specific_ops[11]') drivers/media/platform/vxe-vxd/decoder/core.c:306:26: error: invalid ini= tializer drivers/media/platform/vxe-vxd/decoder/core.c:306:26: note: (near initia= lization for 'std_specific_ops[11].') drivers/media/platform/vxe-vxd/decoder/core.c:307:26: error: positional = initialization of field in 'struct' declared with 'designated_init' attribu= te [-Werror=3Ddesignated-init] 307 | core_free_hevc_picture_resource, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/platform/vxe-vxd/decoder/core.c:307:26: note: (near initia= lization for 'std_specific_ops[11]') >> drivers/media/platform/vxe-vxd/decoder/core.c:307:26: error: initializat= ion of 'int (*)(struct core_stream_context *, struct vdecdd_seq_resint *, s= truct vxdio_mempool, struct core_seq_resinfo *)' from incompatible pointer= type 'int (*)(struct core_stream_context *, struct vdecdd_pict_resint *)' = [-Werror=3Dincompatible-pointer-types] drivers/media/platform/vxe-vxd/decoder/core.c:307:26: note: (near initia= lization for 'std_specific_ops[11].alloc_sequence_buffers') drivers/media/platform/vxe-vxd/decoder/core.c:308:26: error: positional = initialization of field in 'struct' declared with 'designated_init' attribu= te [-Werror=3Ddesignated-init] 308 | core_alloc_hevc_specific_seq_buffers, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/platform/vxe-vxd/decoder/core.c:308:26: note: (near initia= lization for 'std_specific_ops[11]') drivers/media/platform/vxe-vxd/decoder/core.c:308:26: error: initializat= ion of 'int (*)(struct core_stream_context *, struct vdecdd_pict_resint *)'= from incompatible pointer type 'int (*)(struct core_stream_context *, stru= ct vdecdd_seq_resint *, struct vxdio_mempool, struct core_seq_resinfo *)' = [-Werror=3Dincompatible-pointer-types] drivers/media/platform/vxe-vxd/decoder/core.c:308:26: note: (near initia= lization for 'std_specific_ops[11].free_picture_resource') drivers/media/platform/vxe-vxd/decoder/core.c:309:26: error: positional = initialization of field in 'struct' declared with 'designated_init' attribu= te [-Werror=3Ddesignated-init] 309 | core_free_hevc_sequence_resource, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/platform/vxe-vxd/decoder/core.c:309:26: note: (near initia= lization for 'std_specific_ops[11]') drivers/media/platform/vxe-vxd/decoder/core.c:310:26: error: positional = initialization of field in 'struct' declared with 'designated_init' attribu= te [-Werror=3Ddesignated-init] 310 | core_hevc_bufs_get_size, | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/media/platform/vxe-vxd/decoder/core.c:310:26: note: (near initia= lization for 'std_specific_ops[11]') drivers/media/platform/vxe-vxd/decoder/core.c:310:26: error: initializat= ion of 'int (*)(struct core_stream_context *, struct vdecdd_pict_resint *, = struct vxdio_mempool, struct core_pict_resinfo *)' from incompatible point= er type 'int (*)(struct core_stream_context *, const struct vdec_comsequ_hd= rinfo *, struct vdec_pict_size *, struct core_pict_bufsize_info *, struct c= ore_seq_resinfo *, unsigned char *)' [-Werror=3Dincompatible-pointer-types] drivers/media/platform/vxe-vxd/decoder/core.c:310:26: note: (near initia= lization for 'std_specific_ops[11].alloc_picture_buffers') drivers/media/platform/vxe-vxd/decoder/core.c:311:26: error: positional = initialization of field in 'struct' declared with 'designated_init' attribu= te [-Werror=3Ddesignated-init] 311 | core_is_hevc_stream_resource_suitable}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/platform/vxe-vxd/decoder/core.c:311:26: note: (near initia= lization for 'std_specific_ops[11]') drivers/media/platform/vxe-vxd/decoder/core.c:311:26: error: initializat= ion of 'int (*)(struct core_stream_context *, const struct vdec_comsequ_hdr= info *, struct vdec_pict_size *, struct core_pict_bufsize_info *, struct co= re_seq_resinfo *, unsigned char *)' from incompatible pointer type 'unsigne= d char (*)(struct core_pict_resinfo *, struct core_pict_resinfo *, struct c= ore_seq_resinfo *, struct core_seq_resinfo *)' [-Werror=3Dincompatible-poin= ter-types] drivers/media/platform/vxe-vxd/decoder/core.c:311:26: note: (near initia= lization for 'std_specific_ops[11].bufs_get_size') In file included from drivers/media/platform/vxe-vxd/decoder/vxd_props.h= :19, from drivers/media/platform/vxe-vxd/decoder/decoder.h:2= 9, from drivers/media/platform/vxe-vxd/decoder/core.h:20, from drivers/media/platform/vxe-vxd/decoder/core.c:16: drivers/media/platform/vxe-vxd/common/imgmmu.h:65:28: warning: 'VIRT_DIR= _IDX_MASK' defined but not used [-Wunused-const-variable=3D] 65 | static const unsigned long VIRT_DIR_IDX_MASK =3D (~((1 << MMU_DI= R_SHIFT) - 1)); | ^~~~~~~~~~~~~~~~~ drivers/media/platform/vxe-vxd/common/imgmmu.h:62:28: warning: 'VIRT_PAG= E_TBL_MASK' defined but not used [-Wunused-const-variable=3D] 62 | static const unsigned long VIRT_PAGE_TBL_MASK =3D | ^~~~~~~~~~~~~~~~~~ drivers/media/platform/vxe-vxd/common/imgmmu.h:60:28: warning: 'VIRT_PAG= E_OFF_MASK' defined but not used [-Wunused-const-variable=3D] 60 | static const unsigned long VIRT_PAGE_OFF_MASK =3D ((1 << MMU_PAG= E_SHIFT) - 1); | ^~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +307 drivers/media/platform/vxe-vxd/decoder/core.c ac39bb1fd9f20d Sidraya 2021-11-02 276 = ac39bb1fd9f20d Sidraya 2021-11-02 277 static int ac39bb1fd9f20d Sidraya 2021-11-02 278 core_common_bufs_getsize(struct cor= e_stream_context *core_str_ctx, ac39bb1fd9f20d Sidraya 2021-11-02 279 const struct vdec_comsequ_hdrin= fo *comseq_hdrinfo, ac39bb1fd9f20d Sidraya 2021-11-02 280 struct vdec_pict_size *max_pict= _size, ac39bb1fd9f20d Sidraya 2021-11-02 281 struct core_pict_bufsize_info = *size_info, ac39bb1fd9f20d Sidraya 2021-11-02 282 struct core_seq_resinfo *seq_r= es_info, unsigned char *res_needed); ac39bb1fd9f20d Sidraya 2021-11-02 283 = ac39bb1fd9f20d Sidraya 2021-11-02 284 static struct core_std_spec_operati= ons std_specific_ops[VDEC_STD_MAX - 1] =3D { ac39bb1fd9f20d Sidraya 2021-11-02 285 /* AllocPicture FreePicture Allo= cSeq FreeSeq BufsGetSize IsStreamResourceSuitable */ ac39bb1fd9f20d Sidraya 2021-11-02 286 /* MPEG2 */ { NULL, NULL, = NULL, NULL, NULL, NULL}, ac39bb1fd9f20d Sidraya 2021-11-02 287 /* MPEG4 */ { NULL, NULL, = NULL, NULL, NULL, NULL}, ac39bb1fd9f20d Sidraya 2021-11-02 288 /* H263 */ { NULL, NULL, = NULL, NULL, NULL, NULL}, ac39bb1fd9f20d Sidraya 2021-11-02 289 = ac39bb1fd9f20d Sidraya 2021-11-02 290 /* H264 */ { NULL, NULL, = NULL, NULL, core_common_bufs_getsize, NULL}, ac39bb1fd9f20d Sidraya 2021-11-02 291 = ac39bb1fd9f20d Sidraya 2021-11-02 292 /* VC1 */ { NULL, NULL, = NULL, NULL, NULL, NULL}, ac39bb1fd9f20d Sidraya 2021-11-02 293 = ac39bb1fd9f20d Sidraya 2021-11-02 294 /* AVS */ { NULL, NULL, = NULL, NULL, NULL, NULL}, ac39bb1fd9f20d Sidraya 2021-11-02 295 = ac39bb1fd9f20d Sidraya 2021-11-02 296 /* REAL */ { NULL, NULL, = NULL, NULL, NULL, NULL}, ac39bb1fd9f20d Sidraya 2021-11-02 297 = ac39bb1fd9f20d Sidraya 2021-11-02 298 /* JPEG */ { NULL, NULL, = NULL, NULL, NULL, NULL}, ac39bb1fd9f20d Sidraya 2021-11-02 299 = ac39bb1fd9f20d Sidraya 2021-11-02 300 /* VP6 */ { NULL, NULL, = NULL, NULL, NULL, NULL}, ac39bb1fd9f20d Sidraya 2021-11-02 301 = ac39bb1fd9f20d Sidraya 2021-11-02 302 /* VP8 */ { NULL, NULL, = NULL, NULL, NULL, NULL}, ac39bb1fd9f20d Sidraya 2021-11-02 303 = ac39bb1fd9f20d Sidraya 2021-11-02 304 /* SORENSON */ { NULL, NU= LL, NULL, NULL, NULL, NULL}, ac39bb1fd9f20d Sidraya 2021-11-02 305 #ifdef HAS_HEVC ac39bb1fd9f20d Sidraya 2021-11-02 306 /* HEVC */ { core_alloc_hevc_s= pecific_pict_buffers, ac39bb1fd9f20d Sidraya 2021-11-02 @307 core_free_hevc_picture_resource, ac39bb1fd9f20d Sidraya 2021-11-02 308 core_alloc_hevc_specific_seq_bu= ffers, ac39bb1fd9f20d Sidraya 2021-11-02 309 core_free_hevc_sequence_resourc= e, ac39bb1fd9f20d Sidraya 2021-11-02 310 core_hevc_bufs_get_size, ac39bb1fd9f20d Sidraya 2021-11-02 311 core_is_hevc_stream_resource_su= itable}, ac39bb1fd9f20d Sidraya 2021-11-02 312 #else ac39bb1fd9f20d Sidraya 2021-11-02 313 /* HEVC */ { NULL, NULL, = NULL, NULL, NULL, NULL}, ac39bb1fd9f20d Sidraya 2021-11-02 314 #endif ac39bb1fd9f20d Sidraya 2021-11-02 315 }; ac39bb1fd9f20d Sidraya 2021-11-02 316 = :::::: The code@line 307 was first introduced by commit :::::: ac39bb1fd9f20d9cd36801758ae378d0af521184 v4l:vxd-dec:Decoder Core Co= mponent :::::: 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 --===============8358534468858641042==--