From: kernel test robot <lkp@intel.com>
To: Kalyan Thota <kalyan_t@codeaurora.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Rob Clark <robdclark@chromium.org>
Subject: drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c:460:23: warning: variable 'lm' set but not used
Date: Fri, 4 Sep 2020 11:35:24 +0800 [thread overview]
Message-ID: <202009041120.rLj97Ycq%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2953 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 59126901f200f5fc907153468b03c64e0081b6e6
commit: 4259ff7ae509ed880b3a7bb685972c3a3bf4b74b drm/msm/dpu: add support for pcc color block in dpu driver
date: 4 months ago
config: arm64-randconfig-r013-20200904 (attached as .config)
compiler: aarch64-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 checkout 4259ff7ae509ed880b3a7bb685972c3a3bf4b74b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c: In function '_dpu_crtc_setup_cp_blocks':
>> drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c:460:23: warning: variable 'lm' set but not used [-Wunused-but-set-variable]
460 | struct dpu_hw_mixer *lm;
| ^~
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4259ff7ae509ed880b3a7bb685972c3a3bf4b74b
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 4259ff7ae509ed880b3a7bb685972c3a3bf4b74b
vim +/lm +460 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c
452
453 static void _dpu_crtc_setup_cp_blocks(struct drm_crtc *crtc)
454 {
455 struct drm_crtc_state *state = crtc->state;
456 struct dpu_crtc_state *cstate = to_dpu_crtc_state(crtc->state);
457 struct dpu_crtc_mixer *mixer = cstate->mixers;
458 struct dpu_hw_pcc_cfg cfg;
459 struct dpu_hw_ctl *ctl;
> 460 struct dpu_hw_mixer *lm;
461 struct dpu_hw_dspp *dspp;
462 int i;
463
464
465 if (!state->color_mgmt_changed)
466 return;
467
468 for (i = 0; i < cstate->num_mixers; i++) {
469 ctl = mixer[i].lm_ctl;
470 lm = mixer[i].hw_lm;
471 dspp = mixer[i].hw_dspp;
472
473 if (!dspp || !dspp->ops.setup_pcc)
474 continue;
475
476 if (!state->ctm) {
477 dspp->ops.setup_pcc(dspp, NULL);
478 } else {
479 _dpu_crtc_get_pcc_coeff(state, &cfg);
480 dspp->ops.setup_pcc(dspp, &cfg);
481 }
482
483 mixer[i].flush_mask |= ctl->ops.get_bitmask_dspp(ctl,
484 mixer[i].hw_dspp->idx);
485
486 /* stage config flush mask */
487 ctl->ops.update_pending_flush(ctl, mixer[i].flush_mask);
488
489 DPU_DEBUG("lm %d, ctl %d, flush mask 0x%x\n",
490 mixer[i].hw_lm->idx - DSPP_0,
491 ctl->idx - CTL_0,
492 mixer[i].flush_mask);
493 }
494 }
495
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 35218 bytes --]
reply other threads:[~2020-09-04 3:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202009041120.rLj97Ycq%lkp@intel.com \
--to=lkp@intel.com \
--cc=kalyan_t@codeaurora.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robdclark@chromium.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®