Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp634873ybm; Tue, 21 May 2019 00:30:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwO2LtrTVIC/ag6iLMptUDWk1kjWrzcgHCgmIy2kZOtE2ZJ8I7k5nHVFknjIk8/opGFPlgw X-Received: by 2002:aa7:9615:: with SMTP id q21mr66171181pfg.253.1558423849298; Tue, 21 May 2019 00:30:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558423849; cv=none; d=google.com; s=arc-20160816; b=H2a8jMQVL4ZcmyC9Ic1/RkXqC4Ln+DbZBNDCh1gkMMYfJqfRcEGNAb9v1m9gSbEyYy WJNLADfWxjVHUBiXZBXcvbmKe32phm+VBvcdCgSLHhXKm/nC+zlcyFRnOIzxdfE7qg+W nGBoozUTg8SRSTsr+xY+TCwLpKL3lqOMUmfVY9W7M9TzXcdfzNPc82jnLbYV2IiIyvdi aSOxKUwMSkrr4Yf9Vk2o3qIzVO4Z095GXMZ5Cbd0t880REfTOZmgEjUiMZH81rKCpQqW UlYWj+vZn+h2b9kg258/6YfdjOYFS3yqWsZtWAnwBW7J/uC0yvJIV18PQmj9dE4waNct FMMg== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:dkim-filter; bh=0IneFBogau5aTVTnVikpfnfxhfGGg+m93gGHEDBBT2M=; b=O6Homv2ukWd/fCUzntGsdQxH6YOTMzZl4LWiaZOAowio4vYlnew0FZTSnqihFtrbtF LSzl/V4EadQaAc64lM7yk63pfoQAR7jB5rR2WLUzno304//JVKK39LTcRBLUwFHCMMCj BAhRpTJX60ycOFF7Wr3ZLs94OQJuoE/eNAPJWAFK6n6Sn1y69fFjr1FxQXHP57FOvCIh LC89XJBCEY0jVStJsB0bE8cP9Gjy0Z7/jqc0yYFqR4C9DX8rshPW64ZA50oHTk2x3a66 SJWgyI6hKMWIpDkK/BdUatab1suSptfYPq5P3BCgfBeFRH4bV5DUh7b+n37JMjPjHJrK B5hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=QHRkxn0F; 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 q11si20181298pgf.519.2019.05.21.00.30.33; Tue, 21 May 2019 00:30:49 -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=QHRkxn0F; 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 S1726319AbfEUH2l (ORCPT + 99 others); Tue, 21 May 2019 03:28:41 -0400 Received: from conssluserg-06.nifty.com ([210.131.2.91]:24169 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725790AbfEUH2l (ORCPT ); Tue, 21 May 2019 03:28:41 -0400 Received: from mail-ua1-f43.google.com (mail-ua1-f43.google.com [209.85.222.43]) (authenticated) by conssluserg-06.nifty.com with ESMTP id x4L7SZOc014671 for ; Tue, 21 May 2019 16:28:36 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com x4L7SZOc014671 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1558423716; bh=0IneFBogau5aTVTnVikpfnfxhfGGg+m93gGHEDBBT2M=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=QHRkxn0FpgpJZytlIwzPKDd3Ewp7E96EMiaXKx04L5m20+rs2i+/xzPh9P4Bn3AGP dSAH2Tp/Y0B5hFIftuFoSYre1GsGB+N02T2RlttHQjOfgVts9R3tRy7I9CnIebiN6r d2Y7jufk26xmCn9rAW1di/3tO5jVXS61BrO8xrCpXS0txhn4+g6PNHUFEwi4oGaBTW 6a5mO8qI7MlnjDOhC1XaXJEn22JFnIZprf4eGjbDI3iWMTAf4E4fQS5D/x4AxhkfP1 nsveLUyoPyTqHlgLtgb+LOx+dRwKwVtCmewTYD/yfeUtRAmK/AH7TpfrEMk02KS7jS 50hvs4K3ITXaA== X-Nifty-SrcIP: [209.85.222.43] Received: by mail-ua1-f43.google.com with SMTP id 7so875002uah.1 for ; Tue, 21 May 2019 00:28:35 -0700 (PDT) X-Gm-Message-State: APjAAAUk9AS9LqpADk537INXRaACtBaOO5Q7x4YbwtMZyRFRbuzuXl7n rjRN1Ix9lYymsMp37X7rnK/9Fqedb38ehz7njzc= X-Received: by 2002:a9f:24a3:: with SMTP id 32mr15884042uar.109.1558423714533; Tue, 21 May 2019 00:28:34 -0700 (PDT) MIME-Version: 1.0 References: <20190521061659.6073-1-yamada.masahiro@socionext.com> <16d967dd-9f8f-4e9e-97fd-3f9761e5d97c@c-s.fr> In-Reply-To: <16d967dd-9f8f-4e9e-97fd-3f9761e5d97c@c-s.fr> From: Masahiro Yamada Date: Tue, 21 May 2019 16:27:58 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] powerpc/mm: mark more tlb functions as __always_inline To: Christophe Leroy Cc: linuxppc-dev , Michael Ellerman , Paul Mackerras , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 21, 2019 at 3:54 PM Christophe Leroy wrote: > > > > Le 21/05/2019 =C3=A0 08:16, Masahiro Yamada a =C3=A9crit : > > With CONFIG_OPTIMIZE_INLINING enabled, Laura Abbott reported error > > with gcc 9.1.1: > > > > arch/powerpc/mm/book3s64/radix_tlb.c: In function '_tlbiel_pid': > > arch/powerpc/mm/book3s64/radix_tlb.c:104:2: warning: asm operand 3 p= robably doesn't match constraints > > 104 | asm volatile(PPC_TLBIEL(%0, %4, %3, %2, %1) > > | ^~~ > > arch/powerpc/mm/book3s64/radix_tlb.c:104:2: error: impossible constr= aint in 'asm' > > > > Fixing _tlbiel_pid() is enough to address the warning above, but I > > inlined more functions to fix all potential issues. > > > > To meet the 'i' (immediate) constraint for the asm operands, functions > > propagating propagated 'ric' must be always inlined. > > > > Fixes: 9012d011660e ("compiler: allow all arches to enable CONFIG_OPTIM= IZE_INLINING") > > Reported-by: Laura Abbott > > Signed-off-by: Masahiro Yamada > > --- > > > > arch/powerpc/mm/book3s64/hash_native.c | 8 +++-- > > arch/powerpc/mm/book3s64/radix_tlb.c | 44 +++++++++++++++----------= - > > 2 files changed, 30 insertions(+), 22 deletions(-) > > > > diff --git a/arch/powerpc/mm/book3s64/hash_native.c b/arch/powerpc/mm/b= ook3s64/hash_native.c > > index aaa28fd918fe..bc2c35c0d2b1 100644 > > --- a/arch/powerpc/mm/book3s64/hash_native.c > > +++ b/arch/powerpc/mm/book3s64/hash_native.c > > @@ -60,9 +60,11 @@ static inline void tlbiel_hash_set_isa206(unsigned i= nt set, unsigned int is) > > * tlbiel instruction for hash, set invalidation > > * i.e., r=3D1 and is=3D01 or is=3D10 or is=3D11 > > */ > > -static inline void tlbiel_hash_set_isa300(unsigned int set, unsigned i= nt is, > > - unsigned int pid, > > - unsigned int ric, unsigned int pr= s) > > +static __always_inline void tlbiel_hash_set_isa300(unsigned int set, > > + unsigned int is, > > + unsigned int pid, > > + unsigned int ric, > > + unsigned int prs) > > Please don't split the line more than it is. > > powerpc accepts lines up to 90 chars, see arch/powerpc/tools/checkpatch.p= l Ugh, I did not know this. Horrible. The Linux coding style should be global in the kernel tree. No subsystem should adopts its own coding style. --=20 Best Regards Masahiro Yamada