* [linux-next:master 4290/4439] drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c:1863:10: warning: no previous prototype for 'get_process_num_bos'
@ 2022-02-08 10:55 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-02-08 10:55 UTC (permalink / raw)
To: Rajneesh Bhardwaj
Cc: kbuild-all, Linux Memory Management List, Alex Deucher,
Felix Kuehling, David Yat Sin
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 554f92dbda161fa073844ae6c62db257b8860a0a
commit: f185381b64814bb483416e4dd83d85891018a7c5 [4290/4439] drm/amdkfd: CRIU Implement KFD process_info ioctl
config: x86_64-randconfig-a012-20220207 (https://download.01.org/0day-ci/archive/20220208/202202081835.YQvtP21z-lkp@intel.com/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=f185381b64814bb483416e4dd83d85891018a7c5
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 f185381b64814bb483416e4dd83d85891018a7c5
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/gpu/
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/amd/amdgpu/../amdkfd/kfd_chardev.c:1863:10: warning: no previous prototype for 'get_process_num_bos' [-Wmissing-prototypes]
1863 | uint32_t get_process_num_bos(struct kfd_process *p)
| ^~~~~~~~~~~~~~~~~~~
vim +/get_process_num_bos +1863 drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c
1862
> 1863 uint32_t get_process_num_bos(struct kfd_process *p)
1864 {
1865 uint32_t num_of_bos = 0;
1866 int i;
1867
1868 /* Run over all PDDs of the process */
1869 for (i = 0; i < p->n_pdds; i++) {
1870 struct kfd_process_device *pdd = p->pdds[i];
1871 void *mem;
1872 int id;
1873
1874 idr_for_each_entry(&pdd->alloc_idr, mem, id) {
1875 struct kgd_mem *kgd_mem = (struct kgd_mem *)mem;
1876
1877 if ((uint64_t)kgd_mem->va > pdd->gpuvm_base)
1878 num_of_bos++;
1879 }
1880 }
1881 return num_of_bos;
1882 }
1883
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
^ permalink raw reply [flat|nested] 2+ messages in thread
* [linux-next:master 4290/4439] drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c:1863:10: warning: no previous prototype for 'get_process_num_bos'
@ 2022-02-08 10:55 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-02-08 10:55 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2175 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 554f92dbda161fa073844ae6c62db257b8860a0a
commit: f185381b64814bb483416e4dd83d85891018a7c5 [4290/4439] drm/amdkfd: CRIU Implement KFD process_info ioctl
config: x86_64-randconfig-a012-20220207 (https://download.01.org/0day-ci/archive/20220208/202202081835.YQvtP21z-lkp(a)intel.com/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=f185381b64814bb483416e4dd83d85891018a7c5
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 f185381b64814bb483416e4dd83d85891018a7c5
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/gpu/
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/amd/amdgpu/../amdkfd/kfd_chardev.c:1863:10: warning: no previous prototype for 'get_process_num_bos' [-Wmissing-prototypes]
1863 | uint32_t get_process_num_bos(struct kfd_process *p)
| ^~~~~~~~~~~~~~~~~~~
vim +/get_process_num_bos +1863 drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c
1862
> 1863 uint32_t get_process_num_bos(struct kfd_process *p)
1864 {
1865 uint32_t num_of_bos = 0;
1866 int i;
1867
1868 /* Run over all PDDs of the process */
1869 for (i = 0; i < p->n_pdds; i++) {
1870 struct kfd_process_device *pdd = p->pdds[i];
1871 void *mem;
1872 int id;
1873
1874 idr_for_each_entry(&pdd->alloc_idr, mem, id) {
1875 struct kgd_mem *kgd_mem = (struct kgd_mem *)mem;
1876
1877 if ((uint64_t)kgd_mem->va > pdd->gpuvm_base)
1878 num_of_bos++;
1879 }
1880 }
1881 return num_of_bos;
1882 }
1883
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-08 10:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-08 10:55 [linux-next:master 4290/4439] drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c:1863:10: warning: no previous prototype for 'get_process_num_bos' kernel test robot
2022-02-08 10:55 ` 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.