Skip to content

Commit 0cbdff4

Browse files
Al ViroLinus Torvalds
authored andcommitted
[PATCH] broken inline asm on s390 (misuse of labels)
use of explicit labels in inline asm is a Bad Idea(tm), since gcc can decide to inline the function in several places. Fixed by use of 1f/f: instead of .Lfitsin/.Lfitsin: Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent a828b8e commit 0cbdff4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎arch/s390/kernel/cpcmd.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ int __cpcmd(const char *cmd, char *response, int rlen, int *response_code)
4646
"lra 3,0(%4)\n"
4747
"lr 5,%5\n"
4848
"diag 2,4,0x8\n"
49-
"brc 8, .Litfits\n"
49+
"brc 8, 1f\n"
5050
"ar 5, %5\n"
51-
".Litfits: \n"
51+
"1: \n"
5252
"lr %0,4\n"
5353
"lr %1,5\n"
5454
: "=d" (return_code), "=d" (return_len)
@@ -64,9 +64,9 @@ int __cpcmd(const char *cmd, char *response, int rlen, int *response_code)
6464
"sam31\n"
6565
"diag 2,4,0x8\n"
6666
"sam64\n"
67-
"brc 8, .Litfits\n"
67+
"brc 8, 1f\n"
6868
"agr 5, %5\n"
69-
".Litfits: \n"
69+
"1: \n"
7070
"lgr %0,4\n"
7171
"lgr %1,5\n"
7272
: "=d" (return_code), "=d" (return_len)

0 commit comments

Comments
 (0)