linux-next: manual merge of the loongarch tree with the mm-unstable tree
From: Mark Brown
Date: Fri May 22 2026 - 07:50:45 EST
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.
diff --cc arch/loongarch/mm/init.c
index 055ecd2c8fd94,031b39eb081c5..0000000000000
--- a/arch/loongarch/mm/init.c
+++ b/arch/loongarch/mm/init.c
@@@ -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
Attachment:
signature.asc
Description: PGP signature