From patchwork Tue Apr 23 03:49:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 162643 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp3322525jan; Mon, 22 Apr 2019 20:51:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxV3QfbTH+uMHDgHFWcV/uAPpqqCiMMOEE+jIvUhmTMvTmpbrbRDm3XgZUK1GAuCdsvx958 X-Received: by 2002:a62:1249:: with SMTP id a70mr24580315pfj.160.1555991513524; Mon, 22 Apr 2019 20:51:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555991513; cv=none; d=google.com; s=arc-20160816; b=kK62zjJ0HjgJkhAJcSgzWQOfstJfgN3PPaBMXBiPLklzzFFGkwIuM3X69fOS0TkHav GTSy7Pbft2jyar37zwvSPb+RlDoEh+CfTLNe03FFVI/BE2vSFXNZGvjZYJnEXi4+Aeqh fekgfZz/ECKvsqK1LApVt5lZZ+pY7rBxGs8qa5mLncVRcAKmcoF7nnJalW5lmerM4Ncw lefccIDAAWJgFFYbzxSt4CozKoxeSih31egQsPszt+oEjYsrw3crhteH8Htu3saKdFwd v+ud+3aOyDU2o0zUGINJkpop5KDZkIoGAxd9fcq6dYdlaxTYHtTAZ2+uOF0MMh0hCe1P k+IQ== 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=dlukBYO6sgrMJOkaTgBisXwB5sU3qv4thlZ8O2ehfGY=; b=IiwBRUNVsQ7uid/ErRt7S1qfzvcXvX1DCvdHpomkoR/QSam2wBW6wcs+WeYernlGGz LV6uIxQzQnokrwMxX+BHH0v4EXpribmlwgPm7umVxJTLjSIcnoa1U1qdbPuT7hCodS/1 jBMRByjsHkCZFUBhc6i6PucRqR3fCoFwOvriFqCyd1UwgzFlBSO6T6X9mM+YJIaFO8/a LKGyGjWkHhsJRpCH1pQVGhhQqgyyArTGIQiz/1VrPXxsN/JbLVCR1JbcmN6qlOlEWhEp f9vwqvfQ/OhVIAUAxbUzX7uSuNqQAzTQnymSUy6ND+y6NJGU8iAz7Xvb1JRTEMS7Mjfr Ed6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="DgLSh5p/"; 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 a7si2342574pgm.568.2019.04.22.20.51.53; Mon, 22 Apr 2019 20:51:53 -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="DgLSh5p/"; 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 S1730702AbfDWDvw (ORCPT + 30 others); Mon, 22 Apr 2019 23:51:52 -0400 Received: from conuserg-07.nifty.com ([210.131.2.74]:38896 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730524AbfDWDvq (ORCPT ); Mon, 22 Apr 2019 23:51:46 -0400 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-07.nifty.com with ESMTP id x3N3o2cH023044; Tue, 23 Apr 2019 12:50:16 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com x3N3o2cH023044 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1555991416; bh=dlukBYO6sgrMJOkaTgBisXwB5sU3qv4thlZ8O2ehfGY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DgLSh5p//r6WFmO5jHCtDDcni9rgvcY+M0jXqaVcDpmetnoTv3LH2i7BbTaWnPEQA ekvT9GhnH/wJhjlIDDCG4ogK8OrxDRfpKrXxorea+hWs44MMGkmufq8vRI1VDI2xtf E/Egf9Qrn/X2ji428KFPPca6RL3Odgm+aeiI1TlOh5n2jGHjU9CzdRcVlpwYNM1u8B D3Rdxm3EAtjpH5wFt6I+bTxO/6dZmwf0tIr0TQbamP2Q7SfjkbqmrBg4bNiJZ+U2QP 5+M50jLU0nfTpzi0185F/CXJtegbNcH2kUGjKtAAsw1ufXr+9imCgE16mm7HqCVTgg 13SiP6iuu4Trw== 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 , Mathieu Malaterre , Masahiro Yamada Subject: [RESEND PATCH v3 09/11] powerpc/mm/radix: mark __radix__flush_tlb_range_psize() as __always_inline Date: Tue, 23 Apr 2019 12:49:57 +0900 Message-Id: <20190423034959.13525-10-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190423034959.13525-1-yamada.masahiro@socionext.com> References: <20190423034959.13525-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 powerpc, the following error is reported: arch/powerpc/mm/tlb-radix.c: In function '__radix__flush_tlb_range_psize': arch/powerpc/mm/tlb-radix.c:104:2: error: asm operand 3 probably doesn't match constraints [-Werror] asm volatile(PPC_TLBIEL(%0, %4, %3, %2, %1) ^~~ arch/powerpc/mm/tlb-radix.c:104:2: error: impossible constraint in 'asm' Signed-off-by: Masahiro Yamada --- Changes in v3: None Changes in v2: - split into a separate patch arch/powerpc/mm/tlb-radix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/arch/powerpc/mm/tlb-radix.c b/arch/powerpc/mm/tlb-radix.c index 6a23b9ebd2a1..a2b2848f0ae3 100644 --- a/arch/powerpc/mm/tlb-radix.c +++ b/arch/powerpc/mm/tlb-radix.c @@ -928,7 +928,7 @@ void radix__tlb_flush(struct mmu_gather *tlb) tlb->need_flush_all = 0; } -static inline void __radix__flush_tlb_range_psize(struct mm_struct *mm, +static __always_inline void __radix__flush_tlb_range_psize(struct mm_struct *mm, unsigned long start, unsigned long end, int psize, bool also_pwc) {