arm64: Change elfcore for_each_mte_vma() to use VMA iterator
authorLiam Howlett <liam.howlett@oracle.com>
Fri, 18 Feb 2022 02:37:04 +0000 (02:37 +0000)
committerWill Deacon <will@kernel.org>
Fri, 25 Feb 2022 12:40:52 +0000 (12:40 +0000)
commit3a4f7ef4bed5bdc77a1ac8132f9f0650bbcb3eae
tree646f566e88c221d9779b594ae17d699d85605f00
parent731451ab3c0c6fe88142dbc73a74c71bd92a5cff
arm64: Change elfcore for_each_mte_vma() to use VMA iterator

Rework for_each_mte_vma() to use a VMA iterator instead of an explicit
linked-list. This will allow easy integration with the maple tree work
which removes the VMA list altogether.

Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20220218023650.672072-1-Liam.Howlett@oracle.com
[will: Folded in fix from Catalin]
Link: https://lore.kernel.org/r/YhUcywqIhmHvX6dG@arm.com
Signed-off--by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/elfcore.c