linux-next: manual merge of the akpm-current tree with the arm64 tree

From: Stephen Rothwell
Date: Thu Dec 13 2018 - 01:01:13 EST

Hi all,

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


between commit:

4ab215061554 ("arm64: Add memory hotplug support")

from the arm64 tree and commit:

232619fcc076 ("lib/ioremap: ensure break-before-make is used for huge p4d mappings")

from the akpm-current 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.

Stephen Rothwell

diff --cc arch/arm64/mm/mmu.c
index da513a1facf4,cf9a26d3d7f5..000000000000
--- a/arch/arm64/mm/mmu.c
+++ b/arch/arm64/mm/mmu.c
@@@ -1047,19 -1029,7 +1043,24 @@@ int pud_free_pmd_page(pud_t *pudp, unsi
return 1;

+int arch_add_memory(int nid, u64 start, u64 size, struct vmem_altmap *altmap,
+ bool want_memblock)
+ int flags = 0;
+ if (rodata_full || debug_pagealloc_enabled())
+ __create_pgd_mapping(swapper_pg_dir, start, __phys_to_virt(start),
+ size, PAGE_KERNEL, pgd_pgtable_alloc, flags);
+ return __add_pages(nid, start >> PAGE_SHIFT, size >> PAGE_SHIFT,
+ altmap, want_memblock);
+ int p4d_free_pud_page(p4d_t *p4d, unsigned long addr)
+ {
+ return 0; /* Don't attempt a block mapping */
+ }

Attachment: pgpN0KOwAG37w.pgp
Description: OpenPGP digital signature