mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Abhinav Kumar <quic_abhinavk@quicinc.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Dmitry Baryshkov <dmitry.baryshkov@linaro.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
Date: Thu, 28 Apr 2022 15:15:17 +0800	[thread overview]
Message-ID: <202204281543.XFvZfER7-lkp@intel.com> (raw)

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

                 reply	other threads:[~2022-04-28  7:16 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=202204281543.XFvZfER7-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=dmitry.baryshkov@linaro.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=quic_abhinavk@quicinc.com \
    /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®