linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Rajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Cc: kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>,
	Alex Deucher <alexander.deucher@amd.com>,
	Felix Kuehling <Felix.Kuehling@amd.com>,
	David Yat Sin <david.yatsin@amd.com>
Subject: [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: Tue, 8 Feb 2022 18:55:15 +0800	[thread overview]
Message-ID: <202202081835.YQvtP21z-lkp@intel.com> (raw)

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


                 reply	other threads:[~2022-02-08 10:55 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=202202081835.YQvtP21z-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Felix.Kuehling@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=david.yatsin@amd.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    --cc=rajneesh.bhardwaj@amd.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