From patchwork Mon Apr 8 21:26:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 161956 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp4174720jan; Mon, 8 Apr 2019 14:31:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqxuhxi/HxK+j0BZ8WfcsRqoMFtN71XGrHh+fdw5Jx8A6eulu59NK6DjaSYk0dlwIP3wYLco X-Received: by 2002:a17:902:6b8b:: with SMTP id p11mr9006228plk.225.1554759078001; Mon, 08 Apr 2019 14:31:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554759077; cv=none; d=google.com; s=arc-20160816; b=H3lzDHFD5vXLQi9xBYOf4EG+U05HJ5qr3FE/gEptbg/aZLHKMz0rb2F4JaHPmtkoZj 0EESNB0HA91B9lgPQIHf/gpRePyq0bBOUzJt7Ofoi+FA3i3FbMbFTnyt/kTI55YrMprE 28o+RJuIr9srfQGdglbzCzsNHEeTvQwIiUXgR3i02qYSpMCUfcfyJurHu5e8hXbAMVR3 CL00PcIMQbOTn2AN9apwGB5c6SQGrhyB+Rdt3HAlyjZpRjr7Tp60uLXOH87j7iM+6T2y 8yCqI/wVjjXJe4JYjBPFeKEwGD2TaNYKAhzsf3/qwhTEd2wrvnutkV/1sMCQXt7Z0smP awBw== 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 a18si26986340pgk.464.2019.04.08.14.31.17; Mon, 08 Apr 2019 14:31:17 -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 S1727297AbfDHVbR (ORCPT + 31 others); Mon, 8 Apr 2019 17:31:17 -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 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(-) -- 2.20.0 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"); } /*