All of lore.kernel.org
 help / color / mirror / Atom feed
* [ti:ti-rt-linux-5.10.y 9823/9999] drivers/media/platform/vxe-vxd/decoder/core.c:311:26: error: initialization of 'int (*)(struct core_stream_context *, struct vdecdd_seq_resint *, struct vxdio_mempool, struct core_seq_resinfo *)' from incompatible pointer type 'unsigned char (*)(struct c...
@ 2022-01-22 15:46 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-01-22 15:46 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 16394 bytes --]

tree:   git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.10.y
head:   d19d8f329cd20e1e2d14f30ed08d6a1164e6e9d9
commit: a33d1db14eb5c72031aaefc0bfbad114e3415a02 [9823/9999] net/socket: Fix compilation error on non-ARM builds
config: mips-allyesconfig (https://download.01.org/0day-ci/archive/20220122/202201222322.Av18AQiP-lkp(a)intel.com/config)
compiler: mips-linux-gcc (GCC) 11.2.0
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
        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 a33d1db14eb5c72031aaefc0bfbad114e3415a02
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

   include/linux/stddef.h:8:14: note: (near initialization for 'std_specific_ops[10].<anonymous>')
       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 in 'struct' declared with 'designated_init' attribute [-Werror=designated-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_specific_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 in 'struct' declared with 'designated_init' attribute [-Werror=designated-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_specific_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 in 'struct' declared with 'designated_init' attribute [-Werror=designated-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_specific_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 in 'struct' declared with 'designated_init' attribute [-Werror=designated-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_specific_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 in 'struct' declared with 'designated_init' attribute [-Werror=designated-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_specific_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' attribute [-Werror=designated-init]
     306 |         /* HEVC     */ { core_alloc_hevc_specific_pict_buffers,
         |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/media/platform/vxe-vxd/decoder/core.c:306:26: note: (near initialization for 'std_specific_ops[11]')
   drivers/media/platform/vxe-vxd/decoder/core.c:306:26: error: invalid initializer
   drivers/media/platform/vxe-vxd/decoder/core.c:306:26: note: (near initialization for 'std_specific_ops[11].<anonymous>')
   drivers/media/platform/vxe-vxd/decoder/core.c:307:26: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
     307 |                          core_free_hevc_picture_resource,
         |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/media/platform/vxe-vxd/decoder/core.c:307:26: note: (near initialization for 'std_specific_ops[11]')
   drivers/media/platform/vxe-vxd/decoder/core.c:307:26: error: initialization of 'int (*)(struct core_stream_context *, const struct vdec_comsequ_hdrinfo *, struct vdec_pict_size *, struct core_pict_bufsize_info *, struct core_seq_resinfo *, unsigned char *)' from incompatible pointer type 'int (*)(struct core_stream_context *, struct vdecdd_pict_resint *)' [-Werror=incompatible-pointer-types]
   drivers/media/platform/vxe-vxd/decoder/core.c:307:26: note: (near initialization for 'std_specific_ops[11].bufs_get_size')
   drivers/media/platform/vxe-vxd/decoder/core.c:308:26: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
     308 |                          core_alloc_hevc_specific_seq_buffers,
         |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/media/platform/vxe-vxd/decoder/core.c:308:26: note: (near initialization for 'std_specific_ops[11]')
   drivers/media/platform/vxe-vxd/decoder/core.c:308:26: error: initialization of 'unsigned char (*)(struct core_pict_resinfo *, struct core_pict_resinfo *, struct core_seq_resinfo *, struct core_seq_resinfo *)' from incompatible pointer type 'int (*)(struct core_stream_context *, struct vdecdd_seq_resint *, struct vxdio_mempool,  struct core_seq_resinfo *)' [-Werror=incompatible-pointer-types]
   drivers/media/platform/vxe-vxd/decoder/core.c:308:26: note: (near initialization for 'std_specific_ops[11].is_stream_resource_suitable')
   drivers/media/platform/vxe-vxd/decoder/core.c:309:26: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
     309 |                          core_free_hevc_sequence_resource,
         |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/media/platform/vxe-vxd/decoder/core.c:309:26: note: (near initialization for 'std_specific_ops[11]')
   drivers/media/platform/vxe-vxd/decoder/core.c:309:26: error: initialization of 'int (*)(struct core_stream_context *, struct vdecdd_pict_resint *, struct vxdio_mempool,  struct core_pict_resinfo *)' from incompatible pointer type 'int (*)(struct core_stream_context *, struct vdecdd_seq_resint *)' [-Werror=incompatible-pointer-types]
   drivers/media/platform/vxe-vxd/decoder/core.c:309:26: note: (near initialization for 'std_specific_ops[11].alloc_picture_buffers')
   drivers/media/platform/vxe-vxd/decoder/core.c:310:26: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
     310 |                          core_hevc_bufs_get_size,
         |                          ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/media/platform/vxe-vxd/decoder/core.c:310:26: note: (near initialization for 'std_specific_ops[11]')
   drivers/media/platform/vxe-vxd/decoder/core.c:310:26: error: initialization of 'int (*)(struct core_stream_context *, struct vdecdd_pict_resint *)' from incompatible pointer type 'int (*)(struct core_stream_context *, const struct vdec_comsequ_hdrinfo *, struct vdec_pict_size *, struct core_pict_bufsize_info *, struct core_seq_resinfo *, unsigned char *)' [-Werror=incompatible-pointer-types]
   drivers/media/platform/vxe-vxd/decoder/core.c:310:26: note: (near initialization for 'std_specific_ops[11].free_picture_resource')
   drivers/media/platform/vxe-vxd/decoder/core.c:311:26: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
     311 |                          core_is_hevc_stream_resource_suitable},
         |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/media/platform/vxe-vxd/decoder/core.c:311:26: note: (near initialization for 'std_specific_ops[11]')
>> drivers/media/platform/vxe-vxd/decoder/core.c:311:26: error: initialization of 'int (*)(struct core_stream_context *, struct vdecdd_seq_resint *, struct vxdio_mempool,  struct core_seq_resinfo *)' from incompatible pointer type 'unsigned char (*)(struct core_pict_resinfo *, struct core_pict_resinfo *, struct core_seq_resinfo *, struct core_seq_resinfo *)' [-Werror=incompatible-pointer-types]
   drivers/media/platform/vxe-vxd/decoder/core.c:311:26: note: (near initialization for 'std_specific_ops[11].alloc_sequence_buffers')
   In file included from drivers/media/platform/vxe-vxd/decoder/vxd_props.h:19,
                    from drivers/media/platform/vxe-vxd/decoder/decoder.h:29,
                    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=]
      65 | static const unsigned long VIRT_DIR_IDX_MASK = (~((1 << MMU_DIR_SHIFT) - 1));
         |                            ^~~~~~~~~~~~~~~~~
   drivers/media/platform/vxe-vxd/common/imgmmu.h:62:28: warning: 'VIRT_PAGE_TBL_MASK' defined but not used [-Wunused-const-variable=]
      62 | static const unsigned long VIRT_PAGE_TBL_MASK =
         |                            ^~~~~~~~~~~~~~~~~~
   drivers/media/platform/vxe-vxd/common/imgmmu.h:60:28: warning: 'VIRT_PAGE_OFF_MASK' defined but not used [-Wunused-const-variable=]
      60 | static const unsigned long VIRT_PAGE_OFF_MASK = ((1 << MMU_PAGE_SHIFT) - 1);
         |                            ^~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +311 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 core_stream_context *core_str_ctx,
ac39bb1fd9f20d Sidraya 2021-11-02  279  			 const struct vdec_comsequ_hdrinfo *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_res_info, unsigned char *res_needed);
ac39bb1fd9f20d Sidraya 2021-11-02  283  
ac39bb1fd9f20d Sidraya 2021-11-02  284  static struct core_std_spec_operations std_specific_ops[VDEC_STD_MAX - 1] = {
ac39bb1fd9f20d Sidraya 2021-11-02  285  	/* AllocPicture  FreePicture  AllocSeq   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,       NULL,      NULL,   NULL,  NULL,      NULL},
ac39bb1fd9f20d Sidraya 2021-11-02  305  #ifdef HAS_HEVC
ac39bb1fd9f20d Sidraya 2021-11-02  306  	/* HEVC     */ { core_alloc_hevc_specific_pict_buffers,
ac39bb1fd9f20d Sidraya 2021-11-02  307  			 core_free_hevc_picture_resource,
ac39bb1fd9f20d Sidraya 2021-11-02  308  			 core_alloc_hevc_specific_seq_buffers,
ac39bb1fd9f20d Sidraya 2021-11-02  309  			 core_free_hevc_sequence_resource,
ac39bb1fd9f20d Sidraya 2021-11-02  310  			 core_hevc_bufs_get_size,
ac39bb1fd9f20d Sidraya 2021-11-02 @311  			 core_is_hevc_stream_resource_suitable},
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 311 was first introduced by commit
:::::: ac39bb1fd9f20d9cd36801758ae378d0af521184 v4l:vxd-dec:Decoder Core Component

:::::: TO: Sidraya <sidraya.bj@pathpartnertech.com>
:::::: CC: Praneeth Bajjuri <praneeth@ti.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-22 15:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-22 15:46 [ti:ti-rt-linux-5.10.y 9823/9999] drivers/media/platform/vxe-vxd/decoder/core.c:311:26: error: initialization of 'int (*)(struct core_stream_context *, struct vdecdd_seq_resint *, struct vxdio_mempool, struct core_seq_resinfo *)' from incompatible pointer type 'unsigned char (*)(struct c kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.