Skip to content

Commit affbb42

Browse files
author
Martin Schwidefsky
committed
[S390] Fix compile error in swab.h
The inline assembly in__arch_swab16p causes compile errors of the form: *error*: *invalid* '*asm*': operand number missing after %-*letter* The assembly uses the %O<n>/%R<n> notation but the first operand misses the operand number, it needs to be "%O1" instead of "%O". Reported-by: Gil Peleg <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]>
1 parent 37e37c2 commit affbb42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/s390/include/asm/swab.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static inline __u16 __arch_swab16p(const __u16 *x)
7777

7878
asm volatile(
7979
#ifndef __s390x__
80-
" icm %0,2,%O+1(%R1)\n"
80+
" icm %0,2,%O1+1(%R1)\n"
8181
" ic %0,%1\n"
8282
: "=&d" (result) : "Q" (*x) : "cc");
8383
#else /* __s390x__ */

0 commit comments

Comments
 (0)