arm64: vdso: remove aarch32_vdso_pages[]
authorMark Rutland <mark.rutland@arm.com>
Tue, 28 Apr 2020 16:49:18 +0000 (17:49 +0100)
committerWill Deacon <will@kernel.org>
Wed, 29 Apr 2020 09:52:53 +0000 (10:52 +0100)
commit74fc72e77dc5c8033d1b47d2c8a7229b4b83a746
treeab39fe65c558dc95aafb39314634d15ce0a474c9
parent86b8783701246a22a734824674cc3f87a5ed9f13
arm64: vdso: remove aarch32_vdso_pages[]

The aarch32_vdso_pages[] array is unnecessarily confusing. We only ever
use the C_VECTORS and C_SIGPAGE slots, and the other slots are unused
despite having corresponding mappings (sharing pages with the AArch64
vDSO).

Let's make this clearer by using separate variables for the vectors page
and the sigreturn page. A subsequent patch will clean up the C_* naming
and conflation of pages with mappings.

Note that since both the vectors page and sig page are single
pages, and the mapping is a single page long, their pages array do not
need to be NULL-terminated (and this was not the case with the existing
code for the sig page as it was the last entry in the aarch32_vdso_pages
array).

There should be no functional change as a result of this patch.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Vincenzo Frascino <vincenzo.frascino@arm.com>
Cc: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20200428164921.41641-2-mark.rutland@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/vdso.c