Hi Muchun,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on hnaz-mm/master]
[also build test ERROR on next-20220225]
[cannot apply to linus/master v5.17-rc6]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in

base:   https://github.com/hnaz/linux-mm master
config: riscv-randconfig-r012-20220227 
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 
reproduce (this is a W=1 build):
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
        chmod +x ~/bin/make.cross
        # install riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review 
        git checkout 4b08af172f30c61ae5f43ec23642e2767371247e
        # save the config file 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 <l...@intel.com>

All errors (new ones prefixed by >>):

>> mm/page_vma_mapped.c:113:13: error: call to __compiletime_assert_258 
>> declared with 'error' attribute: BUILD_BUG failed
           if ((pfn + HPAGE_PMD_NR - 1) < pvmw->pfn)
   include/linux/huge_mm.h:105:26: note: expanded from macro 'HPAGE_PMD_NR'
   include/linux/huge_mm.h:104:26: note: expanded from macro 'HPAGE_PMD_ORDER'
   include/linux/huge_mm.h:307:28: note: expanded from macro 'HPAGE_PMD_SHIFT'
   #define HPAGE_PMD_SHIFT ({ BUILD_BUG(); 0; })
   note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to 
see all)
   include/linux/compiler_types.h:335:2: note: expanded from macro 
           __compiletime_assert(condition, msg, prefix, suffix)
   include/linux/compiler_types.h:328:4: note: expanded from macro 
                           prefix ## suffix();                             \
   <scratch space>:73:1: note: expanded from here
   1 error generated.

vim +/error +113 mm/page_vma_mapped.c

9188af981d385d Andrew Morton      2022-02-25  109  
9188af981d385d Andrew Morton      2022-02-25  110  /* Returns true if the two 
ranges overlap.  Careful to not overflow. */
9188af981d385d Andrew Morton      2022-02-25  111  static bool 
check_pmd(unsigned long pfn, struct page_vma_mapped_walk *pvmw)
9188af981d385d Andrew Morton      2022-02-25  112  {
9188af981d385d Andrew Morton      2022-02-25 @113       if ((pfn + HPAGE_PMD_NR 
- 1) < pvmw->pfn)
9188af981d385d Andrew Morton      2022-02-25  114               return false;
9188af981d385d Andrew Morton      2022-02-25  115       if (pfn > pvmw->pfn + 
pvmw->nr_pages - 1)
9188af981d385d Andrew Morton      2022-02-25  116               return false;
9188af981d385d Andrew Morton      2022-02-25  117       return true;
ace71a19cec5eb Kirill A. Shutemov 2017-02-24  118  }
ace71a19cec5eb Kirill A. Shutemov 2017-02-24  119  

0-DAY CI Kernel Test Service, Intel Corporation

Reply via email to