public inbox for linux-mm@kvack.org
 help / color / mirror / Atom feed
* [linux-next:master 13374/15421] drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_migrate.c:284:6: warning: no previous prototype for function 'svm_migrate_put_sys_page'
@ 2021-04-29 12:37 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-04-29 12:37 UTC (permalink / raw)
  To: Felix Kuehling
  Cc: kbuild-all, clang-built-linux, Linux Memory Management List,
	Alex Deucher, Philip Yang

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   9e5cff2a1315fec1da1f497714395670366506b6
commit: 48ff079b28d82dbce000cc45c0fd35b6ae9ffbda [13374/15421] drm/amdkfd: HMM migrate vram to ram
config: x86_64-randconfig-a011-20210429 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 9131a078901b00e68248a27a4f8c4b11bb1db1ae)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=48ff079b28d82dbce000cc45c0fd35b6ae9ffbda
        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 48ff079b28d82dbce000cc45c0fd35b6ae9ffbda
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64 

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_migrate.c:284:6: warning: no previous prototype for function 'svm_migrate_put_sys_page' [-Wmissing-prototypes]
   void svm_migrate_put_sys_page(unsigned long addr)
        ^
   drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_migrate.c:284:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void svm_migrate_put_sys_page(unsigned long addr)
   ^
   static 
   drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_migrate.c:513:29: warning: variable 'mm' is uninitialized when used here [-Wuninitialized]
           svm_range_prefault(prange, mm);
                                      ^~
   drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_migrate.c:494:22: note: initialize the variable 'mm' to silence this warning
           struct mm_struct *mm;
                               ^
                                = NULL
   2 warnings generated.


vim +/svm_migrate_put_sys_page +284 drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_migrate.c

   283	
 > 284	void svm_migrate_put_sys_page(unsigned long addr)
   285	{
   286		struct page *page;
   287	
   288		page = pfn_to_page(addr >> PAGE_SHIFT);
   289		unlock_page(page);
   290		put_page(page);
   291	}
   292	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-29 12:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-29 12:37 [linux-next:master 13374/15421] drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_migrate.c:284:6: warning: no previous prototype for function 'svm_migrate_put_sys_page' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox