Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1627612yba; Fri, 17 May 2019 02:30:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYoSVoh2DEj2UfdQD3lrppUOSq1WlxTepR8kd5A5ugqHM38XM9ZfduVSLGE9IvuVuAWLpM X-Received: by 2002:a62:d244:: with SMTP id c65mr21228623pfg.173.1558085458797; Fri, 17 May 2019 02:30:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558085458; cv=none; d=google.com; s=arc-20160816; b=sJgbT72Ah+q9lF7U53OYkRh50DEsP/OZMIYw5Ftrke2Jp5rU2q2hrOtKrmdMvQOJY6 xxFyDR/tR0Iot7ddaVqWQ8n/0ncmTEBuLGhDaDqIQ208+knpHiak/8eIh9+svFzRD0C4 c3NWNjftoI6pBA4bEM1Afs4GjfHOgdGi45+qRiyxa4ufYLN4EkHcI/iv8ppPgEgbw3h0 bY7WuZe7+S706hVO/cMbkt9koTIulir563VjWq7jAcFNO3AJUG7x8Sch2JCco5wJvMDc m4ED7pt43gVd/hQtXAYmZkOQ2v0eQ6ej2QGC/BbyaCexqfGVvWtdAG/WAjLhJefzi7yv eXAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=WnpLsGsAmml7Dms1w83QAyOBiQmZaG3wlsmHMldsj2A=; b=YwVuBBg6YjepN0kRSJngKD62hIAjm7t8XaioetDRRn/qIZrp/u7KTz6TWN4F3tjjfF PhGzruXuC0tbYxlzl641mJwfn5VNewF9nyAchMHSpQOZVS1jRhCRzLQhwaMfz9d7EbBt lxg1HxH/uclx75h8ocnh48e8ImceAOwr2nWqASQgO4ECNAFTdoalg6OZlNtPmzf7tL+F aH4s8F1ReyMEP3hyIXswjPzpzp3LFfEviIyZQwieSuXvY6g7V02J63ig8X0NTXycvcc8 NY8HmJpX14yVHKTgMGV/LiKkMAyK1fJVxWLwqwHcKOb7YDVXPoQr9fpNsPGUZlDnZyt6 9xsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="Mm8c/h7M"; 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 u8si7398748plz.5.2019.05.17.02.30.43; Fri, 17 May 2019 02:30:58 -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="Mm8c/h7M"; 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 S1728600AbfEQIrt (ORCPT + 99 others); Fri, 17 May 2019 04:47:49 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:35174 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728068AbfEQIrp (ORCPT ); Fri, 17 May 2019 04:47:45 -0400 Received: from mail-ua1-f48.google.com (mail-ua1-f48.google.com [209.85.222.48]) (authenticated) by conssluserg-02.nifty.com with ESMTP id x4H8lfpY011895; Fri, 17 May 2019 17:47:42 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com x4H8lfpY011895 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1558082862; bh=WnpLsGsAmml7Dms1w83QAyOBiQmZaG3wlsmHMldsj2A=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Mm8c/h7MoQAjKtaXJFbsIiwDOhCleo62G2yN0ENEumdsR3x9bkTim8ZUAsmvNKYGb YjzTHjmOZ5eEoT6dxf96KaN4cwDoBx0EA7QLggY+Uc4rEkV/+egiiQChRb8v7K7mME 103BM4I9xO6+LhP0loRJJ7E5IYURnrnnwstvc9exSd9DuvfxeeZUFgfNa/hXC9jT9h iWv5o81UBz3vJxNzCokSyHdEDhZEGmx6/CuEyUH1kiKR5e3N8X4kvsR9JG6ORi5XxH MAJIfA9u79h3mxvKDN5Gc3QnyESVoO1lY8MDBQKEmGZvEcHCGaMDmj4lbJqEnkghsG O4PFPPHrMLNGg== X-Nifty-SrcIP: [209.85.222.48] Received: by mail-ua1-f48.google.com with SMTP id u4so2383169uau.10; Fri, 17 May 2019 01:47:41 -0700 (PDT) X-Gm-Message-State: APjAAAWJ+ByAKllsN7h+g/gKhpy3B6yDoAGymOIkoizqVF7ggfBGCPSN PCxal3wWG45u8hFqahH4soFuFubrfsx/WrGWd/k= X-Received: by 2002:a9f:3381:: with SMTP id p1mr2948947uab.40.1558082860964; Fri, 17 May 2019 01:47:40 -0700 (PDT) MIME-Version: 1.0 References: <20190517065424.24453-1-yamada.masahiro@socionext.com> <20190517090735.6906c2fa@mschwideX1> In-Reply-To: <20190517090735.6906c2fa@mschwideX1> From: Masahiro Yamada Date: Fri, 17 May 2019 17:47:05 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] s390: mark __cpacf_check_opcode() and cpacf_query_func() as __always_inline To: Martin Schwidefsky Cc: Heiko Carstens , linux-s390 , Arnd Bergmann , Laura Abbott , Linux Kernel Mailing List , Andrew Morton Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 17, 2019 at 5:09 PM Martin Schwidefsky wrote: > > On Fri, 17 May 2019 15:54:24 +0900 > Masahiro Yamada wrote: > > > Commit e60fb8bf68d4 ("s390/cpacf: mark scpacf_query() as __always_inline") > > was not enough to make sure to meet the 'i' (immediate) constraint for the > > asm operands. > > > > With CONFIG_OPTIMIZE_INLINING enabled, Laura Abbott reported error > > with gcc 9.1.1: > > > > In file included from arch/s390/crypto/prng.c:29: > > ./arch/s390/include/asm/cpacf.h: In function 'cpacf_query_func': > > ./arch/s390/include/asm/cpacf.h:170:2: warning: asm operand 3 probably doesn't match constraints > > 170 | asm volatile( > > | ^~~ > > ./arch/s390/include/asm/cpacf.h:170:2: error: impossible constraint in 'asm' > > > > Add more __always_inline to force inlining. > > > > Fixes: 9012d011660e ("compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING") > > Reported-by: Laura Abbott > > Signed-off-by: Masahiro Yamada > > Added to our internal tree and I will add it to s390/linux soon. Thanks. > > Do you have a Kconfig patch in the works to enable OPTIMIZE_INLINING? > Otherwise we could just add it. No. It is up to you. Thanks. -- Best Regards Masahiro Yamada