include/linux/compiler_types.h:322:45: error: call to '__compiletime_assert_355' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct prestera_msg_event_fdb) != 20
by kernel test robot
Hi Volodymyr,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 112450df61b7373529b0fe4c122ad13b89d80a8a
commit: bb5dbf2cc64d5cfa696765944c784c0010c48ae8 net: marvell: prestera: add firmware v4.0 support
date: 3 months ago
config: arm-randconfig-r006-20220115 (https://download.01.org/0day-ci/archive/20220115/202201150856.uvqiyjjG-lk...)
compiler: arm-linux-gnueabi-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
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout bb5dbf2cc64d5cfa696765944c784c0010c48ae8
# 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=arm SHELL=/bin/bash drivers/net/ethernet/marvell/prestera/
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 >>):
drivers/net/ethernet/marvell/prestera/prestera_hw.c:284:1: warning: alignment 1 of 'union prestera_msg_port_param' is less than 4 [-Wpacked-not-aligned]
284 | } __packed;
| ^
In file included from <command-line>:
In function 'prestera_hw_build_tests',
inlined from 'prestera_hw_switch_init' at drivers/net/ethernet/marvell/prestera/prestera_hw.c:788:2:
>> include/linux/compiler_types.h:322:45: error: call to '__compiletime_assert_355' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct prestera_msg_event_fdb) != 20
322 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:303:25: note: in definition of macro '__compiletime_assert'
303 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:322:9: note: in expansion of macro '_compiletime_assert'
322 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/net/ethernet/marvell/prestera/prestera_hw.c:531:9: note: in expansion of macro 'BUILD_BUG_ON'
531 | BUILD_BUG_ON(sizeof(struct prestera_msg_event_fdb) != 20);
| ^~~~~~~~~~~~
vim +/__compiletime_assert_355 +322 include/linux/compiler_types.h
eb5c2d4b45e3d2 Will Deacon 2020-07-21 308
eb5c2d4b45e3d2 Will Deacon 2020-07-21 309 #define _compiletime_assert(condition, msg, prefix, suffix) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 310 __compiletime_assert(condition, msg, prefix, suffix)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 311
eb5c2d4b45e3d2 Will Deacon 2020-07-21 312 /**
eb5c2d4b45e3d2 Will Deacon 2020-07-21 313 * compiletime_assert - break build and emit msg if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 314 * @condition: a compile-time constant condition to check
eb5c2d4b45e3d2 Will Deacon 2020-07-21 315 * @msg: a message to emit if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 316 *
eb5c2d4b45e3d2 Will Deacon 2020-07-21 317 * In tradition of POSIX assert, this macro will break the build if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 318 * supplied condition is *false*, emitting the supplied error message if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 319 * compiler has support to do so.
eb5c2d4b45e3d2 Will Deacon 2020-07-21 320 */
eb5c2d4b45e3d2 Will Deacon 2020-07-21 321 #define compiletime_assert(condition, msg) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 @322 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 323
:::::: The code at line 322 was first introduced by commit
:::::: eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5 compiler.h: Move compiletime_assert() macros into compiler_types.h
:::::: TO: Will Deacon <will(a)kernel.org>
:::::: CC: Will Deacon <will(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
[ti:ti-rt-linux-5.10.y 9999/9999] 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 *...
by kernel test robot
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
8 months, 1 week
[peterz-queue:perf/wip.self 9/9] arch/x86/events/core.c:2725:48: error: 'PERF_X86_EVENT_RDPMC_ALLOWED' undeclared; did you mean 'PERF_X86_EVENT_AUTO_RELOAD'?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git perf/wip.self
head: 1b4635e33f629e20b5bbecd62d27c9191d5ec390
commit: 1b4635e33f629e20b5bbecd62d27c9191d5ec390 [9/9] perf: Better track self-monitoring events
config: x86_64-randconfig-a011 (https://download.01.org/0day-ci/archive/20220115/202201150505.POFRV19D-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?...
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue perf/wip.self
git checkout 1b4635e33f629e20b5bbecd62d27c9191d5ec390
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 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 >>):
arch/x86/events/core.c: In function 'arch_perf_update_userpage':
>> arch/x86/events/core.c:2725:48: error: 'PERF_X86_EVENT_RDPMC_ALLOWED' undeclared (first use in this function); did you mean 'PERF_X86_EVENT_AUTO_RELOAD'?
2725 | userpg->cap_user_rdpmc = !!(event->hw.flags & PERF_X86_EVENT_RDPMC_ALLOWED);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| PERF_X86_EVENT_AUTO_RELOAD
arch/x86/events/core.c:2725:48: note: each undeclared identifier is reported only once for each function it appears in
vim +2725 arch/x86/events/core.c
2718
2719 void arch_perf_update_userpage(struct perf_event *event,
2720 struct perf_event_mmap_page *userpg, u64 now)
2721 {
2722 struct cyc2ns_data data;
2723 u64 offset;
2724
> 2725 userpg->cap_user_rdpmc = !!(event->hw.flags & PERF_X86_EVENT_RDPMC_ALLOWED);
2726 userpg->pmc_width = x86_pmu.cntval_bits;
2727
2728 if (unlikely(!using_native_sched_clock() || !sched_clock_stable())) {
2729 userpg->cap_user_time = 0;
2730 userpg->cap_user_time_zero = 0;
2731 return;
2732 }
2733
2734 /* already set the time fields before */
2735 if (likely(userpg->cap_user_time))
2736 return;
2737
2738 cyc2ns_read_begin(&data);
2739
2740 offset = data.cyc2ns_offset + __sched_clock_offset;
2741
2742 /*
2743 * Internal timekeeping for enabled/running/stopped times
2744 * is always in the local_clock domain.
2745 */
2746 userpg->cap_user_time = 1;
2747 userpg->time_mult = data.cyc2ns_mul;
2748 userpg->time_shift = data.cyc2ns_shift;
2749 userpg->time_offset = offset - now;
2750
2751 /*
2752 * cap_user_time_zero doesn't make sense when we're using a different
2753 * time base for the records.
2754 */
2755 if (!event->attr.use_clockid) {
2756 userpg->cap_user_time_zero = 1;
2757 userpg->time_zero = offset;
2758 }
2759
2760 cyc2ns_read_end();
2761 }
2762
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
[hverkuil-media-tree:for-v5.18f 76/82] drivers/media/platform/aspeed-video.c:977:5: warning: format specifies type 'unsigned int' but the argument has type 'dma_addr_t' (aka 'unsigned long long')
by kernel test robot
tree: git://linuxtv.org/hverkuil/media_tree.git for-v5.18f
head: 97dd85f0caf1ad96c275147583c46f8ee12308fc
commit: 63c049607882d11ee1cce0c739113c8dfd7fed02 [76/82] media: aspeed: add more debug log messages
config: x86_64-randconfig-a012 (https://download.01.org/0day-ci/archive/20220115/202201150524.D0pO65rp-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 82c8aca93488730ce8f66101e0f3538f14b551dd)
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 hverkuil-media-tree git://linuxtv.org/hverkuil/media_tree.git
git fetch --no-tags hverkuil-media-tree for-v5.18f
git checkout 63c049607882d11ee1cce0c739113c8dfd7fed02
# 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=x86_64 SHELL=/bin/bash drivers/media/platform/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/media/platform/aspeed-video.c:977:5: warning: format specifies type 'unsigned int' but the argument has type 'dma_addr_t' (aka 'unsigned long long') [-Wformat]
video->srcs[0].dma, video->srcs[0].size);
^~~~~~~~~~~~~~~~~~
include/media/v4l2-common.h:74:42: note: expanded from macro 'v4l2_dbg'
v4l2_printk(KERN_DEBUG, dev, fmt , ## arg); \
~~~ ^~~
include/media/v4l2-common.h:58:44: note: expanded from macro 'v4l2_printk'
printk(level "%s: " fmt, (dev)->name , ## arg)
~~~ ^~~
include/linux/printk.h:450:60: note: expanded from macro 'printk'
#define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/printk.h:422:19: note: expanded from macro 'printk_index_wrap'
_p_func(_fmt, ##__VA_ARGS__); \
~~~~ ^~~~~~~~~~~
drivers/media/platform/aspeed-video.c:979:5: warning: format specifies type 'unsigned int' but the argument has type 'dma_addr_t' (aka 'unsigned long long') [-Wformat]
video->srcs[1].dma, video->srcs[1].size);
^~~~~~~~~~~~~~~~~~
include/media/v4l2-common.h:74:42: note: expanded from macro 'v4l2_dbg'
v4l2_printk(KERN_DEBUG, dev, fmt , ## arg); \
~~~ ^~~
include/media/v4l2-common.h:58:44: note: expanded from macro 'v4l2_printk'
printk(level "%s: " fmt, (dev)->name , ## arg)
~~~ ^~~
include/linux/printk.h:450:60: note: expanded from macro 'printk'
#define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/printk.h:422:19: note: expanded from macro 'printk_index_wrap'
_p_func(_fmt, ##__VA_ARGS__); \
~~~~ ^~~~~~~~~~~
drivers/media/platform/aspeed-video.c:1806:25: warning: format specifies type 'unsigned int' but the argument has type 'dma_addr_t' (aka 'unsigned long long') [-Wformat]
VE_JPEG_HEADER_SIZE, video->jpeg.dma);
^~~~~~~~~~~~~~~
include/linux/dev_printk.h:150:67: note: expanded from macro 'dev_info'
dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
_p_func(dev, fmt, ##__VA_ARGS__); \
~~~ ^~~~~~~~~~~
3 warnings generated.
vim +977 drivers/media/platform/aspeed-video.c
916
917 static void aspeed_video_set_resolution(struct aspeed_video *video)
918 {
919 struct v4l2_bt_timings *act = &video->active_timings;
920 unsigned int size = act->width * act->height;
921
922 /* Set capture/compression frame sizes */
923 aspeed_video_calc_compressed_size(video, size);
924
925 if (video->active_timings.width == 1680) {
926 /*
927 * This is a workaround to fix a silicon bug on A1 and A2
928 * revisions. Since it doesn't break capturing operation of
929 * other revisions, use it for all revisions without checking
930 * the revision ID. It picked 1728 which is a very next
931 * 64-pixels aligned value to 1680 to minimize memory bandwidth
932 * and to get better access speed from video engine.
933 */
934 aspeed_video_write(video, VE_CAP_WINDOW,
935 1728 << 16 | act->height);
936 size += (1728 - 1680) * video->active_timings.height;
937 } else {
938 aspeed_video_write(video, VE_CAP_WINDOW,
939 act->width << 16 | act->height);
940 }
941 aspeed_video_write(video, VE_COMP_WINDOW,
942 act->width << 16 | act->height);
943 aspeed_video_write(video, VE_SRC_SCANLINE_OFFSET, act->width * 4);
944
945 /* Don't use direct mode below 1024 x 768 (irqs don't fire) */
946 if (size < DIRECT_FETCH_THRESHOLD) {
947 v4l2_dbg(1, debug, &video->v4l2_dev, "Capture: Sync Mode\n");
948 aspeed_video_write(video, VE_TGS_0,
949 FIELD_PREP(VE_TGS_FIRST,
950 video->frame_left - 1) |
951 FIELD_PREP(VE_TGS_LAST,
952 video->frame_right));
953 aspeed_video_write(video, VE_TGS_1,
954 FIELD_PREP(VE_TGS_FIRST, video->frame_top) |
955 FIELD_PREP(VE_TGS_LAST,
956 video->frame_bottom + 1));
957 aspeed_video_update(video, VE_CTRL, 0, VE_CTRL_INT_DE);
958 } else {
959 v4l2_dbg(1, debug, &video->v4l2_dev, "Capture: Direct Mode\n");
960 aspeed_video_update(video, VE_CTRL, 0, VE_CTRL_DIRECT_FETCH);
961 }
962
963 size *= 4;
964
965 if (size != video->srcs[0].size) {
966 if (video->srcs[0].size)
967 aspeed_video_free_buf(video, &video->srcs[0]);
968 if (video->srcs[1].size)
969 aspeed_video_free_buf(video, &video->srcs[1]);
970
971 if (!aspeed_video_alloc_buf(video, &video->srcs[0], size))
972 goto err_mem;
973 if (!aspeed_video_alloc_buf(video, &video->srcs[1], size))
974 goto err_mem;
975
976 v4l2_dbg(1, debug, &video->v4l2_dev, "src buf0 addr(%#x) size(%d)\n",
> 977 video->srcs[0].dma, video->srcs[0].size);
978 v4l2_dbg(1, debug, &video->v4l2_dev, "src buf1 addr(%#x) size(%d)\n",
979 video->srcs[1].dma, video->srcs[1].size);
980 aspeed_video_write(video, VE_SRC0_ADDR, video->srcs[0].dma);
981 aspeed_video_write(video, VE_SRC1_ADDR, video->srcs[1].dma);
982 }
983
984 return;
985
986 err_mem:
987 dev_err(video->dev, "Failed to allocate source buffers\n");
988
989 if (video->srcs[0].size)
990 aspeed_video_free_buf(video, &video->srcs[0]);
991 }
992
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
[peterz-queue:perf/wip.self 9/9] arch/x86/events/core.c:2725:48: error: use of undeclared identifier 'PERF_X86_EVENT_RDPMC_ALLOWED'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git perf/wip.self
head: 1b4635e33f629e20b5bbecd62d27c9191d5ec390
commit: 1b4635e33f629e20b5bbecd62d27c9191d5ec390 [9/9] perf: Better track self-monitoring events
config: x86_64-randconfig-a012 (https://download.01.org/0day-ci/archive/20220115/202201150418.32fAKxxq-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 82c8aca93488730ce8f66101e0f3538f14b551dd)
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
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?...
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue perf/wip.self
git checkout 1b4635e33f629e20b5bbecd62d27c9191d5ec390
# 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=x86_64 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 >>):
>> arch/x86/events/core.c:2725:48: error: use of undeclared identifier 'PERF_X86_EVENT_RDPMC_ALLOWED'
userpg->cap_user_rdpmc = !!(event->hw.flags & PERF_X86_EVENT_RDPMC_ALLOWED);
^
1 error generated.
vim +/PERF_X86_EVENT_RDPMC_ALLOWED +2725 arch/x86/events/core.c
2718
2719 void arch_perf_update_userpage(struct perf_event *event,
2720 struct perf_event_mmap_page *userpg, u64 now)
2721 {
2722 struct cyc2ns_data data;
2723 u64 offset;
2724
> 2725 userpg->cap_user_rdpmc = !!(event->hw.flags & PERF_X86_EVENT_RDPMC_ALLOWED);
2726 userpg->pmc_width = x86_pmu.cntval_bits;
2727
2728 if (unlikely(!using_native_sched_clock() || !sched_clock_stable())) {
2729 userpg->cap_user_time = 0;
2730 userpg->cap_user_time_zero = 0;
2731 return;
2732 }
2733
2734 /* already set the time fields before */
2735 if (likely(userpg->cap_user_time))
2736 return;
2737
2738 cyc2ns_read_begin(&data);
2739
2740 offset = data.cyc2ns_offset + __sched_clock_offset;
2741
2742 /*
2743 * Internal timekeeping for enabled/running/stopped times
2744 * is always in the local_clock domain.
2745 */
2746 userpg->cap_user_time = 1;
2747 userpg->time_mult = data.cyc2ns_mul;
2748 userpg->time_shift = data.cyc2ns_shift;
2749 userpg->time_offset = offset - now;
2750
2751 /*
2752 * cap_user_time_zero doesn't make sense when we're using a different
2753 * time base for the records.
2754 */
2755 if (!event->attr.use_clockid) {
2756 userpg->cap_user_time_zero = 1;
2757 userpg->time_zero = offset;
2758 }
2759
2760 cyc2ns_read_end();
2761 }
2762
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week