Re: [PATCH v5 1/2] mm, hugepages: add mremap() support for hugepage backed vma

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

 



Hi Mina,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on hnaz-mm/master]

url:    https://github.com/0day-ci/linux/commits/Mina-Almasry/mm-hugepages-add-mremap-support-for-hugepage-backed-vma/20211009-023524
base:   https://github.com/hnaz/linux-mm master
config: riscv-randconfig-c006-20211009 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 30caca39f401ae17927439c0a0bd6d1b1916dd6a)
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 riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        # https://github.com/0day-ci/linux/commit/295ef1343fb989a386d2393ffe29b5a5553b22cf
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Mina-Almasry/mm-hugepages-add-mremap-support-for-hugepage-backed-vma/20211009-023524
        git checkout 295ef1343fb989a386d2393ffe29b5a5553b22cf
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   mm/hugetlb.c:3729:16: warning: variable 'demote_size' set but not used [-Wunused-but-set-variable]
           unsigned long demote_size;
                         ^
>> mm/hugetlb.c:6535:13: error: static declaration of 'hugetlb_vma_shareable' follows non-static declaration
   static bool hugetlb_vma_shareable(struct vm_area_struct *vma,
               ^
   include/linux/hugetlb.h:217:6: note: previous declaration is here
   bool hugetlb_vma_shareable(struct vm_area_struct *vma, unsigned long addr);
        ^
   1 warning and 1 error generated.


vim +/hugetlb_vma_shareable +6535 mm/hugetlb.c

  6533	
  6534	#else /* !CONFIG_ARCH_WANT_HUGE_PMD_SHARE */
> 6535	static bool hugetlb_vma_shareable(struct vm_area_struct *vma,
  6536					  unsigned long addr)
  6537	{
  6538		return false;
  6539	}
  6540	

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