aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/pci
diff options
context:
space:
mode:
authorSebastian Ott <sebott@linux.vnet.ibm.com>2013-01-31 19:53:12 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2013-02-14 15:55:16 +0100
commitbf4ec24ff8ab54d56c835eb61212a1e87270d7c8 (patch)
tree55bdbf0d137cbfe09bb9b566980a25cd963a57e6 /arch/s390/pci
parent151a0eb6c8e4398f76453c791d8fd8f8167a7517 (diff)
downloadkernel_goldelico_gta04-bf4ec24ff8ab54d56c835eb61212a1e87270d7c8.zip
kernel_goldelico_gta04-bf4ec24ff8ab54d56c835eb61212a1e87270d7c8.tar.gz
kernel_goldelico_gta04-bf4ec24ff8ab54d56c835eb61212a1e87270d7c8.tar.bz2
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: Gerald Schaefer <gerald.schaefer@de.ibm.com> Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/pci')
-rw-r--r--arch/s390/pci/pci_clp.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/s390/pci/pci_clp.c b/arch/s390/pci/pci_clp.c
index 2c84714..702bd26 100644
--- a/arch/s390/pci/pci_clp.c
+++ b/arch/s390/pci/pci_clp.c
@@ -19,18 +19,19 @@
* Call Logical Processor
* 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;
asm volatile (
- " .insn rrf,0xb9a00000,%[ilpm],%[req],0x0,0x2\n"
+ " .insn rrf,0xb9a00000,%[ign],%[req],0x0,0x2\n"
" ipm %[cc]\n"
" srl %[cc],28\n"
- : [cc] "=d" (cc), [ilpm] "=d" (ilpm)
+ : [cc] "=d" (cc), [ign] "=d" (ignored), "+m" (*req)
: [req] "a" (req)
- : "cc", "memory");
+ : "cc");
return cc;
}