diff options
author | Will Deacon <will@kernel.org> | 2021-03-19 13:01:09 +0300 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2021-03-19 15:01:19 +0300 |
commit | 8d9902055c57548bb342dc3ca78caa21e9643024 (patch) | |
tree | 66ac48d91ca18ab0e71a57531939766c69a8b559 /arch/arm64/lib/copy_page.S | |
parent | a1baa01f7691972964320349a9bb010386fe0dab (diff) | |
download | linux-8d9902055c57548bb342dc3ca78caa21e9643024.tar.xz |
arm64: lib: Annotate {clear, copy}_page() as position-independent
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
Diffstat (limited to 'arch/arm64/lib/copy_page.S')
-rw-r--r-- | arch/arm64/lib/copy_page.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/lib/copy_page.S b/arch/arm64/lib/copy_page.S index e7a793961408..29144f4cd449 100644 --- a/arch/arm64/lib/copy_page.S +++ b/arch/arm64/lib/copy_page.S @@ -17,7 +17,7 @@ * x0 - dest * x1 - src */ -SYM_FUNC_START(copy_page) +SYM_FUNC_START_PI(copy_page) alternative_if ARM64_HAS_NO_HW_PREFETCH // Prefetch three cache lines ahead. prfm pldl1strm, [x1, #128] @@ -75,5 +75,5 @@ alternative_else_nop_endif stnp x16, x17, [x0, #112 - 256] ret -SYM_FUNC_END(copy_page) +SYM_FUNC_END_PI(copy_page) EXPORT_SYMBOL(copy_page) |