tree:
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.10.y
head: a66a36897175b55cf45258e13a77c7253876d2f5
commit: a66a36897175b55cf45258e13a77c7253876d2f5 [9999/9999] Merged TI feature
ti_linux_base_rt into ti-rt-linux-5.10.y
config: riscv-allyesconfig
(
https://download.01.org/0day-ci/archive/20220115/202201150655.cCH0pVOa-lk...)
compiler: riscv64-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 a66a36897175b55cf45258e13a77c7253876d2f5
# 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=riscv SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
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: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_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 *, struct vdecdd_pict_resint *, struct vxdio_mempool,
struct core_pict_resinfo *)' 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].alloc_picture_buffers')
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 'int
(*)(struct core_stream_context *, struct vdecdd_seq_resint *)' 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].free_sequence_resource')
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 *, 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_seq_resint *)'
[-Werror=incompatible-pointer-types]
drivers/media/platform/vxe-vxd/decoder/core.c:309:26: note: (near initialization for
'std_specific_ops[11].bufs_get_size')
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_seq_resint *, struct vxdio_mempool,
struct core_seq_resinfo *)' 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].alloc_sequence_buffers')
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]')
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 +309 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 at line 309 was first introduced by commit
:::::: ac39bb1fd9f20d9cd36801758ae378d0af521184 v4l:vxd-dec:Decoder Core Component
:::::: TO: Sidraya <sidraya.bj(a)pathpartnertech.com>
:::::: CC: Praneeth Bajjuri <praneeth(a)ti.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org