Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp737021imu; Wed, 23 Jan 2019 04:56:56 -0800 (PST) X-Google-Smtp-Source: ALg8bN62GxcWSWpQybckrAaus7irL9LyKUffCur1FreHwwsKYc5r0bz9+QVoWLsDlgYb3rhIn6bA X-Received: by 2002:a62:8985:: with SMTP id n5mr1917945pfk.255.1548248216087; Wed, 23 Jan 2019 04:56:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548248216; cv=none; d=google.com; s=arc-20160816; b=uuKDEbynLYJcu6EsewLlFVoYmD11+wrik0rrpBMjM/0R9bgTTNAHlYJefjP6ht+U4S c1+SoLRCf8vLeNZWdiONBtADBCMgIxJrpe/uilHlqRxqRANlUOE43Hd6bKF4Rb8584G2 cUuR7JhrC81HrYmrcfC+vekTwjJGHK71cFcYtJxbKaxIjmvfvQWGIsRSQq8dGMBcV24U kDETZg6ZzOeGcp9euBhPnXP6GMlk8LHb3oNFHt6uQvXAgQleVrOnXs/pog41vKLahcps ZOHziHwQM6vls2NZzTXElV7sv5zJdb33K2cCujwz7MhGnH6vW4npXnNojOmqA3VG9VJv C66A== 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 :message-id:date:subject:cc:to:from; bh=qSxnX/Lfd6gY76ahY1VU8wnsHqE/+G4E8WN5R2sa4SQ=; b=BtYOGV5J/FxhfHOLHeUcxtQqeqHae46wkQxH0ygPIeqzgTCjwlVsPfE5dW1tTG6O4a Q5jeaQfynGlXzV5IU0a0A+GomHht1bJFtll/g49yfnvqb1g2fc34WtnxvGwTa95sAqyY NtoPCHLtsHlfSufiXOaABWkM0w/ZvGFdtGTIvk50xf8fiJziZImrnE07SpONO5SkBgoP FerH1VrP86W9Xo7CUgYfOOCPBLRZAEl253UGzIaP6nyFs66tMU1eOaeAS0XCVbmk4t+3 L9laeD+SaEK8r/LBPAWhE83ZcXUadW/08AmRxnFKoebSaVy/IEVA9Mx0e6yjXdcqR8Cd 5v3g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l38si19441667plb.48.2019.01.23.04.56.40; Wed, 23 Jan 2019 04:56:56 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726277AbfAWMzR (ORCPT + 99 others); Wed, 23 Jan 2019 07:55:17 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:37874 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726167AbfAWMzR (ORCPT ); Wed, 23 Jan 2019 07:55:17 -0500 Received: by mail-wm1-f65.google.com with SMTP id g67so1849406wmd.2 for ; Wed, 23 Jan 2019 04:55:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=qSxnX/Lfd6gY76ahY1VU8wnsHqE/+G4E8WN5R2sa4SQ=; b=KEYuJf8h3yuBnizsfs1b+RtkFdc2cagM27NqWbZU53F4X84RgLXtHAdFUzbRE7SyFd CfXKTVIwX2tc4HLvdQMvKbTNELjL32PJSnAH/lEtxm5cDZhrN/fFPs0IMwWB0IKPqMIg E28zYyeLadTQMM+/fF6gpNrb3MYGUc0oeAy0T1pT4L6tKa6hZD1sheJqddHwJiwyEQ3F g8HnVmLPkZOHUrISb2eSRwGVva9w4h6FjTVrBweYk7kUaQ8Jz/PVFycz44DKwbqAuUjF 8dO17/5u8TLPHXdbMc84psso+YoTkcBi0TY5tJITK+jmcYUq1qc5/kwGZg3qVy7GwwLi 84Ng== X-Gm-Message-State: AJcUuke+OBFOxUugem/U1moylNppZzpuqcpJLfQCTb5se6qsPlekh5ab Y7fQdVX2jqIBIIoVy/w0RsV9fw== X-Received: by 2002:a7b:c757:: with SMTP id w23mr2508967wmk.59.1548248115783; Wed, 23 Jan 2019 04:55:15 -0800 (PST) Received: from labbott-redhat.redhat.com (ovpn-brq.redhat.com. [213.175.37.11]) by smtp.gmail.com with ESMTPSA id x15sm130679211wrs.27.2019.01.23.04.55.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Jan 2019 04:55:15 -0800 (PST) From: Laura Abbott To: Martin Schwidefsky , Heiko Carstens Cc: Laura Abbott , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] s390/jump_label: Correct asm contraint Date: Wed, 23 Jan 2019 13:55:13 +0100 Message-Id: <20190123125513.20210-1-labbott@redhat.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There's a build failure with gcc9: ./arch/s390/include/asm/jump_label.h: Assembler messages: ./arch/s390/include/asm/jump_label.h:23: Error: bad expression ./arch/s390/include/asm/jump_label.h:23: Error: junk at end of line, first unrecognized character is `r' make[1]: *** [scripts/Makefile.build:277: init/main.o] Error 1 According to the toolchain people, the actual issue is the use of "X" constraint which is too permissive. Switch to using "i" instead. Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1668703 Signed-off-by: Laura Abbott --- arch/s390/include/asm/jump_label.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/s390/include/asm/jump_label.h b/arch/s390/include/asm/jump_label.h index e2d3e6c43395..41dabfd8518d 100644 --- a/arch/s390/include/asm/jump_label.h +++ b/arch/s390/include/asm/jump_label.h @@ -22,7 +22,7 @@ static inline bool arch_static_branch(struct static_key *key, bool branch) ".long 0b-.,%l[label]-.\n" ".quad %0-.\n" ".popsection\n" - : : "X" (&((char *)key)[branch]) : : label); + : : "i" (&((char *)key)[branch]) : : label); return false; label: return true; @@ -36,7 +36,7 @@ static inline bool arch_static_branch_jump(struct static_key *key, bool branch) ".long 0b-.,%l[label]-.\n" ".quad %0-.\n" ".popsection\n" - : : "X" (&((char *)key)[branch]) : : label); + : : "i" (&((char *)key)[branch]) : : label); return false; label: return true; -- 2.20.1