linux-next: build failure after merge of the tip tree
Subsystems (2)
Hi all,
After merging the tip tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:
In file included from arch/powerpc/include/asm/book3s/64/mmu-hash.h:20,
from arch/powerpc/include/asm/book3s/64/mmu.h:32,
from arch/powerpc/include/asm/mmu.h:396,
from arch/powerpc/include/asm/lppaca.h:46,
from arch/powerpc/include/asm/paca.h:18,
from arch/powerpc/include/asm/current.h:13,
from include/linux/thread_info.h:23,
from include/asm-generic/preempt.h:5,
from ./arch/powerpc/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:79,
from include/linux/spinlock.h:56,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:7,
from include/linux/mm.h:7,
from mm/huge_memory.c:8:mm/huge_memory.c: In function 'maybe_pud_mkwrite':arch/powerpc/include/asm/book3s/64/pgtable.h:934:41: error: too few arguments to function 'pte_mkwrite'
934 | #define pud_mkwrite(pud) pte_pud(pte_mkwrite(pud_pte(pud)))
| ^~~~~~~~~~~mm/huge_memory.c:935:23: note: in expansion of macro 'pud_mkwrite'
935 | pud = pud_mkwrite(pud);
| ^~~~~~~~~~~
In file included from include/linux/mm.h:29:
include/linux/pgtable.h:593:21: note: declared here
593 | static inline pte_t pte_mkwrite(pte_t pte, struct vm_area_struct *vma)
| ^~~~~~~~~~~Caused by commit
161e393c0f63 ("mm: Make pte_mkwrite() take a VMA")
interacting with commit
6440c7b067ef ("powerpc/book3s64/mm: enable transparent pud hugepage")
from the mm-stable tree.
I have applied the following patch for today (hopefully it makes sense):
From: Stephen Rothwell <[email protected]>
Date: Tue, 15 Aug 2023 15:15:23 +1000
Subject: [PATCH] fix up for "mm: Make pte_mkwrite() take a VMA"
interacting with commit
6440c7b067ef ("powerpc/book3s64/mm: enable transparent pud hugepage")
from the mm-stable tree.
--- arch/powerpc/include/asm/book3s/64/pgtable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/include/asm/book3s/64/pgtable.h +1 -1
@@ -931,7 +931,7 @@ static inline pte_t *pudp_ptep(pud_t *pud)#define pud_mkdirty (pud) pte_pud(pte_mkdirty(pud_pte(pud)))#define pud_mkclean (pud) pte_pud(pte_mkclean(pud_pte(pud)))#define pud_mkyoung (pud) pte_pud(pte_mkyoung(pud_pte(pud))) -#define pud_mkwrite (pud) pte_pud(pte_mkwrite(pud_pte(pud))) +#define pud_mkwrite (pud) pte_pud(pte_mkwrite_novma(pud_pte(pud)))#define pud_write (pud) pte_write(pud_pte(pud))#ifdef CONFIG_HAVE_ARCH_SOFT_DIRTY
Signature · 5 lines
2.40.1 -- Cheers, Stephen Rothwell
Quoted 6 lines · Stephen Rothwell
Caused by commit
161e393c0f63("mm: Makepte_mkwrite()take a VMA")interacting with commit
Quoted 7 lines
6440c7b067ef("powerpc/book3s64/mm: enable transparent pud hugepage")from the mm-stable tree.
I have applied the following patch for today (hopefully it makes sense):
Thanks. Seems reasonable to me.