diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2017-12-10 06:22:37 +0100 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2017-12-10 23:48:54 +0100 |
commit | 5cf97ebd8b40e2b1791136fc1476d17365864b18 (patch) | |
tree | 28f7123d675169d6e360832b9c1e879845219162 /arch/xtensa/lib/strncpy_user.S | |
parent | xtensa: clean up word alignment macros in assembly code (diff) | |
download | linux-5cf97ebd8b40e2b1791136fc1476d17365864b18.tar.xz linux-5cf97ebd8b40e2b1791136fc1476d17365864b18.zip |
xtensa: clean up functions in assembly code
Use ENTRY and ENDPROC throughout arch/xtensa/lib assembly sources.
Introduce asm/linkage.h and define xtensa-specific __ALIGN macro there.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/lib/strncpy_user.S')
-rw-r--r-- | arch/xtensa/lib/strncpy_user.S | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/xtensa/lib/strncpy_user.S b/arch/xtensa/lib/strncpy_user.S index 827e1b393f3f..5fce16b67dca 100644 --- a/arch/xtensa/lib/strncpy_user.S +++ b/arch/xtensa/lib/strncpy_user.S @@ -12,6 +12,7 @@ */ #include <linux/errno.h> +#include <linux/linkage.h> #include <variant/core.h> #include <asm/asmmacro.h> @@ -47,10 +48,8 @@ # a12/ tmp .text -.align 4 -.global __strncpy_user -.type __strncpy_user,@function -__strncpy_user: +ENTRY(__strncpy_user) + entry sp, 16 # minimal stack frame # a2/ dst, a3/ src, a4/ len mov a11, a2 # leave dst in return value register @@ -202,6 +201,7 @@ EX(10f) s8i a9, a11, 0 sub a2, a11, a2 # compute strlen retw +ENDPROC(__strncpy_user) .section .fixup, "ax" .align 4 |