arm64: lib: Annotate {clear, copy}_page() as position-independent
authorWill Deacon <will@kernel.org>
Fri, 19 Mar 2021 10:01:09 +0000 (10:01 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 09:53:54 +0000 (10:53 +0100)
commit88ed31aab481e0451184924672afcbf484c5c3eb
tree0b8f2a9cf69e890606f007c130416d5deaa042c8
parent69e402a985418d5fc609730f5f8a81ca514bb823
arm64: lib: Annotate {clear, copy}_page() as position-independent

[ Upstream commit 8d9902055c57548bb342dc3ca78caa21e9643024 ]

clear_page() and copy_page() are suitable for use outside of the kernel
address space, so annotate them as position-independent code.

Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Quentin Perret <qperret@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210319100146.1149909-2-qperret@google.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm64/lib/clear_page.S
arch/arm64/lib/copy_page.S