Commit bf4ec24f authored by Sebastian Ott's avatar Sebastian Ott Committed by Martin Schwidefsky

s390/pci: cleanup clp inline assembly

Tell gcc that the memory region pointed to by req will be used (and
changed). Also remove the (now) superfluous memory constraint.
Acked-by: default avatarGerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: default avatarSebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 151a0eb6
...@@ -19,18 +19,19 @@ ...@@ -19,18 +19,19 @@
* Call Logical Processor * Call Logical Processor
* Retry logic is handled by the caller. * Retry logic is handled by the caller.
*/ */
static inline u8 clp_instr(void *req) static inline u8 clp_instr(void *data)
{ {
u64 ilpm; struct { u8 _[CLP_BLK_SIZE]; } *req = data;
u64 ignored;
u8 cc; u8 cc;
asm volatile ( asm volatile (
" .insn rrf,0xb9a00000,%[ilpm],%[req],0x0,0x2\n" " .insn rrf,0xb9a00000,%[ign],%[req],0x0,0x2\n"
" ipm %[cc]\n" " ipm %[cc]\n"
" srl %[cc],28\n" " srl %[cc],28\n"
: [cc] "=d" (cc), [ilpm] "=d" (ilpm) : [cc] "=d" (cc), [ign] "=d" (ignored), "+m" (*req)
: [req] "a" (req) : [req] "a" (req)
: "cc", "memory"); : "cc");
return cc; return cc;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment