Received: by 2002:a17:90a:c8b:0:0:0:0 with SMTP id v11csp2290789pja; Fri, 19 Apr 2019 11:23:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqyD27Ek7Ch8mO8cXw0BeFuxH76aTJe5CKy6tW9+LZhP3xTr3IJ1x13v1wKHfKVfNZv6nzPn X-Received: by 2002:a62:4558:: with SMTP id s85mr5545609pfa.171.1555698183321; Fri, 19 Apr 2019 11:23:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555698183; cv=none; d=google.com; s=arc-20160816; b=qYV2DmIxTs6GEbq7FJMpSD5ZpXucS65nhcyVIohnbKzMenricd1c9cAoRIKWDG1aAL XTUDEN0yO0g8TPAU8aVoXNfFt9shxv8/fX3OdOaacRYImW+2zFWyfcdPE1FAFIDXKuJu dKBsHIiHNTUJHLYxOsOYaACovNo/OwLWD4P8WOOO3kmc36ovigkK9FrVNRpKT/F8EPTN tDg9A2jqQ3hp7v/sifg+bhk0KJfdVhHE1tdgnSMVzRAUcmEq8o+YsHHoDXgADKKBF27q tJaG2/gTpRBQC2XvWLRDs94ONkeGvQIoofyACWqVTk4pCg6oruIg9Np84YM5jum4OPnR m3Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=I2dC2tyzuGPeMYW8zJtLNO2SxFu0p9zAPUz6pi0qgOE=; b=HA4zAJ6sQGrXKMEMTvEzYLCbkDWU7JydbvDcCb4ENC0obcKMJWvWDu6dSSZKs8W6Gw YXMTL40lHiizBgOW/hl8O8ATid8pFaa6KyR/WMAYNBx3MMmZ3WAwbV6xFh3EOV5tY+c5 It9EwL28LiEfetMzUPYD97t0gdrByG9qiBCaeeyvRj7tMiyoZOPpdMpKl4CADwUqxkQO 4f6Ewg2Vbtv2LpWYu0a+XqJUngUC368QJPFN4LVjFCc28VI6rClnlaaWCdWy0EEbPZei Q5lt9y+f2GGlTYN0vVz5SreV8kr/NM3Apw5xHqowyUWXjc9k7kHHLWrPEcDUUH/sYh0U H7yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="SIFc/1m5"; 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 x4si5649824plv.329.2019.04.19.11.22.48; Fri, 19 Apr 2019 11:23:03 -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=pass header.i=@nifty.com header.s=dec2015msa header.b="SIFc/1m5"; 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 S1727635AbfDSSV4 (ORCPT + 99 others); Fri, 19 Apr 2019 14:21:56 -0400 Received: from condef-01.nifty.com ([202.248.20.66]:55998 "EHLO condef-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726673AbfDSSVy (ORCPT ); Fri, 19 Apr 2019 14:21:54 -0400 X-Greylist: delayed 351 seconds by postgrey-1.27 at vger.kernel.org; Fri, 19 Apr 2019 14:21:53 EDT Received: from conuserg-08.nifty.com ([10.126.8.71])by condef-01.nifty.com with ESMTP id x3J9nQ9u001367; Fri, 19 Apr 2019 18:49:26 +0900 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id x3J9mDiP012304; Fri, 19 Apr 2019 18:48:19 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com x3J9mDiP012304 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1555667301; bh=I2dC2tyzuGPeMYW8zJtLNO2SxFu0p9zAPUz6pi0qgOE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SIFc/1m5Ydc1pZqGsG3eCmgNiSfy3fEcTrRuHrMyDzt0b0jj8XwnxcaFy2Z7DWjGS riHzRpJ1EiNeDdL5Gc9dT3SupXXDMA3GtG2u3K8Pxca74T2MoE5mm4aTh1DIhR0sLH sr01yXX6NTPQ4hvahiHWs5qiPJx+5swXFNgMpDL//v75znyCBqWjafE4ok5qB1xpNw FU4tOnsrJEcK/hbukt8CeCEuN+fheDfVwyNT6ZjigMy9E0ZREQHML885hMwaFDg7W9 EcjaUqUPqSosX8RQMcdvBqJM8nvjfZ6C4I5zLTZlAu6aYHGZ2LzOBOi9XH5rueuPtj Uiob7ameRmtFA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Andrew Morton , linux-arch Cc: linux-s390@vger.kernel.org, Heiko Carstens , Arnd Bergmann , linuxppc-dev@lists.ozlabs.org, x86@kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Ingo Molnar , linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Christophe Leroy , Masahiro Yamada Subject: [PATCH v2 04/11] s390/cpacf: mark scpacf_query() as __always_inline Date: Fri, 19 Apr 2019 18:47:47 +0900 Message-Id: <20190419094754.24667-5-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190419094754.24667-1-yamada.masahiro@socionext.com> References: <20190419094754.24667-1-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This prepares to move CONFIG_OPTIMIZE_INLINING from x86 to a common place. We need to eliminate potential issues beforehand. If it is enabled for s390, the following error is reported: In file included from arch/s390/crypto/des_s390.c:19: ./arch/s390/include/asm/cpacf.h: In function 'cpacf_query': ./arch/s390/include/asm/cpacf.h:170:2: warning: asm operand 3 probably doesn't match constraints asm volatile( ^~~ ./arch/s390/include/asm/cpacf.h:170:2: error: impossible constraint in 'asm' Signed-off-by: Masahiro Yamada --- Changes in v2: - split into a separate patch arch/s390/include/asm/cpacf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/s390/include/asm/cpacf.h b/arch/s390/include/asm/cpacf.h index 3cc52e37b4b2..f316de40e51b 100644 --- a/arch/s390/include/asm/cpacf.h +++ b/arch/s390/include/asm/cpacf.h @@ -202,7 +202,7 @@ static inline int __cpacf_check_opcode(unsigned int opcode) } } -static inline int cpacf_query(unsigned int opcode, cpacf_mask_t *mask) +static __always_inline int cpacf_query(unsigned int opcode, cpacf_mask_t *mask) { if (__cpacf_check_opcode(opcode)) { __cpacf_query(opcode, mask); -- 2.17.1