diff options
author | Jesper Nilsson <jesper.nilsson@axis.com> | 2007-11-14 20:01:31 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-14 21:45:47 -0500 |
commit | 341ac6e4bee51ed5f83275fb311f3ef014f4bcd7 (patch) | |
tree | 6eee247d3fa7540e6e4b4a7641972d6d10ea7d17 /arch/cris | |
parent | 2b05d2b3b4d1e59e8710ec9274684d0d13eee34d (diff) |
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: Jesper Nilsson <jesper.nilsson@axis.com>
Cc: Mikael Starvik <mikael.starvik@axis.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/cris')
-rw-r--r-- | arch/cris/arch-v10/lib/string.c | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/arch/cris/arch-v10/lib/string.c b/arch/cris/arch-v10/lib/string.c index 15d6662b03b1..7161a2bef4fe 100644 --- a/arch/cris/arch-v10/lib/string.c +++ b/arch/cris/arch-v10/lib/string.c | |||
@@ -95,33 +95,33 @@ void *memcpy(void *pdst, | |||
95 | If you want to check that the allocation was right; then | 95 | If you want to check that the allocation was right; then |
96 | check the equalities in the first comment. It should say | 96 | check the equalities in the first comment. It should say |
97 | "r13=r13, r11=r11, r12=r12" */ | 97 | "r13=r13, r11=r11, r12=r12" */ |
98 | __asm__ volatile (" | 98 | __asm__ volatile ("\n\ |
99 | ;; Check that the following is true (same register names on | 99 | ;; Check that the following is true (same register names on \n\ |
100 | ;; both sides of equal sign, as in r8=r8): | 100 | ;; both sides of equal sign, as in r8=r8): \n\ |
101 | ;; %0=r13, %1=r11, %2=r12 | 101 | ;; %0=r13, %1=r11, %2=r12 \n\ |
102 | ;; | 102 | ;; \n\ |
103 | ;; Save the registers we'll use in the movem process | 103 | ;; Save the registers we'll use in the movem process \n\ |
104 | ;; on the stack. | 104 | ;; on the stack. \n\ |
105 | subq 11*4,$sp | 105 | subq 11*4,$sp \n\ |
106 | movem $r10,[$sp] | 106 | movem $r10,[$sp] \n\ |
107 | 107 | \n\ | |
108 | ;; Now we've got this: | 108 | ;; Now we've got this: \n\ |
109 | ;; r11 - src | 109 | ;; r11 - src \n\ |
110 | ;; r13 - dst | 110 | ;; r13 - dst \n\ |
111 | ;; r12 - n | 111 | ;; r12 - n \n\ |
112 | 112 | \n\ | |
113 | ;; Update n for the first loop | 113 | ;; Update n for the first loop \n\ |
114 | subq 44,$r12 | 114 | subq 44,$r12 \n\ |
115 | 0: | 115 | 0: \n\ |
116 | movem [$r11+],$r10 | 116 | movem [$r11+],$r10 \n\ |
117 | subq 44,$r12 | 117 | subq 44,$r12 \n\ |
118 | bge 0b | 118 | bge 0b \n\ |
119 | movem $r10,[$r13+] | 119 | movem $r10,[$r13+] \n\ |
120 | 120 | \n\ | |
121 | addq 44,$r12 ;; compensate for last loop underflowing n | 121 | addq 44,$r12 ;; compensate for last loop underflowing n \n\ |
122 | 122 | \n\ | |
123 | ;; Restore registers from stack | 123 | ;; Restore registers from stack \n\ |
124 | movem [$sp+],$r10" | 124 | movem [$sp+],$r10" |
125 | 125 | ||
126 | /* Outputs */ : "=r" (dst), "=r" (src), "=r" (n) | 126 | /* Outputs */ : "=r" (dst), "=r" (src), "=r" (n) |
127 | /* Inputs */ : "0" (dst), "1" (src), "2" (n)); | 127 | /* Inputs */ : "0" (dst), "1" (src), "2" (n)); |