Skip to contentSkip to conversation

linux-next: manual merge of the loongarch tree with the mm-unstable tree

PATCH Mark Brown 2 participants 2 messages May 22

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

Hi 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
diff --cc arch/loongarch/mm/init.c
index 055ecd2c8fd94,031b39eb081c5..0000000000000
@@@ -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
  
#1 lore raw
Quoted 34 lines · Mark Brown

Hi 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
diff --cc arch/loongarch/mm/init.c
index 055ecd2c8fd94,031b39eb081c5..0000000000000
@@@ -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 -5
  	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

I think your fix is right.

Thanks,
Muchun