Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 50fdecb2 authored by Mark Rutland's avatar Mark Rutland Committed by Will Deacon
Browse files

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: default avatarMark Rutland <mark.rutland@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 23fe04c0
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -30,9 +30,6 @@


#include <asm/checksum.h>
#include <asm/checksum.h>


EXPORT_SYMBOL(copy_page);
EXPORT_SYMBOL(clear_page);

	/* user mem (segment) */
	/* user mem (segment) */
EXPORT_SYMBOL(__arch_copy_from_user);
EXPORT_SYMBOL(__arch_copy_from_user);
EXPORT_SYMBOL(__arch_copy_to_user);
EXPORT_SYMBOL(__arch_copy_to_user);
+1 −0
Original line number Original line Diff line number Diff line
@@ -37,3 +37,4 @@ ENTRY(clear_page)
	b.ne	1b
	b.ne	1b
	ret
	ret
ENDPROC(clear_page)
ENDPROC(clear_page)
EXPORT_SYMBOL(clear_page)
+1 −0
Original line number Original line Diff line number Diff line
@@ -87,3 +87,4 @@ alternative_else_nop_endif


	ret
	ret
ENDPROC(copy_page)
ENDPROC(copy_page)
EXPORT_SYMBOL(copy_page)