tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: 52d269f32500581166246e0e494b2b62d979dba6
commit: 1dee2dc6478516fd89eb0a92c28dfcd5980f3f8e [51/243] CHROMIUM: media: mtk-vcodec:
Refactor get cap buffer and put cap buffer to disp flow
config: csky-randconfig-r031-20210420 (attached as .config)
compiler: csky-linux-gcc (GCC) 9.3.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 chrome-os
https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.4
git checkout 1dee2dc6478516fd89eb0a92c28dfcd5980f3f8e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=csky
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 >>):
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/preempt.h:11,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/linux/videodev2.h:59,
from include/media/videobuf2-v4l2.h:15,
from drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_stateless.c:3:
include/asm-generic/fixmap.h: In function 'fix_to_virt':
include/asm-generic/fixmap.h:32:19: warning: comparison of unsigned expression >= 0
is always true [-Wtype-limits]
32 | BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
| ^~
include/linux/compiler.h:397:9: note: in definition of macro
'__compiletime_assert'
397 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler.h:417:2: note: in expansion of macro
'_compiletime_assert'
417 | _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
include/asm-generic/fixmap.h:32:2: note: in expansion of macro 'BUILD_BUG_ON'
32 | BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
| ^~~~~~~~~~~~
drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_stateless.c: In function
'vb2ops_vdec_stateless_buf_queue':
>
drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_stateless.c:352:28: warning: variable
'dec_buf' set but not used [-Wunused-but-set-variable]
352 | struct
mtk_video_dec_buf *dec_buf;
| ^~~~~~~
vim +/dec_buf +352 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_stateless.c
347
348 static void vb2ops_vdec_stateless_buf_queue(struct vb2_buffer *vb)
349 {
350 struct mtk_vcodec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
351 struct vb2_v4l2_buffer *vb2_v4l2 = to_vb2_v4l2_buffer(vb);
352 struct mtk_video_dec_buf *dec_buf;
353
354 mtk_v4l2_debug(3, "[%d] (%d) id=%d, vb=%p",
355 ctx->id, vb->vb2_queue->type,
356 vb->index, vb);
357
358 dec_buf = container_of(vb2_v4l2, struct mtk_video_dec_buf, m2m_buf.vb);
359 mutex_lock(&ctx->lock);
360 v4l2_m2m_buf_queue(ctx->m2m_ctx, vb2_v4l2);
361 mutex_unlock(&ctx->lock);
362 if (vb->vb2_queue->type != V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE)
363 return;
364
365 mtk_v4l2_debug(3, "(%d) id=%d, bs=%p",
366 vb->vb2_queue->type, vb->index, dec_buf);
367
368 /* If an OUTPUT buffer, we may need to update the state */
369 if (ctx->state == MTK_STATE_INIT) {
370 ctx->state = MTK_STATE_HEADER;
371 mtk_v4l2_debug(1, "Init driver from init to header.");
372 } else {
373 mtk_v4l2_debug(3, "[%d] already init driver %d",
374 ctx->id, ctx->state);
375 }
376 }
377
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org