summaryrefslogtreecommitdiff
path: root/lib/raid6/s390vx.uc
diff options
context:
space:
mode:
authorVasily Gorbik <gor@linux.ibm.com>2019-06-09 14:37:57 +0200
committerHeiko Carstens <heiko.carstens@de.ibm.com>2019-06-11 09:48:25 +0200
commiteec0a43ddd3667bec3d1dfccb75df69ba6fce331 (patch)
treee91b80a41ef013b2e23ac6b35173b61054145d96 /lib/raid6/s390vx.uc
parenta20aa857e0c207c27d4b2c98af7d97539faf2cc5 (diff)
RAID/s390: remove invalid 'r' inline asm operand modifier
gcc silently ignores unsupported inline asm operand modifiers, effectively turning '%r0' into '%0', but upcoming clang 9 complains about them: lib/raid6/s390vx8.c:63:16: error: invalid operand in inline asm: 'VLM $2,$3,0,${1:r}' asm volatile ("VLM %2,%3,0,%r1" ^ Clean up what look like a typo 'r' inline asm operand modifier usage. Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'lib/raid6/s390vx.uc')
-rw-r--r--lib/raid6/s390vx.uc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/raid6/s390vx.uc b/lib/raid6/s390vx.uc
index 914ebe98fc21..9e597e1f91a4 100644
--- a/lib/raid6/s390vx.uc
+++ b/lib/raid6/s390vx.uc
@@ -60,7 +60,7 @@ static inline void LOAD_DATA(int x, u8 *ptr)
typedef struct { u8 _[16 * $#]; } addrtype;
register addrtype *__ptr asm("1") = (addrtype *) ptr;
- asm volatile ("VLM %2,%3,0,%r1"
+ asm volatile ("VLM %2,%3,0,%1"
: : "m" (*__ptr), "a" (__ptr), "i" (x),
"i" (x + $# - 1));
}