arm64: page: use asm EXPORT_SYMBOL()

For a while now it's been possible to use EXPORT_SYMBOL() in assembly
files, which allows us to place exports immediately after assembly
functions, as we do for C functions.

As a step towards removing arm64ksyms.c, let's move the copy_page and
clear_page exports to the assembly files the functions are defined in.

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

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
This commit is contained in:
Mark Rutland 2018-12-07 18:08:19 +00:00 коммит произвёл Will Deacon
Родитель 23fe04c0c5
Коммит 50fdecb292
3 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -30,9 +30,6 @@
#include <asm/checksum.h>
EXPORT_SYMBOL(copy_page);
EXPORT_SYMBOL(clear_page);
/* user mem (segment) */
EXPORT_SYMBOL(__arch_copy_from_user);
EXPORT_SYMBOL(__arch_copy_to_user);

Просмотреть файл

@ -37,3 +37,4 @@ ENTRY(clear_page)
b.ne 1b
ret
ENDPROC(clear_page)
EXPORT_SYMBOL(clear_page)

Просмотреть файл

@ -87,3 +87,4 @@ alternative_else_nop_endif
ret
ENDPROC(copy_page)
EXPORT_SYMBOL(copy_page)