[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'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx/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@xxxxxxxxx>

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@xxxxxxxxxxxx




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux