diff mbox series

[v7,11/70] arch/arm64: Remove the merge workaround for VMA_ITERATOR

Message ID 20220404143501.2016403-12-Liam.Howlett@oracle.com (mailing list archive)
State New
Headers show
Series Introducing the Maple Tree | expand

Commit Message

Liam R. Howlett April 4, 2022, 2:35 p.m. UTC
Now that the vma iterator is in the kernel, remove the workaround.

Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
---
 arch/arm64/kernel/elfcore.c | 7 -------
 1 file changed, 7 deletions(-)

Comments

Will Deacon April 5, 2022, 9:24 a.m. UTC | #1
Hi Liam,

On Mon, Apr 04, 2022 at 02:35:36PM +0000, Liam Howlett wrote:
> Now that the vma iterator is in the kernel, remove the workaround.
> 
> Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
> ---
>  arch/arm64/kernel/elfcore.c | 7 -------
>  1 file changed, 7 deletions(-)
> 
> diff --git a/arch/arm64/kernel/elfcore.c b/arch/arm64/kernel/elfcore.c
> index 3ed39c61a510..930a0bc4cac4 100644
> --- a/arch/arm64/kernel/elfcore.c
> +++ b/arch/arm64/kernel/elfcore.c
> @@ -8,13 +8,6 @@
>  #include <asm/cpufeature.h>
>  #include <asm/mte.h>
>  
> -#ifndef VMA_ITERATOR
> -#define VMA_ITERATOR(name, mm, addr)	\
> -	struct mm_struct *name = mm
> -#define for_each_vma(vmi, vma)		\
> -	for (vma = vmi->mmap; vma; vma = vma->vm_next)
> -#endif

I already have this revert queued up as an arm64 fix:

https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git/commit/?h=for-next/fixes&id=a0ab7e5bc9651d65637f50ee9c09e083919677ed

Should land for -rc2.

Will
Liam R. Howlett April 5, 2022, 2:12 p.m. UTC | #2
* Will Deacon <will@kernel.org> [220405 05:25]:
> Hi Liam,
> 
> On Mon, Apr 04, 2022 at 02:35:36PM +0000, Liam Howlett wrote:
> > Now that the vma iterator is in the kernel, remove the workaround.
> > 
> > Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
> > ---
> >  arch/arm64/kernel/elfcore.c | 7 -------
> >  1 file changed, 7 deletions(-)
> > 
> > diff --git a/arch/arm64/kernel/elfcore.c b/arch/arm64/kernel/elfcore.c
> > index 3ed39c61a510..930a0bc4cac4 100644
> > --- a/arch/arm64/kernel/elfcore.c
> > +++ b/arch/arm64/kernel/elfcore.c
> > @@ -8,13 +8,6 @@
> >  #include <asm/cpufeature.h>
> >  #include <asm/mte.h>
> >  
> > -#ifndef VMA_ITERATOR
> > -#define VMA_ITERATOR(name, mm, addr)	\
> > -	struct mm_struct *name = mm
> > -#define for_each_vma(vmi, vma)		\
> > -	for (vma = vmi->mmap; vma; vma = vma->vm_next)
> > -#endif
> 
> I already have this revert queued up as an arm64 fix:
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git/commit/?h=for-next/fixes&id=a0ab7e5bc9651d65637f50ee9c09e083919677ed
> 
> Should land for -rc2.

Thanks Will.

Note that I'm asking Andrew to include the set into mmotm and not
directly into linux-next this time as requested by Andrew.

Thanks,
Liam
diff mbox series

Patch

diff --git a/arch/arm64/kernel/elfcore.c b/arch/arm64/kernel/elfcore.c
index 3ed39c61a510..930a0bc4cac4 100644
--- a/arch/arm64/kernel/elfcore.c
+++ b/arch/arm64/kernel/elfcore.c
@@ -8,13 +8,6 @@ 
 #include <asm/cpufeature.h>
 #include <asm/mte.h>
 
-#ifndef VMA_ITERATOR
-#define VMA_ITERATOR(name, mm, addr)	\
-	struct mm_struct *name = mm
-#define for_each_vma(vmi, vma)		\
-	for (vma = vmi->mmap; vma; vma = vma->vm_next)
-#endif
-
 #define for_each_mte_vma(vmi, vma)					\
 	if (system_supports_mte())					\
 		for_each_vma(vmi, vma)					\