]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: page: use asm EXPORT_SYMBOL()
authorMark Rutland <mark.rutland@arm.com>
Fri, 7 Dec 2018 18:08:19 +0000 (18:08 +0000)
committerWill Deacon <will.deacon@arm.com>
Mon, 10 Dec 2018 11:50:11 +0000 (11:50 +0000)
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>
arch/arm64/kernel/arm64ksyms.c
arch/arm64/lib/clear_page.S
arch/arm64/lib/copy_page.S

index 74e29e69190b95eecfd635b02095be4a7c4d32db..784b257d9643978ff8b20a66a8c60f08cfda241c 100644 (file)
@@ -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);
index ef08e905e35b7c86f8665c2ee96f6c0113371cd2..6d13b0d64ad518326e547409d3c75ff8cb39f10f 100644 (file)
@@ -37,3 +37,4 @@ ENTRY(clear_page)
        b.ne    1b
        ret
 ENDPROC(clear_page)
+EXPORT_SYMBOL(clear_page)
index 076c43715e64afe7fcc12eabd753d355ca94558f..98313e24a987d981e8537b2b4f2ecb532687c1bd 100644 (file)
@@ -87,3 +87,4 @@ alternative_else_nop_endif
 
        ret
 ENDPROC(copy_page)
+EXPORT_SYMBOL(copy_page)