Commit 341ac6e4 authored by Jesper Nilsson's avatar Jesper Nilsson Committed by Linus Torvalds

CRISv10 string library add lineendings to asm

Add \n\ at end of lines inside asm statement to avoid warning.

No change except adding \n\ to end of line and correcting
whitespace has been done.
Removes warning about multi-line string literals when compiling
arch/cris/arch-v10/lib/string.c
Signed-off-by: default avatarJesper Nilsson <jesper.nilsson@axis.com>
Cc: Mikael Starvik <mikael.starvik@axis.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 2b05d2b3
...@@ -95,33 +95,33 @@ void *memcpy(void *pdst, ...@@ -95,33 +95,33 @@ void *memcpy(void *pdst,
If you want to check that the allocation was right; then If you want to check that the allocation was right; then
check the equalities in the first comment. It should say check the equalities in the first comment. It should say
"r13=r13, r11=r11, r12=r12" */ "r13=r13, r11=r11, r12=r12" */
__asm__ volatile (" __asm__ volatile ("\n\
;; Check that the following is true (same register names on ;; Check that the following is true (same register names on \n\
;; both sides of equal sign, as in r8=r8): ;; both sides of equal sign, as in r8=r8): \n\
;; %0=r13, %1=r11, %2=r12 ;; %0=r13, %1=r11, %2=r12 \n\
;; ;; \n\
;; Save the registers we'll use in the movem process ;; Save the registers we'll use in the movem process \n\
;; on the stack. ;; on the stack. \n\
subq 11*4,$sp subq 11*4,$sp \n\
movem $r10,[$sp] movem $r10,[$sp] \n\
\n\
;; Now we've got this: ;; Now we've got this: \n\
;; r11 - src ;; r11 - src \n\
;; r13 - dst ;; r13 - dst \n\
;; r12 - n ;; r12 - n \n\
\n\
;; Update n for the first loop ;; Update n for the first loop \n\
subq 44,$r12 subq 44,$r12 \n\
0: 0: \n\
movem [$r11+],$r10 movem [$r11+],$r10 \n\
subq 44,$r12 subq 44,$r12 \n\
bge 0b bge 0b \n\
movem $r10,[$r13+] movem $r10,[$r13+] \n\
\n\
addq 44,$r12 ;; compensate for last loop underflowing n addq 44,$r12 ;; compensate for last loop underflowing n \n\
\n\
;; Restore registers from stack ;; Restore registers from stack \n\
movem [$sp+],$r10" movem [$sp+],$r10"
/* Outputs */ : "=r" (dst), "=r" (src), "=r" (n) /* Outputs */ : "=r" (dst), "=r" (src), "=r" (n)
/* Inputs */ : "0" (dst), "1" (src), "2" (n)); /* Inputs */ : "0" (dst), "1" (src), "2" (n));
......
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