Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3254283yba; Mon, 8 Apr 2019 14:40:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqznXgnxtUjG7Nhq9azaVEe4R0qtKxbY/AIPSTbctpYJVdQyq59WAAyl84CbKl6LxdglFBSu X-Received: by 2002:a62:6587:: with SMTP id z129mr32690474pfb.88.1554759601969; Mon, 08 Apr 2019 14:40:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554759601; cv=none; d=google.com; s=arc-20160816; b=glF08SlnXQ3rQ9F0F4Gv2kvx8tqtkiJKYRo+gRS5UVEv2IizbKdkvSQU+qxVBuZT9V 07mG0Egkb9BW4giLNPWZ/7vjnsXNinKoI4YVENR/X0TEB2sSkvtt38YwDTXHgBuVf3Ve EX2BZ5Tpk7dmiuvX1k50rOw/E+oaq75fFT6VUzMpvC4452jM1/JA90tIv2VESObEc8d9 dD7uRUkFddV0G5rahJgvPZwgCZR2E7LBOuTn8pPODAThmO5vzFOZ93vM4lS38ysXsoPw hmXrcQzSOH4+8DRGF0z21iWvN9MBoxZNSjS3mZinUTSrhbB3feCIObKCnhTt0yBml5De Gj+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=fYi0YVBfAltBhOTsByW2QLnjaExAJZXGuGKJMG1A0NI=; b=w7P32F3b2ztqI5RMaC4DClKhe/R1Ei2kdUfoxlKp9Mu3TbKcZC5h9e7byCbQOpfXrG FbLknhh2U1DzbG8rDi6PZk6DifkXzZuFiiV0NWy8h5JIMUFEF3M2iABr7U+oq12qnYk3 9TkutX0Jz6TRxF5MUp4TrkU56p/pH7dvqAGH+YwsBPldFRH9no+/fH7pbU2gHwfsxDRu nmUQeUOwskZVpu0wFnryc+FHiO9EWh544Ta0bfP/hw90bPhSPajzyNAqpecNzLkGOO5P BUu724gHBXVgUycTKmgzLU7baJL/AQ2G3yNNwnE2RGfmQNsngtUAT6Zg6gLwnctAMEOg MkSw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c24si20163457plo.220.2019.04.08.14.39.46; Mon, 08 Apr 2019 14:40:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727115AbfDHVbQ (ORCPT + 99 others); Mon, 8 Apr 2019 17:31:16 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:59935 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726826AbfDHVbO (ORCPT ); Mon, 8 Apr 2019 17:31:14 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPA (Nemesis) id 1Mv3I0-1gvwTg0DAW-00r1Bs; Mon, 08 Apr 2019 23:28:48 +0200 From: Arnd Bergmann To: Martin Schwidefsky , Heiko Carstens Cc: clang-built-linux@googlegroups.com, Nick Desaulniers , Nathan Chancellor , linux-s390@vger.kernel.org, Arnd Bergmann , Vasily Gorbik , "Steven Rostedt (VMware)" , linux-kernel@vger.kernel.org Subject: [PATCH 09/12] s390: make __load_psw_mask work with clang Date: Mon, 8 Apr 2019 23:26:22 +0200 Message-Id: <20190408212648.2407234-9-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190408212648.2407234-1-arnd@arndb.de> References: <20190408212648.2407234-1-arnd@arndb.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:ueHq0cRCIAo1fFwSIyE2OQG9Knnqslc/mc2Pd6mGkzSBwQeAWSh qJ9D6svp43z9Gx3F/xTbVSWAy+dqDLwAZO8BpGXmwqVAgU1yMAC36mhFYN0jldSiugWrJte 31rw6BcRyxpqpsKIe0KqWOX0mSAD+SmeM0yl1R/K8FLitvF0JtWylz69g4qFhBl1kfR3GX9 owWxvZYRQ0hAo5FKI1aOQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:04y7NOSLvhs=:ayvR2CDPLuO9o1tDpp1gEE Iqz9oxoXaMM+DNHFnraJChoHvR9UHM11BWPXNEqts/GtpAspB9xW0O8d1SZOjlHPyfIMIfoY3 ay9gsNUVttNVJCTSrxFzwaGpZU2MZ24SI0cKxJi5pPGzAGMIz+zZ/xpEZTKiOe3P+p6g4xz5Y fLgYl66IEKsasdIcCVpAc/zVrvDCi+aEjD2K817h3VQcx0ERN4lwp31m5fX+QiLO3xE1xWyca eSUmtzXw1Fld2I1Iqa9BoSeHZJCCKlUY7bLzCMApBQsT06EIxv4EhLT2ZMMu+24mnCXxz3gUA c9AelG5DWQPRbkND4xuoekINPqAdC/l1IXeCRIIWJ/UdU6cJtw3W+ScHZ1jve3h7FeO6VKn79 J8uthO48Wy04Wvq2njXVJy5WyAAXlPQjF4fn+eF4DbqtFJ0J4qe66r4iFCw8v6oUBlvzhOeeE JTKYJW4qVtmWeZS0xBBy5s2pUCbVTS11f58QT2GlgIKlAxX3eP8m/ls39YiY+AWJwLK/jdsJl McHs3OKBHI9dBsQPZ2CHRzma9iQIIpZla03mT4O6FUqZc6xL8HB1o50m6pSlUILa+uCnP2KlM kkH3k3mefLZ89UK+fLVop7HpBX++vgrSXTU6TPDo0mdeEUQ41V1wdRMKllJQ1Waa9RntAKqJ7 n7Oqdt59wshwFBwunH1pFeVxnVNXisxA9EgIYXXjHSQF54e1S3NtoE8gseaRqGDFi8awrk9M7 07pQHguhgJJ+0oeCjJ1i1ry1FicniKIldVWoWQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org clang fails to use the %O and %R inline assembly modifiers the same way as gcc, leading to build failures with every use of __load_psw_mask(): /tmp/nmi-4a9f80.s: Assembler messages: /tmp/nmi-4a9f80.s:571: Error: junk at end of line: `+8(160(%r11))' /tmp/nmi-4a9f80.s:626: Error: junk at end of line: `+8(160(%r11))' Replace these with a more conventional way of passing the addresses that should work with both clang and gcc. Signed-off-by: Arnd Bergmann --- arch/s390/include/asm/processor.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/s390/include/asm/processor.h b/arch/s390/include/asm/processor.h index 81038ab357ce..700c650ffd4f 100644 --- a/arch/s390/include/asm/processor.h +++ b/arch/s390/include/asm/processor.h @@ -339,10 +339,10 @@ static __no_kasan_or_inline void __load_psw_mask(unsigned long mask) asm volatile( " larl %0,1f\n" - " stg %0,%O1+8(%R1)\n" - " lpswe %1\n" + " stg %0,%1\n" + " lpswe %2\n" "1:" - : "=&d" (addr), "=Q" (psw) : "Q" (psw) : "memory", "cc"); + : "=&d" (addr), "=Q" (psw.addr) : "Q" (psw) : "memory", "cc"); } /* -- 2.20.0