All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <rong.a.chen@intel.com>
To: kbuild-all@lists.01.org
Subject: [chrome-os:chromeos-5.4 12/42] drivers/media/platform/mtk-vcodec/vdec/vdec_h264_req_if.c:580:2: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing
Date: Wed, 24 Mar 2021 15:06:50 +0800	[thread overview]
Message-ID: <20210324070649.GB4176174@shao2-debian> (raw)

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

tree:   https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head:   21ca1f912dcdfbfd6818d3b1e57a106c2e82dc56
commit: 5fa56a01339db0586f27519d81aa226f1bb49f03 [12/42] FROMLIST: media: mtk-vcodec: vdec: support stateless H.264 decoding
compiler: ia64-linux-gcc (GCC) 9.3.0

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


cppcheck possible warnings: (new ones prefixed by >>, may not real problems)

>> drivers/media/platform/mtk-vcodec/vdec/vdec_h264_req_if.c:580:2: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg]
    pic = &ctx->picinfo;
    ^

vim +580 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_req_if.c

5fa56a01339db0 Yunfei Dong 2021-02-26  567  
5fa56a01339db0 Yunfei Dong 2021-02-26  568  static void get_pic_info(struct vdec_h264_slice_inst *inst,
5fa56a01339db0 Yunfei Dong 2021-02-26  569  			 struct vdec_pic_info *pic)
5fa56a01339db0 Yunfei Dong 2021-02-26  570  {
5fa56a01339db0 Yunfei Dong 2021-02-26  571  	struct mtk_vcodec_ctx *ctx = inst->ctx;
5fa56a01339db0 Yunfei Dong 2021-02-26  572  
5fa56a01339db0 Yunfei Dong 2021-02-26  573  	ctx->picinfo.buf_w = (ctx->picinfo.pic_w + 15) & 0xFFFFFFF0;
5fa56a01339db0 Yunfei Dong 2021-02-26  574  	ctx->picinfo.buf_h = (ctx->picinfo.pic_h + 31) & 0xFFFFFFE0;
5fa56a01339db0 Yunfei Dong 2021-02-26  575  	ctx->picinfo.fb_sz[0] = ctx->picinfo.buf_w * ctx->picinfo.buf_h;
5fa56a01339db0 Yunfei Dong 2021-02-26  576  	ctx->picinfo.fb_sz[1] = ctx->picinfo.fb_sz[0] >> 1;
5fa56a01339db0 Yunfei Dong 2021-02-26  577  	inst->vsi_ctx.dec.cap_num_planes =
5fa56a01339db0 Yunfei Dong 2021-02-26  578  		ctx->q_data[MTK_Q_DATA_DST].fmt->num_planes;
5fa56a01339db0 Yunfei Dong 2021-02-26  579  
5fa56a01339db0 Yunfei Dong 2021-02-26 @580  	pic = &ctx->picinfo;
5fa56a01339db0 Yunfei Dong 2021-02-26  581  	mtk_vcodec_debug(inst, "pic(%d, %d), buf(%d, %d)",
5fa56a01339db0 Yunfei Dong 2021-02-26  582  			 ctx->picinfo.pic_w, ctx->picinfo.pic_h,
5fa56a01339db0 Yunfei Dong 2021-02-26  583  			 ctx->picinfo.buf_w, ctx->picinfo.buf_h);
5fa56a01339db0 Yunfei Dong 2021-02-26  584  	mtk_vcodec_debug(inst, "Y/C(%d, %d)", ctx->picinfo.fb_sz[0],
5fa56a01339db0 Yunfei Dong 2021-02-26  585  		ctx->picinfo.fb_sz[1]);
5fa56a01339db0 Yunfei Dong 2021-02-26  586  
5fa56a01339db0 Yunfei Dong 2021-02-26  587  	if ((ctx->last_decoded_picinfo.pic_w != ctx->picinfo.pic_w) ||
5fa56a01339db0 Yunfei Dong 2021-02-26  588  		(ctx->last_decoded_picinfo.pic_h != ctx->picinfo.pic_h)) {
5fa56a01339db0 Yunfei Dong 2021-02-26  589  		inst->vsi_ctx.dec.resolution_changed = true;
5fa56a01339db0 Yunfei Dong 2021-02-26  590  		if ((ctx->last_decoded_picinfo.buf_w != ctx->picinfo.buf_w) ||
5fa56a01339db0 Yunfei Dong 2021-02-26  591  			(ctx->last_decoded_picinfo.buf_h != ctx->picinfo.buf_h))
5fa56a01339db0 Yunfei Dong 2021-02-26  592  			inst->vsi_ctx.dec.realloc_mv_buf = true;
5fa56a01339db0 Yunfei Dong 2021-02-26  593  
5fa56a01339db0 Yunfei Dong 2021-02-26  594  		mtk_v4l2_debug(1, "ResChg: (%d %d) : old(%d, %d) -> new(%d, %d)",
5fa56a01339db0 Yunfei Dong 2021-02-26  595  			inst->vsi_ctx.dec.resolution_changed,
5fa56a01339db0 Yunfei Dong 2021-02-26  596  			inst->vsi_ctx.dec.realloc_mv_buf,
5fa56a01339db0 Yunfei Dong 2021-02-26  597  			ctx->last_decoded_picinfo.pic_w,
5fa56a01339db0 Yunfei Dong 2021-02-26  598  			ctx->last_decoded_picinfo.pic_h,
5fa56a01339db0 Yunfei Dong 2021-02-26  599  			ctx->picinfo.pic_w, ctx->picinfo.pic_h);
5fa56a01339db0 Yunfei Dong 2021-02-26  600  	}
5fa56a01339db0 Yunfei Dong 2021-02-26  601  }
5fa56a01339db0 Yunfei Dong 2021-02-26  602  

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

             reply	other threads:[~2021-03-24  7:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-24  7:06 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-03-24  8:17 [chrome-os:chromeos-5.4 12/42] drivers/media/platform/mtk-vcodec/vdec/vdec_h264_req_if.c:580:2: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing Dan Carpenter
2021-03-24  6:54 kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210324070649.GB4176174@shao2-debian \
    --to=rong.a.chen@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.