tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: 1b71f6d620191293322fc574c20ed5130b794ac7
commit: 1ea1e179a23d9b3963a2aca7f7c9def0e6c38535 [48/67] CHROMIUM: media: mtk-vcodec:
Extract H264 common code
config: arm-randconfig-r024-20210416 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
6a18cc23efad410db48a3ccfc233d215de7d4cb9)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
git remote add chrome-os
https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.4
git checkout 1ea1e179a23d9b3963a2aca7f7c9def0e6c38535
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm
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/mtk-vcodec/vdec/vdec_h264_req_common.c:47:5: warning: format
specifies type 'long long' but the argument has type 'int' [-Wformat]
index, dpb->reference_ts);
^~~~~
include/linux/device.h:1755:32: note: expanded from macro 'dev_err'
_dev_err(dev, dev_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
1 warning generated.
vim +47 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_req_common.c
21
22 void mtk_vdec_h264_fill_dpb_info(struct mtk_vcodec_ctx *ctx,
23 struct slice_api_h264_decode_param *decode_params,
24 struct mtk_h264_dpb_info *h264_dpb_info)
25 {
26 struct vb2_queue *vq;
27 struct vb2_buffer *vb;
28 struct vb2_v4l2_buffer *vb2_v4l2;
29 int index;
30
31 vq = v4l2_m2m_get_vq(ctx->m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE);
32
33 for (index = 0; index < V4L2_H264_NUM_DPB_ENTRIES; index++) {
34 const struct slice_h264_dpb_entry *dpb;
35 int vb2_index;
36
37 dpb = &decode_params->dpb[index];
38 if (!(dpb->flags & V4L2_H264_DPB_ENTRY_FLAG_ACTIVE)) {
39 h264_dpb_info[index].reference_flag = 0;
40 continue;
41 }
42
43 vb2_index = vb2_find_timestamp(vq, dpb->reference_ts, 0);
44 if (vb2_index < 0) {
45 dev_err(&ctx->dev->plat_dev->dev,
46 "Reference invalid: dpb_index(%lld) reference_ts(%lld)",
47 index, dpb->reference_ts);
48 continue;
49 }
50
51 /* 1 for short term reference, 2 for long term reference */
52 if (!(dpb->flags & V4L2_H264_DPB_ENTRY_FLAG_LONG_TERM))
53 h264_dpb_info[index].reference_flag = 1;
54 else
55 h264_dpb_info[index].reference_flag = 2;
56
57 vb = vq->bufs[vb2_index];
58 vb2_v4l2 = container_of(vb, struct vb2_v4l2_buffer, vb2_buf);
59 h264_dpb_info[index].field = vb2_v4l2->field;
60
61 h264_dpb_info[index].y_dma_addr =
62 vb2_dma_contig_plane_dma_addr(vb, 0);
63 if (ctx->q_data[MTK_Q_DATA_DST].fmt->num_planes == 2)
64 h264_dpb_info[index].c_dma_addr =
65 vb2_dma_contig_plane_dma_addr(vb, 1);
66 else
67 h264_dpb_info[index].c_dma_addr =
68 h264_dpb_info[index].y_dma_addr +
69 ctx->picinfo.fb_sz[0];
70 }
71 }
72
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org