From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4E9F3C0650E for ; Mon, 8 Jul 2019 01:19:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2EB6E204EC for ; Mon, 8 Jul 2019 01:19:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728109AbfGHBTl (ORCPT ); Sun, 7 Jul 2019 21:19:41 -0400 Received: from ozlabs.org ([203.11.71.1]:57457 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728051AbfGHBTf (ORCPT ); Sun, 7 Jul 2019 21:19:35 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id 45hnfs4k9gz9sNs; Mon, 8 Jul 2019 11:19:33 +1000 (AEST) X-powerpc-patch-notification: thanks X-powerpc-patch-commit: 6d3ca7e73642ce17398f4cd5df1780da4a1ccdaf In-Reply-To: <1558444404-12254-1-git-send-email-yamada.masahiro@socionext.com> To: Masahiro Yamada , linuxppc-dev@lists.ozlabs.org From: Michael Ellerman Cc: linux-kernel@vger.kernel.org, Nicholas Piggin , Masahiro Yamada , Paul Mackerras , "Aneesh Kumar K.V" , Suraj Jitindar Singh , Andrew Morton , David Gibson Subject: Re: [PATCH v2] powerpc/mm: mark more tlb functions as __always_inline Message-Id: <45hnfs4k9gz9sNs@ozlabs.org> Date: Mon, 8 Jul 2019 11:19:33 +1000 (AEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2019-05-21 at 13:13:24 UTC, Masahiro Yamada wrote: > 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 probably 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 constraint 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 "ric" must be always inlined. > > Fixes: 9012d011660e ("compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING") > Reported-by: Laura Abbott > Signed-off-by: Masahiro Yamada > Reviewed-by: Christophe Leroy Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/6d3ca7e73642ce17398f4cd5df1780da4a1ccdaf cheers