arm64: entry: Avoid empty alternatives entries
authorJulien Thierry <jthierry@redhat.com>
Thu, 9 Jan 2020 16:02:59 +0000 (16:02 +0000)
committerWill Deacon <will@kernel.org>
Tue, 21 Jan 2020 09:55:18 +0000 (09:55 +0000)
commit108eae2d4d10cd29f7af75d45e38bc3bcde24a7c
tree11711c1c5bcff82c8ca5326250acd6b833519d33
parent98346023365931948b78436ae761544b09035b3b
arm64: entry: Avoid empty alternatives entries

kernel_ventry will create alternative entries to potentially replace
0 instructions with 0 instructions for EL1 vectors. While this does not
cause an issue, it pointlessly takes up some bytes in the alternatives
section.

Do not generate such entries.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Julien Thierry <jthierry@redhat.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/entry.S