[linux-next:master 11802/12015] drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c:1254:25: error: unused variable 'svms'
From: kernel test robot <hidden>
Date: 2021-09-06 22:51:52
Also in:
oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 7800ca95d0ed11b492962dc3abc2181c9d5f7f82 commit: 670e71ded7495930883f17a604b1f3ad90bf1d2f [11802/12015] Merge remote-tracking branch 'amdgpu/drm-next' config: x86_64-randconfig-a001-20210906 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=670e71ded7495930883f17a604b1f3ad90bf1d2f git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 670e71ded7495930883f17a604b1f3ad90bf1d2f # save the attached .config to linux build tree make W=1 ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <redacted> All errors (new ones prefixed by >>): drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c: In function 'kfd_ioctl_alloc_memory_of_gpu':
quoted
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c:1254:25: error: unused variable 'svms' [-Werror=unused-variable]
1254 | struct svm_range_list *svms = &p->svms;
| ^~~~
cc1: all warnings being treated as errors
vim +/svms +1254 drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c
5ec7e02854b3b9 Felix Kuehling 2018-03-15 1246
5ec7e02854b3b9 Felix Kuehling 2018-03-15 1247 static int kfd_ioctl_alloc_memory_of_gpu(struct file *filep,
5ec7e02854b3b9 Felix Kuehling 2018-03-15 1248 struct kfd_process *p, void *data)
5ec7e02854b3b9 Felix Kuehling 2018-03-15 1249 {
5ec7e02854b3b9 Felix Kuehling 2018-03-15 1250 struct kfd_ioctl_alloc_memory_of_gpu_args *args = data;
5ec7e02854b3b9 Felix Kuehling 2018-03-15 1251 struct kfd_process_device *pdd;
5ec7e02854b3b9 Felix Kuehling 2018-03-15 1252 void *mem;
5ec7e02854b3b9 Felix Kuehling 2018-03-15 1253 struct kfd_dev *dev;
4a4e5b957c8f91 Alex Sierra 2021-06-07 @1254 struct svm_range_list *svms = &p->svms;
5ec7e02854b3b9 Felix Kuehling 2018-03-15 1255 int idr_handle;
5ec7e02854b3b9 Felix Kuehling 2018-03-15 1256 long err;
5ec7e02854b3b9 Felix Kuehling 2018-03-15 1257 uint64_t offset = args->mmap_offset;
5ec7e02854b3b9 Felix Kuehling 2018-03-15 1258 uint32_t flags = args->flags;
5ec7e02854b3b9 Felix Kuehling 2018-03-15 1259
5ec7e02854b3b9 Felix Kuehling 2018-03-15 1260 if (args->size == 0)
5ec7e02854b3b9 Felix Kuehling 2018-03-15 1261 return -EINVAL;
5ec7e02854b3b9 Felix Kuehling 2018-03-15 1262
:::::: The code at line 1254 was first introduced by commit
:::::: 4a4e5b957c8f9132989df0fa8a864f47688159f1 drm/amdkfd: avoid conflicting address mappings
:::::: TO: Alex Sierra [off-list ref]
:::::: CC: Alex Deucher [off-list ref]
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Attachments
- .config.gz [application/gzip] 37463 bytes