[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kvm-ppc
Subject:    [agraf-2.6:kvm-kho-gmem-test 2/27] mm/memblock.c:2196:61: error: 'MIGRATE_CMA' undeclared; did you m
From:       kernel test robot <lkp () intel ! com>
Date:       2024-05-04 20:09:59
Message-ID: 202405050442.pqgxGsYG-lkp () intel ! com
[Download RAW message or body]

tree:   https://github.com/agraf/linux-2.6.git kvm-kho-gmem-test
head:   9a58862a298a63bad21d05191e28b857063bb9dc
commit: 81ee2fbdd7aa2d3bdbef8e22556cef1e9bfb99c0 [2/27] memblock: Declare scratch \
                memory as CMA
config: x86_64-rhel-8.3 \
(https://download.01.org/0day-ci/archive/20240505/202405050442.pqgxGsYG-lkp@intel.com/config)
                
compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0
reproduce (this is a W=1 build): \
(https://download.01.org/0day-ci/archive/20240505/202405050442.pqgxGsYG-lkp@intel.com/reproduce)


If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202405050442.pqgxGsYG-lkp@intel.com/

All errors (new ones prefixed by >>):

   mm/memblock.c: In function 'mark_phys_as_cma':
> > mm/memblock.c:2196:61: error: 'MIGRATE_CMA' undeclared (first use in this \
> > function); did you mean 'MIGRATE_SYNC'?
    2196 |                 set_pageblock_migratetype(pfn_to_page(pfn), MIGRATE_CMA);
         |                                                             ^~~~~~~~~~~
         |                                                             MIGRATE_SYNC
   mm/memblock.c:2196:61: note: each undeclared identifier is reported only once for \
each function it appears in


vim +2196 mm/memblock.c

  2188	
  2189	static void mark_phys_as_cma(phys_addr_t start, phys_addr_t end)
  2190	{
  2191		ulong start_pfn = pageblock_start_pfn(PFN_DOWN(start));
  2192		ulong end_pfn = pageblock_align(PFN_UP(end));
  2193		ulong pfn;
  2194	
  2195		for (pfn = start_pfn; pfn < end_pfn; pfn += pageblock_nr_pages)
> 2196			set_pageblock_migratetype(pfn_to_page(pfn), MIGRATE_CMA);
  2197	}
  2198	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic