Skip to content

Commit

Permalink
[S390] Fix compile error in swab.h
Browse files Browse the repository at this point in the history
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 <gilpeleg@servframe.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Martin Schwidefsky committed Apr 11, 2012
1 parent 37e37c2 commit affbb42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/s390/include/asm/swab.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static inline __u16 __arch_swab16p(const __u16 *x)

asm volatile(
#ifndef __s390x__
" icm %0,2,%O+1(%R1)\n"
" icm %0,2,%O1+1(%R1)\n"
" ic %0,%1\n"
: "=&d" (result) : "Q" (*x) : "cc");
#else /* __s390x__ */
Expand Down

0 comments on commit affbb42

Please sign in to comment.