* [drm-msm:msm-next-staging 99/108] drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c:410:13: warning: variable 'refcount' set but not used
@ 2022-04-28 7:15 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-04-28 7:15 UTC (permalink / raw)
To: Abhinav Kumar; +Cc: kbuild-all, linux-kernel, Dmitry Baryshkov
tree: https://gitlab.freedesktop.org/drm/msm.git msm-next-staging
head: d2dc68276133362f021bc8d429433b5818826c81
commit: 0ce51f19453e2f901c6f6c0f725d1f397228970f [99/108] drm/msm/dpu: introduce the dpu_encoder_phys_* for writeback
config: arc-allmodconfig (https://download.01.org/0day-ci/archive/20220428/202204281543.XFvZfER7-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 11.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 drm-msm https://gitlab.freedesktop.org/drm/msm.git
git fetch --no-tags drm-msm msm-next-staging
git checkout 0ce51f19453e2f901c6f6c0f725d1f397228970f
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash drivers/gpu/drm/msm/
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_encoder_phys_wb.c: In function 'dpu_encoder_phys_wb_irq_ctrl':
>> drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c:410:13: warning: variable 'refcount' set but not used [-Wunused-but-set-variable]
410 | int refcount;
| ^~~~~~~~
vim +/refcount +410 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c
407
408 struct dpu_encoder_phys_wb *wb_enc = to_dpu_encoder_phys_wb(phys);
409 int ret = 0;
> 410 int refcount;
411
412 refcount = atomic_read(&wb_enc->wbirq_refcount);
413
414 if (enable && atomic_inc_return(&wb_enc->wbirq_refcount) == 1) {
415 dpu_core_irq_register_callback(phys->dpu_kms,
416 phys->irq[INTR_IDX_WB_DONE], dpu_encoder_phys_wb_done_irq, phys);
417 if (ret)
418 atomic_dec_return(&wb_enc->wbirq_refcount);
419 } else if (!enable &&
420 atomic_dec_return(&wb_enc->wbirq_refcount) == 0) {
421 dpu_core_irq_unregister_callback(phys->dpu_kms, phys->irq[INTR_IDX_WB_DONE]);
422 if (ret)
423 atomic_inc_return(&wb_enc->wbirq_refcount);
424 }
425 }
426
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-28 7:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-28 7:15 [drm-msm:msm-next-staging 99/108] drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c:410:13: warning: variable 'refcount' set but not used kernel test robot
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.