Skip to contentSkip to conversation

linux-next: manual merge of the kexec tree with the mm tree

PATCH Mark Brown 3 participants 3 messages Nov 16 – Nov 17

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

Hi all,

Today's linux-next merge of the kexec tree got a conflict in:

kernel/crash_reserve.c

between commit:

ed27d3cb114dd ("mm/hugetlb: allow crashkernel to reuse hugetlb CMA memory")

from the mm tree and commit:

941aef93e9e1d ("kdump: Give crashkernel CMA areas unique names")

from the kexec 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.

kernel/crash_reserve.c +0 -0
diff --cc kernel/crash_reserve.c
index 53d76ba6b3c31,80092c86d586a..0000000000000
@@@ -503,11 -483,16 +503,17 @@@ void __init reserve_crashkernel_cma(voi
  	while (cma_size > reserved_size &&
  	       crashk_cma_cnt < CRASHKERNEL_CMA_RANGES_MAX) {
  
+ 		char name[CMA_MAX_NAME];
  		struct cma *res;
  
 +		request_size = min(request_size, cma_size - reserved_size);
+ 		/* CMA area names show up in sysfs and debugfs, keep them unique */
+ 		if (crashk_cma_cnt)
+ 			snprintf(name, sizeof(name), "crashkernel%d", crashk_cma_cnt);
+ 		else
+ 			strscpy(name, "crashkernel");
  		if (cma_declare_contiguous(0, request_size, 0, 0, 0, false,
- 				       "crashkernel", &res)) {
+ 				       name, &res)) {
  			/* reservation failed, try half-sized blocks */
  			if (request_size <= PAGE_SIZE)
  				break;
maintainer
#1 lore raw
Quoted 6 lines · On Mon, 16 Nov 2026 19:25:56 +0000 Mark Brown <[email protected]> wrote:

Today's linux-next merge of the kexec tree got a conflict in:

kernel/crash_reserve.c

between commit:

Quoted 7 lines

ed27d3cb114dd ("mm/hugetlb: allow crashkernel to reuse hugetlb CMA memory")

from the mm tree and commit:

941aef93e9e1d ("kdump: Give crashkernel CMA areas unique names")

from the kexec tree.

OK, thanks. I'll send Usama's "mm/hugetlb: allow crashkernel to reuse hugetlb CMA memory" to kexec people then I shall forget all about it ;)

maintainer
#2 lore raw
Quoted 10 lines · Andrew Morton
Quoted 8 lines · On Mon, 16 Nov 2026 19:25:56 +0000 Mark Brown <[email protected]> wrote:

Today's linux-next merge of the kexec tree got a conflict in:

kernel/crash_reserve.c

between commit:

ed27d3cb114dd ("mm/hugetlb: allow crashkernel to reuse hugetlb CMA memory")

Quoted 8 lines
Quoted 5 lines

from the mm tree and commit:

941aef93e9e1d ("kdump: Give crashkernel CMA areas unique names")

from the kexec tree.

OK, thanks. I'll send Usama's "mm/hugetlb: allow crashkernel to reuse hugetlb CMA memory" to kexec people then I shall forget all about it ;)

Right, until the next conflict :)

Signature · 2 lines
Sincerely yours,
Mike.