[agraf-2.6:kvm-kho-gmem-test 2/27] mm/memblock.c:2196:61: error: 'MIGRATE_CMA' undeclared; did you mean 'MIGRATE_SYNC'?

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

 



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@xxxxxxxxx/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@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202405050442.pqgxGsYG-lkp@xxxxxxxxx/

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




[Index of Archives]     [KVM Development]     [KVM ARM]     [KVM ia64]     [Linux Virtualization]     [Linux USB Devel]     [Linux Video]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux