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

[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:   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@xxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip


[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