linux-next: manual merge of the loongarch tree with the mm-unstable tree
Subsystems (2)
Mark Brown
maintainerHi all,
Today's linux-next merge of the loongarch tree got a conflict in:
arch/loongarch/mm/init.c
between commit:
c0defeccc630f ("mm/sparse-vmemmap: pass @pgmap argument to memory deactivation paths")
from the mm-unstable tree and commit:
0ccc9d47cf020 ("LoongArch: Remove unused code to avoid build warning")
from the loongarch tree.
I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.
arch/loongarch/mm/init.c +0 -0
@@@ -124,12 -123,8 +124,8 @@@ void arch_remove_memory(u64 start, u64 {unsigned long start_pfn = start >>PAGE_SHIFT ;unsigned long nr_pages = size >>PAGE_SHIFT ; -struct page *page =pfn_to_page (start_pfn); -/* With altmap the first mapped page is offset from @start */ -if (altmap) - page +=vmem_altmap_offset (altmap); -__remove_pages (start_pfn, nr_pages, altmap); +__remove_pages (start_pfn, nr_pages, altmap, pgmap); }#endif
Quoted 34 lines · Mark Brown
Hi all,
Today's linux-next merge of the loongarch tree got a conflict in:
arch/loongarch/mm/init.cbetween commit:
c0defeccc630f("mm/sparse-vmemmap: pass @pgmap argument to memory deactivation paths")from the mm-unstable tree and commit:
0ccc9d47cf020("LoongArch: Remove unused code to avoid build warning")from the loongarch tree.
I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.
arch/loongarch/mm/init.c +0
-0@@@ -124,12 -123,8 +124,8 @@@ void arch_remove_memory(u64 start, u64 {unsigned long start_pfn = start >>PAGE_SHIFT ;
arch/loongarch/mm/init.c
Quoted 10 lines
arch/loongarch/mm/init.c +1
-5unsigned long nr_pages = size >>PAGE_SHIFT ; -struct page *page =pfn_to_page (start_pfn); -/* With altmap the first mapped page is offset from @start */ -if (altmap) - page +=vmem_altmap_offset (altmap); - __remove_pages(start_pfn, nr_pages, altmap); + __remove_pages(start_pfn, nr_pages, altmap, pgmap); }#endif
I think your fix is right.
Thanks,
Muchun