Commit c0622167 authored by Christophe Leroy's avatar Christophe Leroy Committed by Michael Ellerman

powerpc: fix location of two EXPORT_SYMBOL

Commit 9445aa1a ("ppc: move exports to definitions")
added EXPORT_SYMBOL() for memset() and flush_hash_pages() in
the middle of the functions.

This patch moves them at the end of the two functions.
Signed-off-by: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent da74f659
...@@ -104,7 +104,6 @@ _GLOBAL(memset) ...@@ -104,7 +104,6 @@ _GLOBAL(memset)
subf r6,r0,r6 subf r6,r0,r6
cmplwi 0,r4,0 cmplwi 0,r4,0
bne 2f /* Use normal procedure if r4 is not zero */ bne 2f /* Use normal procedure if r4 is not zero */
EXPORT_SYMBOL(memset)
_GLOBAL(memset_nocache_branch) _GLOBAL(memset_nocache_branch)
b 2f /* Skip optimised bloc until cache is enabled */ b 2f /* Skip optimised bloc until cache is enabled */
...@@ -140,6 +139,7 @@ _GLOBAL(memset_nocache_branch) ...@@ -140,6 +139,7 @@ _GLOBAL(memset_nocache_branch)
8: stbu r4,1(r6) 8: stbu r4,1(r6)
bdnz 8b bdnz 8b
blr blr
EXPORT_SYMBOL(memset)
/* /*
* This version uses dcbz on the complete cache lines in the * This version uses dcbz on the complete cache lines in the
......
...@@ -575,7 +575,6 @@ _GLOBAL(flush_hash_pages) ...@@ -575,7 +575,6 @@ _GLOBAL(flush_hash_pages)
rlwinm r8,r8,0,31,29 /* clear HASHPTE bit */ rlwinm r8,r8,0,31,29 /* clear HASHPTE bit */
stwcx. r8,0,r5 /* update the pte */ stwcx. r8,0,r5 /* update the pte */
bne- 33b bne- 33b
EXPORT_SYMBOL(flush_hash_pages)
/* Get the address of the primary PTE group in the hash table (r3) */ /* Get the address of the primary PTE group in the hash table (r3) */
_GLOBAL(flush_hash_patch_A) _GLOBAL(flush_hash_patch_A)
...@@ -634,6 +633,7 @@ _GLOBAL(flush_hash_patch_B) ...@@ -634,6 +633,7 @@ _GLOBAL(flush_hash_patch_B)
SYNC_601 SYNC_601
isync isync
blr blr
EXPORT_SYMBOL(flush_hash_pages)
/* /*
* Flush an entry from the TLB * Flush an entry from the TLB
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment