Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3254377yba; Mon, 8 Apr 2019 14:40:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqwR5e4BXvUwuTDqONYBEtgEeEkfoYIMxvLFvxjRQAJo6JpwMrmoneP1Ggdo7G3zod6JZFlW X-Received: by 2002:a63:c23:: with SMTP id b35mr30237251pgl.298.1554759609232; Mon, 08 Apr 2019 14:40:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554759609; cv=none; d=google.com; s=arc-20160816; b=dfhkZUyiePH4kFpLGG2QeV8Z9vtntTWkrELSUA4AMMUe4iMFbO9ItdG0SMhzrR/2rF xtD0Cv7b6SsSYjhizcKYy4fnFQ5cqo/m9R8ye2uP5mPJdTQX73UQzt43ciSndx7jbMzv N34o802Lcvb/lxQUUOABJQE4UkkhHgeuim0vCDMsNEO1cCGXNVdg1qCZsxk7eacDY4wr 1y6N0jG6T4SGEGJh/r0YamBSr7t/fVLxJV3mzlP9PzCYrlG75K3XmM2BO0tPCGPVlv6A JzZ9kJGByn48LKHAQWKz6J+vIE7KmhU9mVFIBWDAb5j81RuyWd0IOJv8gXQJM/qaB48d F7+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=Ndl02SH47q2QyGJKe/h2DIaKUV6SDRS7kKns2Q/5FLM=; b=RTZGVaeS01svAHRetg+ixSAvMMgv8BaGWdiX0iLKbGZuk0WfvgKNA1gcIUTTZKJWdk ON7ss6mAxN31G6sqmsALx2FGnDsdQ+pNH+sYwPR2FND6LluD421uztfjy4aVYd/+qhNV BDgObvMH0J1cLC8W6s8CXjIhZ5opuG5YTlYlt3qjdttfM42iiebhwq+tiMWKl7mHgJqB ZCZs4cy6O1OXG0yx33mQzoyFQdit3iYGH7r5VfwQH0Yrav5uDLn6RoxiBlOC/nicp31Y yHVh9zuJl2weRpYsXmuiy2YjEF7oF70NmrKLykLZDpzEFID2hZau4hzyQabyF1y1PsXf BcSA== 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 f131si28580857pfc.92.2019.04.08.14.39.54; Mon, 08 Apr 2019 14:40:09 -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 S1727515AbfDHVbV (ORCPT + 99 others); Mon, 8 Apr 2019 17:31:21 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:34471 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726836AbfDHVbP (ORCPT ); Mon, 8 Apr 2019 17:31:15 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPA (Nemesis) id 1N9dbx-1gsJJO1ZYr-015ddJ; Mon, 08 Apr 2019 23:29:31 +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 , linux-kernel@vger.kernel.org Subject: [PATCH 12/12] [PROBABLY WRONG] s390: void '0' constraint in inline assembly Date: Mon, 8 Apr 2019 23:26:25 +0200 Message-Id: <20190408212648.2407234-12-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:/523MLjqVgMjdMMdQozji7Pa+uMzu03WWSDDICQXvB4QKMS7Oow 9r92BFyrTb5IKqo1HqDs52BLOY0TZ34uTbd8FSYI5IhCSrurBij39jiW27O7q2vFzUWCJ23 elyG7wQt33TnJbV51kEZPkWhZIIO6JuCn1H+FlnbnWoAktIs8mz1tmSX6s160zvESOXMw0V 1KIRwvFEYpMyU78lDufcg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:ZMEZuQtfJXc=:napCevtCoaEVls+FA1p7Nd oPgvXre3cFbpqmvHA+X9zsd1K6q9Ee2tX83v0ihEpDjRrJScc5RWLO8LFfDJ0nTTt2E3qB3HZ 7GkU5qokZFJCJ4UrqV3Q1xN8AOVlr4/bhWp5/XEmCySQKid/nXLMkKGXFVGNd29C9d3Jo3wyo 63h4qAfdeI+pUkvaQLdAZQLLfoZ333gJu/cz9tVYzspOzYWnX1D4iFfTIVIyioqspcTsqJ50G gQR3JXOhj1bs7xsRkcxWQMtzcCFaNnGc/XnIAbLuHlGGdEE77eyq3+6JPLHnqYV3tDEyRUguI m4DZFIV4Q7Gbtik9Q4qgotfKeaASZ9n59QH39gZkbZcgNR45JVV2WVtEGiX8YQPzVTGo0mVB1 1crcMlDZDFQD5hpogwjeVTKnhN/nhK3bfF9uZgR01dYbW/RAhQbt9+miA0icdwtGNLEU+nxGE r9Vz+FbMvburIaZhlkLPZiQsyPhlJ5/oh3lzOQJA3H+Mwzsq1o7PKnFPqZy8qIiKwWExrOvoT wDl4hOOmHwS89E1ZiMN0u1+lr9TMC86mx6HSbXknCjnd1MB+Y7YPcTVkVgj/g1GN1lDgI3731 7RcVcIVwDneHToETNWj3oCsSwYrAAfF6cmpl9MdAEeGE2/3zqMrhjveB5pnDht/edORPLkUYj GHtyzg3mbMuHhA2ME6d/j7krG9YYNJqB+1ZYDev47QNp9ZX+TEwVo3TQRt0LEOzjBZj4nPsVx /3zSAih3T9KK3ziT/lWLO8ECzndgjZn+QrMPrQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org clang does not understand the contraint "0" in the CALL_ON_STACK() macro: ../arch/s390/mm/maccess.c:117:10: error: invalid input constraint '0' in asm return CALL_ON_STACK(_memcpy_real, S390_lowcore.nodat_stack, ^ ../arch/s390/include/asm/processor.h:292:20: note: expanded from macro 'CALL_ON_STACK' [_fn] "X" (fn) CALL_FMT_##nr : CALL_CLOBBER_##nr); \ ^ :207:1: note: expanded from here CALL_FMT_3 ^ ../arch/s390/include/asm/processor.h:267:20: note: expanded from macro 'CALL_FMT_3' #define CALL_FMT_3 CALL_FMT_2, "d" (r4) ^ ../arch/s390/include/asm/processor.h:266:20: note: expanded from macro 'CALL_FMT_2' #define CALL_FMT_2 CALL_FMT_1, "d" (r3) ^ ../arch/s390/include/asm/processor.h:265:32: note: expanded from macro 'CALL_FMT_1' #define CALL_FMT_1 CALL_FMT_0, "0" (r2) ^ I don't know what the correct fix here would be, changing it to "d" made it build, since clang does understand this one. Signed-off-by: Arnd Bergmann --- arch/s390/include/asm/processor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/s390/include/asm/processor.h b/arch/s390/include/asm/processor.h index 700c650ffd4f..84c59c99668a 100644 --- a/arch/s390/include/asm/processor.h +++ b/arch/s390/include/asm/processor.h @@ -262,7 +262,7 @@ static __no_kasan_or_inline unsigned short stap(void) register unsigned long r4 asm("6") = (unsigned long)(arg5) #define CALL_FMT_0 -#define CALL_FMT_1 CALL_FMT_0, "0" (r2) +#define CALL_FMT_1 CALL_FMT_0, "d" (r2) #define CALL_FMT_2 CALL_FMT_1, "d" (r3) #define CALL_FMT_3 CALL_FMT_2, "d" (r4) #define CALL_FMT_4 CALL_FMT_3, "d" (r5) -- 2.20.0