[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202204281543.XFvZfER7-lkp@intel.com>
Date: Thu, 28 Apr 2022 15:15:17 +0800
From: kernel test robot <lkp@...el.com>
To: Abhinav Kumar <quic_abhinavk@...cinc.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Dmitry Baryshkov <dmitry.baryshkov@...aro.org>
Subject: [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
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@...el.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
Powered by blists - more mailing lists