Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2509569ybi; Sun, 9 Jun 2019 13:37:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqz33fEPTVx5yjznNa0GOzzUfFCk83YkzR4bMIsQaWJMkqVIQdGGdP+YbL372UJQd8iiRPJD X-Received: by 2002:a17:902:2847:: with SMTP id e65mr62964874plb.319.1560112651432; Sun, 09 Jun 2019 13:37:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560112651; cv=none; d=google.com; s=arc-20160816; b=RXK1agecOQG4r4EdZQMh1oj3X/moGg70cFSFUE6sspTTGbC/wjJCJTBdHtupAfC7xp wYD4nspwWCjEt3ViCofqDNe49tkvVvn+36L1IfZHoSWX9NsB3hd7oKzP+5dLIuIgR8gw eQpYgr6oI3na6+3Cf0XSLwdBSCNsrSIwXsLyXqizA1Bu28VZdp6qYf+kJMwU51P0Glgw Xt3egMX1RfmcRkeJXHvsSejLU2HeGZTuc57Xp+5DLMf/lETr8XMnc5jO0ss2I6HE/DZ8 Jm0Gt9iUErmxXxAxbCRIFIIEJmYCrroCUvGHGL3a4XqJYI4uU2m+BaZKoFmwReP+7FFb B7aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=DJ9R2XlQXJKIHlHL3/N/vhTRIz38bxzVXxKS7ZNS8DY=; b=I+s0jIaQtVHdfXUex+UEKhV5XPzkiKP3zi7jaOk3r4bYFrNcInWDxGiMgi19ldX++S ++tqwnLFI8tii+X6y093jZvQE6EiuyI0bTnvDpg7/6ajjHUvA7usMp/X2kM8LeJIvy3Z mU4f/pS0/9yqC9MZ2V6WwiwppK75svXRCETE89nyX1d1ONib2NRLNIjhTxzNAkZfNEzF Zq7VWvo7fvAejed7TdcqifZRnZPa9/UcOYljtHGCQaHBiZnx6Tybo1NekcfCrGoFchcI mSP9JuguZiLBX1Pnui4x/URFvQpVhJdQxzC8yi1YNprwqkRNaLXYKJzzqlNR+h0afQpc Ls+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=oPSARS9Y; 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 y10si8122427pgq.173.2019.06.09.13.37.13; Sun, 09 Jun 2019 13:37:31 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=oPSARS9Y; 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 S1729347AbfFIUfs (ORCPT + 99 others); Sun, 9 Jun 2019 16:35:48 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:39387 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725933AbfFIUfs (ORCPT ); Sun, 9 Jun 2019 16:35:48 -0400 Received: by mail-pf1-f196.google.com with SMTP id j2so4031999pfe.6; Sun, 09 Jun 2019 13:35:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=DJ9R2XlQXJKIHlHL3/N/vhTRIz38bxzVXxKS7ZNS8DY=; b=oPSARS9YLSxo/hDDXv2bo4hO/a/dKMiiB3HhJ+4bBtSZzKy9jbqPjhr9EssGdKOweL 3xiLOcWqrMwl3xO34+XGcwE/8BNlTG+2PhjFXNVVLE9JfALHuzTySdKA/nhnv63VNRR+ 7q8oiPZCq92XSI65VcEobSwjYPw/GB8dXDwcBqMT9b0jFr1m76aUANdTgzio7Awb+Brj /3x11x9Uo8IgmhKMwgAxAUu7JE0sOYnLNGOX+mA0T+vhKYL6Xph70BCPxFF1oZJ1azlI +QxWxUwJO6AAtOVlkH9fXlbspYwbrHVRGSH/ZCAc9pJTgehPdq+KN8TGV0bZoLt0tYGP eZrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=DJ9R2XlQXJKIHlHL3/N/vhTRIz38bxzVXxKS7ZNS8DY=; b=FjoykL5TGaJfjfuLb3WZ3F+ql1C9ecls1qUX+v7WX5pW3r40kaz8h7so+Mr13uz+Uv Y1nYsJK37ERaOQwyQYDgIzfF231+zjy/t1D8aR9ezWkBenbXwaM1+BqZHGObA8tJDu6r L9DQys4WStjxm7nEPfQgSuKS2cuS3VTiXbhvuBrn2ZFE/aBRl22VQKOyxkeJTNaTDKQc maAD55DER1cWzR4NDdjUDhl0K/p5ZWnejAE3cln2hY4Rqfj5UizGTtLX6hNqfxw9Zf9L BefFnPs2xnqom21GnbVQT8+LkrygcFFpwXamyf9q110vdPXrTflvxrdgrCmGYOnntusu 5/gg== X-Gm-Message-State: APjAAAVKSRNXbULK6YVobpTMSXztZd9H0WEsCT2dWgDKC5vozXM6w9R3 Q6s+aIUGRmbFX/VzuELGyXQ= X-Received: by 2002:a62:683:: with SMTP id 125mr63737117pfg.168.1560112547604; Sun, 09 Jun 2019 13:35:47 -0700 (PDT) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id l3sm8047998pgl.3.2019.06.09.13.35.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Jun 2019 13:35:46 -0700 (PDT) From: Guenter Roeck To: Heiko Carstens Cc: Vasily Gorbik , Christian Borntraeger , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, Guenter Roeck Subject: [PATCH] s390: mark __ctl_set_bit and __ctl_clear_bit as __always_inline Date: Sun, 9 Jun 2019 13:35:44 -0700 Message-Id: <1560112544-10440-1-git-send-email-linux@roeck-us.net> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org s390:tinyconfig fails to build with gcc 8.3.0. arch/s390/include/asm/ctl_reg.h:52:2: error: impossible constraint in 'asm' asm volatile( \ ^~~ arch/s390/include/asm/ctl_reg.h:62:2: note: in expansion of macro '__ctl_store' __ctl_store(reg, cr, cr); ^~~~~~~~~~~ s390/include/asm/ctl_reg.h:41:2: error: impossible constraint in 'asm' asm volatile( \ ^~~ arch/s390/include/asm/ctl_reg.h:64:2: note: in expansion of macro '__ctl_load' __ctl_load(reg, cr, cr); ^~~~~~~~~~ Marking __ctl_set_bit and __ctl_clear_bit as __always_inline fixes the problem. Fixes: 9012d011660e ("compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING") Signed-off-by: Guenter Roeck --- arch/s390/include/asm/ctl_reg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/s390/include/asm/ctl_reg.h b/arch/s390/include/asm/ctl_reg.h index 4600453536c2..3bda757317cf 100644 --- a/arch/s390/include/asm/ctl_reg.h +++ b/arch/s390/include/asm/ctl_reg.h @@ -55,7 +55,7 @@ : "i" (low), "i" (high)); \ } while (0) -static inline void __ctl_set_bit(unsigned int cr, unsigned int bit) +static __always_inline void __ctl_set_bit(unsigned int cr, unsigned int bit) { unsigned long reg; @@ -64,7 +64,7 @@ static inline void __ctl_set_bit(unsigned int cr, unsigned int bit) __ctl_load(reg, cr, cr); } -static inline void __ctl_clear_bit(unsigned int cr, unsigned int bit) +static __always_inline void __ctl_clear_bit(unsigned int cr, unsigned int bit) { unsigned long reg; -- 2.7.4