CRISv10 usercopy library add lineendings to asm

Removes warning when compiling arch/cris/arch-v10/lib/usercopy.c

No change except adding \n\ on the end of the lines has been done.
Removes warning about multi-line string literals.

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>

authored by Jesper Nilsson and committed by Linus Torvalds 2b05d2b3 3eed6393

+157 -157
+157 -157
arch/cris/arch-v10/lib/usercopy.c
··· 92 92 .ifnc %0%1%2%3,$r13$r11$r12$r10 \n\ 93 93 .err \n\ 94 94 .endif \n\ 95 - 96 - ;; Save the registers we'll use in the movem process 97 - ;; on the stack. 98 - subq 11*4,$sp 99 - movem $r10,[$sp] 100 - 101 - ;; Now we've got this: 102 - ;; r11 - src 103 - ;; r13 - dst 104 - ;; r12 - n 105 - 106 - ;; Update n for the first loop 107 - subq 44,$r12 108 - 109 - ; Since the noted PC of a faulting instruction in a delay-slot of a taken 110 - ; branch, is that of the branch target, we actually point at the from-movem 111 - ; for this case. There is no ambiguity here; if there was a fault in that 112 - ; instruction (meaning a kernel oops), the faulted PC would be the address 113 - ; after *that* movem. 114 - 115 - 0: 116 - movem [$r11+],$r10 117 - subq 44,$r12 118 - bge 0b 119 - movem $r10,[$r13+] 120 - 1: 121 - addq 44,$r12 ;; compensate for last loop underflowing n 122 - 123 - ;; Restore registers from stack 124 - movem [$sp+],$r10 125 - 2: 126 - .section .fixup,\"ax\" 127 - 128 - ; To provide a correct count in r10 of bytes that failed to be copied, 129 - ; we jump back into the loop if the loop-branch was taken. There is no 130 - ; performance penalty for sany use; the program will segfault soon enough. 131 - 132 - 3: 133 - move.d [$sp],$r10 134 - addq 44,$r10 135 - move.d $r10,[$sp] 136 - jump 0b 137 - 4: 138 - movem [$sp+],$r10 139 - addq 44,$r10 140 - addq 44,$r12 141 - jump 2b 142 - 143 - .previous 144 - .section __ex_table,\"a\" 145 - .dword 0b,3b 146 - .dword 1b,4b 95 + \n\ 96 + ;; Save the registers we'll use in the movem process \n\ 97 + ;; on the stack. \n\ 98 + subq 11*4,$sp \n\ 99 + movem $r10,[$sp] \n\ 100 + \n\ 101 + ;; Now we've got this: \n\ 102 + ;; r11 - src \n\ 103 + ;; r13 - dst \n\ 104 + ;; r12 - n \n\ 105 + \n\ 106 + ;; Update n for the first loop \n\ 107 + subq 44,$r12 \n\ 108 + \n\ 109 + ; Since the noted PC of a faulting instruction in a delay-slot of a taken \n\ 110 + ; branch, is that of the branch target, we actually point at the from-movem \n\ 111 + ; for this case. There is no ambiguity here; if there was a fault in that \n\ 112 + ; instruction (meaning a kernel oops), the faulted PC would be the address \n\ 113 + ; after *that* movem. \n\ 114 + \n\ 115 + 0: \n\ 116 + movem [$r11+],$r10 \n\ 117 + subq 44,$r12 \n\ 118 + bge 0b \n\ 119 + movem $r10,[$r13+] \n\ 120 + 1: \n\ 121 + addq 44,$r12 ;; compensate for last loop underflowing n \n\ 122 + \n\ 123 + ;; Restore registers from stack \n\ 124 + movem [$sp+],$r10 \n\ 125 + 2: \n\ 126 + .section .fixup,\"ax\" \n\ 127 + \n\ 128 + ; To provide a correct count in r10 of bytes that failed to be copied, \n\ 129 + ; we jump back into the loop if the loop-branch was taken. There is no \n\ 130 + ; performance penalty for sany use; the program will segfault soon enough.\n\ 131 + \n\ 132 + 3: \n\ 133 + move.d [$sp],$r10 \n\ 134 + addq 44,$r10 \n\ 135 + move.d $r10,[$sp] \n\ 136 + jump 0b \n\ 137 + 4: \n\ 138 + movem [$sp+],$r10 \n\ 139 + addq 44,$r10 \n\ 140 + addq 44,$r12 \n\ 141 + jump 2b \n\ 142 + \n\ 143 + .previous \n\ 144 + .section __ex_table,\"a\" \n\ 145 + .dword 0b,3b \n\ 146 + .dword 1b,4b \n\ 147 147 .previous" 148 148 149 149 /* Outputs */ : "=r" (dst), "=r" (src), "=r" (n), "=r" (retn) ··· 253 253 If you want to check that the allocation was right; then 254 254 check the equalities in the first comment. It should say 255 255 "r13=r13, r11=r11, r12=r12" */ 256 - __asm__ volatile (" 256 + __asm__ volatile ("\n\ 257 257 .ifnc %0%1%2%3,$r13$r11$r12$r10 \n\ 258 258 .err \n\ 259 259 .endif \n\ 260 - 261 - ;; Save the registers we'll use in the movem process 262 - ;; on the stack. 263 - subq 11*4,$sp 264 - movem $r10,[$sp] 265 - 266 - ;; Now we've got this: 267 - ;; r11 - src 268 - ;; r13 - dst 269 - ;; r12 - n 270 - 271 - ;; Update n for the first loop 272 - subq 44,$r12 273 - 0: 274 - movem [$r11+],$r10 275 - 1: 276 - subq 44,$r12 277 - bge 0b 278 - movem $r10,[$r13+] 279 - 280 - addq 44,$r12 ;; compensate for last loop underflowing n 281 - 282 - ;; Restore registers from stack 283 - movem [$sp+],$r10 284 - 4: 285 - .section .fixup,\"ax\" 286 - 287 - ;; Do not jump back into the loop if we fail. For some uses, we get a 288 - ;; page fault somewhere on the line. Without checking for page limits, 289 - ;; we don't know where, but we need to copy accurately and keep an 290 - ;; accurate count; not just clear the whole line. To do that, we fall 291 - ;; down in the code below, proceeding with smaller amounts. It should 292 - ;; be kept in mind that we have to cater to code like what at one time 293 - ;; was in fs/super.c: 294 - ;; i = size - copy_from_user((void *)page, data, size); 295 - ;; which would cause repeated faults while clearing the remainder of 296 - ;; the SIZE bytes at PAGE after the first fault. 297 - ;; A caveat here is that we must not fall through from a failing page 298 - ;; to a valid page. 299 - 300 - 3: 301 - movem [$sp+],$r10 302 - addq 44,$r12 ;; Get back count before faulting point. 303 - subq 44,$r11 ;; Get back pointer to faulting movem-line. 304 - jump 4b ;; Fall through, pretending the fault didn't happen. 305 - 306 - .previous 307 - .section __ex_table,\"a\" 308 - .dword 1b,3b 260 + \n\ 261 + ;; Save the registers we'll use in the movem process \n\ 262 + ;; on the stack. \n\ 263 + subq 11*4,$sp \n\ 264 + movem $r10,[$sp] \n\ 265 + \n\ 266 + ;; Now we've got this: \n\ 267 + ;; r11 - src \n\ 268 + ;; r13 - dst \n\ 269 + ;; r12 - n \n\ 270 + \n\ 271 + ;; Update n for the first loop \n\ 272 + subq 44,$r12 \n\ 273 + 0: \n\ 274 + movem [$r11+],$r10 \n\ 275 + 1: \n\ 276 + subq 44,$r12 \n\ 277 + bge 0b \n\ 278 + movem $r10,[$r13+] \n\ 279 + \n\ 280 + addq 44,$r12 ;; compensate for last loop underflowing n \n\ 281 + \n\ 282 + ;; Restore registers from stack \n\ 283 + movem [$sp+],$r10 \n\ 284 + 4: \n\ 285 + .section .fixup,\"ax\" \n\ 286 + \n\ 287 + ;; Do not jump back into the loop if we fail. For some uses, we get a \n\ 288 + ;; page fault somewhere on the line. Without checking for page limits, \n\ 289 + ;; we don't know where, but we need to copy accurately and keep an \n\ 290 + ;; accurate count; not just clear the whole line. To do that, we fall \n\ 291 + ;; down in the code below, proceeding with smaller amounts. It should \n\ 292 + ;; be kept in mind that we have to cater to code like what at one time \n\ 293 + ;; was in fs/super.c: \n\ 294 + ;; i = size - copy_from_user((void *)page, data, size); \n\ 295 + ;; which would cause repeated faults while clearing the remainder of \n\ 296 + ;; the SIZE bytes at PAGE after the first fault. \n\ 297 + ;; A caveat here is that we must not fall through from a failing page \n\ 298 + ;; to a valid page. \n\ 299 + \n\ 300 + 3: \n\ 301 + movem [$sp+],$r10 \n\ 302 + addq 44,$r12 ;; Get back count before faulting point. \n\ 303 + subq 44,$r11 ;; Get back pointer to faulting movem-line. \n\ 304 + jump 4b ;; Fall through, pretending the fault didn't happen.\n\ 305 + \n\ 306 + .previous \n\ 307 + .section __ex_table,\"a\" \n\ 308 + .dword 1b,3b \n\ 309 309 .previous" 310 310 311 311 /* Outputs */ : "=r" (dst), "=r" (src), "=r" (n), "=r" (retn) ··· 425 425 If you want to check that the allocation was right; then 426 426 check the equalities in the first comment. It should say 427 427 something like "r13=r13, r11=r11, r12=r12". */ 428 - __asm__ volatile (" 428 + __asm__ volatile ("\n\ 429 429 .ifnc %0%1%2,$r13$r12$r10 \n\ 430 430 .err \n\ 431 431 .endif \n\ 432 - 433 - ;; Save the registers we'll clobber in the movem process 434 - ;; on the stack. Don't mention them to gcc, it will only be 435 - ;; upset. 436 - subq 11*4,$sp 437 - movem $r10,[$sp] 438 - 439 - clear.d $r0 440 - clear.d $r1 441 - clear.d $r2 442 - clear.d $r3 443 - clear.d $r4 444 - clear.d $r5 445 - clear.d $r6 446 - clear.d $r7 447 - clear.d $r8 448 - clear.d $r9 449 - clear.d $r10 450 - clear.d $r11 451 - 452 - ;; Now we've got this: 453 - ;; r13 - dst 454 - ;; r12 - n 455 - 456 - ;; Update n for the first loop 457 - subq 12*4,$r12 458 - 0: 459 - subq 12*4,$r12 460 - bge 0b 461 - movem $r11,[$r13+] 462 - 1: 463 - addq 12*4,$r12 ;; compensate for last loop underflowing n 464 - 465 - ;; Restore registers from stack 466 - movem [$sp+],$r10 467 - 2: 468 - .section .fixup,\"ax\" 469 - 3: 470 - move.d [$sp],$r10 471 - addq 12*4,$r10 472 - move.d $r10,[$sp] 473 - clear.d $r10 474 - jump 0b 475 - 476 - 4: 477 - movem [$sp+],$r10 478 - addq 12*4,$r10 479 - addq 12*4,$r12 480 - jump 2b 481 - 482 - .previous 483 - .section __ex_table,\"a\" 484 - .dword 0b,3b 485 - .dword 1b,4b 432 + \n\ 433 + ;; Save the registers we'll clobber in the movem process \n\ 434 + ;; on the stack. Don't mention them to gcc, it will only be \n\ 435 + ;; upset. \n\ 436 + subq 11*4,$sp \n\ 437 + movem $r10,[$sp] \n\ 438 + \n\ 439 + clear.d $r0 \n\ 440 + clear.d $r1 \n\ 441 + clear.d $r2 \n\ 442 + clear.d $r3 \n\ 443 + clear.d $r4 \n\ 444 + clear.d $r5 \n\ 445 + clear.d $r6 \n\ 446 + clear.d $r7 \n\ 447 + clear.d $r8 \n\ 448 + clear.d $r9 \n\ 449 + clear.d $r10 \n\ 450 + clear.d $r11 \n\ 451 + \n\ 452 + ;; Now we've got this: \n\ 453 + ;; r13 - dst \n\ 454 + ;; r12 - n \n\ 455 + \n\ 456 + ;; Update n for the first loop \n\ 457 + subq 12*4,$r12 \n\ 458 + 0: \n\ 459 + subq 12*4,$r12 \n\ 460 + bge 0b \n\ 461 + movem $r11,[$r13+] \n\ 462 + 1: \n\ 463 + addq 12*4,$r12 ;; compensate for last loop underflowing n\n\ 464 + \n\ 465 + ;; Restore registers from stack \n\ 466 + movem [$sp+],$r10 \n\ 467 + 2: \n\ 468 + .section .fixup,\"ax\" \n\ 469 + 3: \n\ 470 + move.d [$sp],$r10 \n\ 471 + addq 12*4,$r10 \n\ 472 + move.d $r10,[$sp] \n\ 473 + clear.d $r10 \n\ 474 + jump 0b \n\ 475 + \n\ 476 + 4: \n\ 477 + movem [$sp+],$r10 \n\ 478 + addq 12*4,$r10 \n\ 479 + addq 12*4,$r12 \n\ 480 + jump 2b \n\ 481 + \n\ 482 + .previous \n\ 483 + .section __ex_table,\"a\" \n\ 484 + .dword 0b,3b \n\ 485 + .dword 1b,4b \n\ 486 486 .previous" 487 487 488 488 /* Outputs */ : "=r" (dst), "=r" (n), "=r" (retn)