mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Luo penghao <luo.penghao@zte.com.cn>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Karol Herbst <kherbst@redhat.com>
Subject: [drm-misc:drm-misc-next 3/5] drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c:491:13: error: unused variable 'inst'
Date: Wed, 13 Oct 2021 12:42:52 +0800	[thread overview]
Message-ID: <202110131243.JqxZsGvJ-lkp@intel.com> (raw)

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

tree:   git://anongit.freedesktop.org/drm/drm-misc drm-misc-next
head:   f30946db159feddf8c89bdeeb79ff893d949d480
commit: 404046cf48050167bc068bd12fdd2cbce61022c3 [3/5] drm/nouveau/mmu/gp100-: drop unneeded assignment in the if condition.
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.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-misc git://anongit.freedesktop.org/drm/drm-misc
        git fetch --no-tags drm-misc drm-misc-next
        git checkout 404046cf48050167bc068bd12fdd2cbce61022c3
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc 

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

Note: the drm-misc/drm-misc-next HEAD 381ba6a6baf104b572379c6b2deab884555104d4 builds fine.
      It only hurts bisectability.

All errors (new ones prefixed by >>):

   drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c: In function 'gp100_vmm_fault_cancel':
>> drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c:491:13: error: unused variable 'inst' [-Werror=unused-variable]
     491 |         u32 inst, aper;
         |             ^~~~
   cc1: all warnings being treated as errors


vim +/inst +491 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c

f9400afb1e11c33 Ben Skeggs  2017-11-01  482  
71871aa6df5009e Ben Skeggs  2018-07-09  483  static int
71871aa6df5009e Ben Skeggs  2018-07-09  484  gp100_vmm_fault_cancel(struct nvkm_vmm *vmm, void *argv, u32 argc)
71871aa6df5009e Ben Skeggs  2018-07-09  485  {
71871aa6df5009e Ben Skeggs  2018-07-09  486  	struct nvkm_device *device = vmm->mmu->subdev.device;
71871aa6df5009e Ben Skeggs  2018-07-09  487  	union {
71871aa6df5009e Ben Skeggs  2018-07-09  488  		struct gp100_vmm_fault_cancel_v0 v0;
71871aa6df5009e Ben Skeggs  2018-07-09  489  	} *args = argv;
71871aa6df5009e Ben Skeggs  2018-07-09  490  	int ret = -ENOSYS;
71871aa6df5009e Ben Skeggs  2018-07-09 @491  	u32 inst, aper;
71871aa6df5009e Ben Skeggs  2018-07-09  492  
71871aa6df5009e Ben Skeggs  2018-07-09  493  	if ((ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false)))
71871aa6df5009e Ben Skeggs  2018-07-09  494  		return ret;
71871aa6df5009e Ben Skeggs  2018-07-09  495  
71871aa6df5009e Ben Skeggs  2018-07-09  496  	/* Translate MaxwellFaultBufferA instance pointer to the same
71871aa6df5009e Ben Skeggs  2018-07-09  497  	 * format as the NV_GR_FECS_CURRENT_CTX register.
71871aa6df5009e Ben Skeggs  2018-07-09  498  	 */
71871aa6df5009e Ben Skeggs  2018-07-09  499  	aper = (args->v0.inst >> 8) & 3;
71871aa6df5009e Ben Skeggs  2018-07-09  500  	args->v0.inst >>= 12;
71871aa6df5009e Ben Skeggs  2018-07-09  501  	args->v0.inst |= aper << 28;
71871aa6df5009e Ben Skeggs  2018-07-09  502  	args->v0.inst |= 0x80000000;
71871aa6df5009e Ben Skeggs  2018-07-09  503  
71871aa6df5009e Ben Skeggs  2018-07-09  504  	if (!WARN_ON(nvkm_gr_ctxsw_pause(device))) {
404046cf4805016 Luo penghao 2021-08-20  505  		if (nvkm_gr_ctxsw_inst(device) == args->v0.inst) {
71871aa6df5009e Ben Skeggs  2018-07-09  506  			gf100_vmm_invalidate(vmm, 0x0000001b
71871aa6df5009e Ben Skeggs  2018-07-09  507  					     /* CANCEL_TARGETED. */ |
71871aa6df5009e Ben Skeggs  2018-07-09  508  					     (args->v0.hub    << 20) |
71871aa6df5009e Ben Skeggs  2018-07-09  509  					     (args->v0.gpc    << 15) |
71871aa6df5009e Ben Skeggs  2018-07-09  510  					     (args->v0.client << 9));
71871aa6df5009e Ben Skeggs  2018-07-09  511  		}
71871aa6df5009e Ben Skeggs  2018-07-09  512  		WARN_ON(nvkm_gr_ctxsw_resume(device));
71871aa6df5009e Ben Skeggs  2018-07-09  513  	}
71871aa6df5009e Ben Skeggs  2018-07-09  514  
71871aa6df5009e Ben Skeggs  2018-07-09  515  	return 0;
71871aa6df5009e Ben Skeggs  2018-07-09  516  }
71871aa6df5009e Ben Skeggs  2018-07-09  517  

:::::: The code at line 491 was first introduced by commit
:::::: 71871aa6df5009ebf39ae94d15d0e9836bf91c03 drm/nouveau/mmu/gp100-: add privileged methods for fault replay/cancel

:::::: TO: Ben Skeggs <bskeggs@redhat.com>
:::::: CC: Ben Skeggs <bskeggs@redhat.com>

---
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: 69270 bytes --]

                 reply	other threads:[~2021-10-13  4:43 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=202110131243.JqxZsGvJ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=kherbst@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luo.penghao@zte.com.cn \
    /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®