linux-next: build failure after merge of the mm tree
Subsystems (2)
Hi all,
After merging the mm tree, today's linux-next build (powerpc64 allnoconfig) failed like this:
arch/powerpc/mm/book3s64/pgtable.c:557:5: error: no previous prototype for 'pmd_move_must_withdraw' [-Werror=missing-prototypes]
557 | int pmd_move_must_withdraw(struct spinlock *new_pmd_ptl,
| ^~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Caused by commit
c6345dfa6e3e ("Makefile.extrawarn: turn on missing-prototypes globally")
I have added the following patch for today (which could be applied to the mm or powerpc trees):
From 194805b44c11b4c0aa28bdcdc0bb0d82acef394c Mon Sep 17 00:00:00 2001
From: Stephen Rothwell <[email protected]>
Date: Mon, 27 Nov 2023 13:08:57 +1100
Subject: [PATCH] powerpc: pmd_move_must_withdraw() is only needed for
CONFIG_TRANSPARENT_HUGEPAGE
--- arch/powerpc/mm/book3s64/pgtable.c | 2 ++ 1 file changed, 2 insertions(+)
arch/powerpc/mm/book3s64/pgtable.c +2 -0
@@ -542,6 +542,7 @@ void ptep_modify_prot_commit(struct vm_area_struct *vma, unsigned long addr,set_pte_at (vma->vm_mm, addr, ptep, pte); } +#ifdef CONFIG_TRANSPARENT_HUGEPAGE /* * For hash translation mode, we use the deposited table to store hash slot * information and they are stored at PTRS_PER_PMD offset from related pmd
@@ -563,6 +564,7 @@ int pmd_move_must_withdraw(struct spinlock *new_pmd_ptl, return true; } +#endif /* * Does the CPU support tlbie?
Signature · 5 lines
2.40.1 -- Cheers, Stephen Rothwell
Hi all,
Just cc'ing the PowerPC guys to see if my fix is sensible.
Quoted 49 lines · On Mon, 27 Nov 2023 13:28:09 +1100 Stephen Rothwell <[email protected]>…
After merging the mm tree, today's linux-next build (powerpc64 allnoconfig) failed like this:
arch/powerpc/mm/book3s64/pgtable.c:557:5: error: no previous prototype for 'pmd_move_must_withdraw' [-Werror=missing-prototypes]
557 | int pmd_move_must_withdraw(struct spinlock*new_pmd_ptl,| ^~~~~~~~~~~~~~~~~~~~~~cc1: all warnings being treated as errors
Caused by commit
c6345dfa6e3e("Makefile.extrawarn: turn on missing-prototypes globally")I have added the following patch for today (which could be applied to the mm or powerpc trees):
From
194805b44c11b4c0aa28bdcdc0bb0d82acef394cMon Sep 17 00:00:00 2001
From: Stephen Rothwell <[email protected]>
Date: Mon, 27 Nov 2023 13:08:57 +1100
Subject: [PATCH] powerpc:pmd_move_must_withdraw()is only needed for
CONFIG_TRANSPARENT_HUGEPAGESigned-off-by Stephen Rothwell <[email protected]>--- arch/powerpc/mm/book3s64/pgtable.c | 2 ++ 1 file changed, 2 insertions(+)arch/powerpc/mm/book3s64/pgtable.c +2
-0@@ -542,6 +542,7 @@ void ptep_modify_prot_commit(struct vm_area_struct *vma, unsigned long addr,set_pte_at (vma->vm_mm, addr, ptep, pte); } +#ifdef CONFIG_TRANSPARENT_HUGEPAGE /* * For hash translation mode, we use the deposited table to store hash slot * information and they are stored at PTRS_PER_PMD offset from related pmd @@ -563,6 +564,7 @@ int pmd_move_must_withdraw(struct spinlock *new_pmd_ptl, return true; } +#endif /* * Does the CPU support tlbie? Signature · 1 line
2.40.1
Signature · 2 lines
Cheers, Stephen Rothwell
Hi all,
Quoted 45 lines · On Mon, 27 Nov 2023 14:48:52 +1100 Stephen Rothwell <[email protected]>…
Just cc'ing the PowerPC guys to see if my fix is sensible.
Quoted 41 lines · On Mon, 27 Nov 2023 13:28:09 +1100 Stephen Rothwell <[email protected]>…
After merging the mm tree, today's linux-next build (powerpc64 allnoconfig) failed like this:
arch/powerpc/mm/book3s64/pgtable.c:557:5: error: no previous prototype for 'pmd_move_must_withdraw' [-Werror=missing-prototypes]
557 | int pmd_move_must_withdraw(struct spinlock*new_pmd_ptl,| ^~~~~~~~~~~~~~~~~~~~~~cc1: all warnings being treated as errors
Caused by commit
c6345dfa6e3e("Makefile.extrawarn: turn on missing-prototypes globally")I have added the following patch for today (which could be applied to the mm or powerpc trees):
From
194805b44c11b4c0aa28bdcdc0bb0d82acef394cMon Sep 17 00:00:00 2001
From: Stephen Rothwell <[email protected]>
Date: Mon, 27 Nov 2023 13:08:57 +1100
Subject: [PATCH] powerpc:pmd_move_must_withdraw()is only needed for
CONFIG_TRANSPARENT_HUGEPAGESigned-off-by Stephen Rothwell <[email protected]>--- arch/powerpc/mm/book3s64/pgtable.c | 2 ++ 1 file changed, 2 insertions(+)arch/powerpc/mm/book3s64/pgtable.c +1
-0@@ -542,6 +542,7 @@ void ptep_modify_prot_commit(struct vm_area_struct *vma, unsigned long addr,set_pte_at (vma->vm_mm, addr, ptep, pte); } +#ifdef CONFIG_TRANSPARENT_HUGEPAGE /* * For hash translation mode, we use the deposited table to store hash slot * information and they are stored at PTRS_PER_PMD offset from related pmd @@ -563,6 +564,7 @@ int pmd_move_must_withdraw(struct spinlock *new_pmd_ptl,
Quoted 8 lines
Quoted 8 lines
arch/powerpc/mm/book3s64/pgtable.c +1
-0return true; } +#endif /* * Does the CPU support tlbie? Signature · 1 line
2.40.1
I am still carrying this patch (it should probably go into the mm tree). Is someone going to pick it up (assuming it is correct)?
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 20 lines · On Fri, 1 Dec 2023 09:04:39 +1100 Stephen Rothwell <[email protected]> wrote:
Hi all,
Quoted 18 lines
Quoted 18 lines
arch/powerpc/mm/book3s64/pgtable.c +2
-0@@ -542,6 +542,7 @@ void ptep_modify_prot_commit(struct vm_area_struct *vma, unsigned long addr,set_pte_at (vma->vm_mm, addr, ptep, pte); } +#ifdef CONFIG_TRANSPARENT_HUGEPAGE /* * For hash translation mode, we use the deposited table to store hash slot * information and they are stored at PTRS_PER_PMD offset from related pmd @@ -563,6 +564,7 @@ int pmd_move_must_withdraw(struct spinlock *new_pmd_ptl, return true; } +#endif
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
arch/powerpc/mm/book3s64/pgtable.c +0
-0/* * Does the CPU support tlbie? Signature · 1 line
2.40.1I am still carrying this patch (it should probably go into the mm tree). Is someone going to pick it up (assuming it is correct)?
AFAIK we're still awaiting input from the ppc team.
I'll grab it. If it breaks things then we-told-you-so!
Michael Ellerman
reviewerQuoted 50 lines · Stephen Rothwell
Quoted 49 lines · On Mon, 27 Nov 2023 14:48:52 +1100 Stephen Rothwell <[email protected]>…
Just cc'ing the PowerPC guys to see if my fix is sensible.
Quoted 45 lines · On Mon, 27 Nov 2023 13:28:09 +1100 Stephen Rothwell <[email protected]>…
After merging the mm tree, today's linux-next build (powerpc64 allnoconfig) failed like this:
arch/powerpc/mm/book3s64/pgtable.c:557:5: error: no previous prototype for 'pmd_move_must_withdraw' [-Werror=missing-prototypes]
557 | int pmd_move_must_withdraw(struct spinlock*new_pmd_ptl,| ^~~~~~~~~~~~~~~~~~~~~~cc1: all warnings being treated as errors
Caused by commit
c6345dfa6e3e("Makefile.extrawarn: turn on missing-prototypes globally")I have added the following patch for today (which could be applied to the mm or powerpc trees):
From
194805b44c11b4c0aa28bdcdc0bb0d82acef394cMon Sep 17 00:00:00 2001
From: Stephen Rothwell <[email protected]>
Date: Mon, 27 Nov 2023 13:08:57 +1100
Subject: [PATCH] powerpc:pmd_move_must_withdraw()is only needed for
CONFIG_TRANSPARENT_HUGEPAGESigned-off-by Stephen Rothwell <[email protected]>--- arch/powerpc/mm/book3s64/pgtable.c | 2 ++ 1 file changed, 2 insertions(+)arch/powerpc/mm/book3s64/pgtable.c +2
-0@@ -542,6 +542,7 @@ void ptep_modify_prot_commit(struct vm_area_struct *vma, unsigned long addr,set_pte_at (vma->vm_mm, addr, ptep, pte); } +#ifdef CONFIG_TRANSPARENT_HUGEPAGE /* * For hash translation mode, we use the deposited table to store hash slot * information and they are stored at PTRS_PER_PMD offset from related pmd @@ -563,6 +564,7 @@ int pmd_move_must_withdraw(struct spinlock *new_pmd_ptl, return true; } +#endif
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
arch/powerpc/mm/book3s64/pgtable.c +0
-0/* * Does the CPU support tlbie? Signature · 1 line
2.40.1I am still carrying this patch (it should probably go into the mm tree). Is someone going to pick it up (assuming it is correct)?
I applied it to my next a few days ago, but I must have forgotten to push. It's in there now.
cheers
Quoted 5 lines · On Fri, 01 Dec 2023 09:39:20 +1100 Michael Ellerman <[email protected]> wrote:
Quoted 2 lines
I am still carrying this patch (it should probably go into the mm tree). Is someone going to pick it up (assuming it is correct)?
I applied it to my next a few days ago, but I must have forgotten to push. It's in there now.
I'll keep a copy in mm.git, to keep the dependencies nice. I added your acked-by.
Michael Ellerman
reviewerQuoted 10 lines · Andrew Morton
Quoted 5 lines · On Fri, 01 Dec 2023 09:39:20 +1100 Michael Ellerman <[email protected]> wrote:
Quoted 2 lines
I am still carrying this patch (it should probably go into the mm tree). Is someone going to pick it up (assuming it is correct)?
I applied it to my next a few days ago, but I must have forgotten to push. It's in there now.
I'll keep a copy in mm.git, to keep the dependencies nice. I added your acked-by.
Sure thing. Thanks.
cheers
Michael Ellerman
AppliedQuoted 9 lines · Stephen Rothwell
After merging the mm tree, today's linux-next build (powerpc64 allnoconfig) failed like this:
arch/powerpc/mm/book3s64/pgtable.c:557:5: error: no previous prototype for 'pmd_move_must_withdraw' [-Werror=missing-prototypes]
557 | int pmd_move_must_withdraw(struct spinlock*new_pmd_ptl,| ^~~~~~~~~~~~~~~~~~~~~~cc1: all warnings being treated as errors
[...]
Applied to powerpc/next.
[1/1] linux-next: build failure after merge of the mm tree
https://git.kernel.org/powerpc/c/0d555b57ee660d8a871781c0eebf006e855e918d
cheers