Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5421386pxu; Thu, 22 Oct 2020 01:38:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqzfTsC6Iw4D6dnQMy1oBK4XgibAfbgLGXihJC4awTTOyfSbNmG3sOt+VfX7DFSVKz8Z13 X-Received: by 2002:a17:906:1446:: with SMTP id q6mr1234372ejc.549.1603355917764; Thu, 22 Oct 2020 01:38:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603355917; cv=none; d=google.com; s=arc-20160816; b=FzmrUAEJTzgpuJBbZzg8KcxtSj5oE8HiQZcn61IpZ+7+pTp4pbxIFcFKZUf95anxFq QJZ9b7UTMTKQ7GHe5SvpuSetasaa285If/buMeIVJqY+GK2GGZXAraxQDAODVCAaKhvh /Z+NMX8EhfEXkmjm9fqUgL5Ku0QZMHAVLndpeo5pXaHRS78Nkapf+NpzaEXiP9dXk7cS WYONSF/P8Dlg+6c5eWvnyCyNiqDPQ7KZXhYem3lZLdI2MZoMrZFO8/0MATCKXmF7V9Qd r97B5twVd8PB2viGgkFAzPkAe506fp5RMnSGJwJRi5ufk5/E7bvpZXbNF6EsG7lb4jM2 trUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:cc:to:subject:from:references:in-reply-to :message-id; bh=9ERsNgoscR4zLIJAr5ySa6pCEn2mBLcYw94ZWK2gp7k=; b=IXCmTv+ipfhT5FCE2FB62hTEkuD/jvzxmfkHjUDVU8mxzcO89MqQDXgUZ1bAdW/grf /c/KaDe93UFaCDVxwXhJniHN3YEliZJnqJ2oGwD+0L7hDgIdOpbzd3z70KVPuDprMsCC DwTLaY7kSRMyGA8nRr9JsgcNxFG36ATJUVFTEaD1bWdQn+fVtdQC6Ip6bg3n3wV9xEgd xx+GgdnGCAILHtk1HXSnmEl96acKyHzR8Aa1z8+ZiiLDpm/26pNEZysPrshtDwA2Yej1 hd31NsscaT7hbP1ctGLEODK/Xs0DfnguZU/gzKXKybm/n6gDXxQ9cpxs99zSeIWCJ82j +Ddw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p17si523604edy.143.2020.10.22.01.38.15; Thu, 22 Oct 2020 01:38:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2508298AbgJVG3p (ORCPT + 99 others); Thu, 22 Oct 2020 02:29:45 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:24684 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2508245AbgJVG3g (ORCPT ); Thu, 22 Oct 2020 02:29:36 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4CGyBj1cnRz9vBKt; Thu, 22 Oct 2020 08:29:33 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id POdrSbyBr-Zx; Thu, 22 Oct 2020 08:29:33 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 4CGyBj056yz9vBKl; Thu, 22 Oct 2020 08:29:33 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id EFC7B8B805; Thu, 22 Oct 2020 08:29:33 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id HtPNMI8EHmlo; Thu, 22 Oct 2020 08:29:33 +0200 (CEST) Received: from po17688vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id A460E8B769; Thu, 22 Oct 2020 08:29:33 +0200 (CEST) Received: by po17688vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 88852667EF; Thu, 22 Oct 2020 06:29:33 +0000 (UTC) Message-Id: <867587af929973ad65f8ef6972f2474a80c1737a.1603348103.git.christophe.leroy@csgroup.eu> In-Reply-To: <648e2448e938d52d0b5887445e018ca584edc06d.1603348103.git.christophe.leroy@csgroup.eu> References: <648e2448e938d52d0b5887445e018ca584edc06d.1603348103.git.christophe.leroy@csgroup.eu> From: Christophe Leroy Subject: [PATCH v1 08/20] powerpc/32s: Move _tlbie() and _tlbia() prototypes to tlbflush.h To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Thu, 22 Oct 2020 06:29:33 +0000 (UTC) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In order to use _tlbie() and _tlbia() directly from asm/book3s/32/tlbflush.h, move their prototypes from mm/mm_decl.h to there. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/32/tlbflush.h | 4 ++++ arch/powerpc/mm/mmu_decl.h | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/include/asm/book3s/32/tlbflush.h b/arch/powerpc/include/asm/book3s/32/tlbflush.h index 29e292be4f1b..3043e7af70aa 100644 --- a/arch/powerpc/include/asm/book3s/32/tlbflush.h +++ b/arch/powerpc/include/asm/book3s/32/tlbflush.h @@ -11,6 +11,10 @@ extern void flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr); extern void flush_tlb_range(struct vm_area_struct *vma, unsigned long start, unsigned long end); extern void flush_tlb_kernel_range(unsigned long start, unsigned long end); + +void _tlbie(unsigned long address); +void _tlbia(void); + static inline void local_flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr) { diff --git a/arch/powerpc/mm/mmu_decl.h b/arch/powerpc/mm/mmu_decl.h index 900da3ae03db..fb7c2a67bc99 100644 --- a/arch/powerpc/mm/mmu_decl.h +++ b/arch/powerpc/mm/mmu_decl.h @@ -82,9 +82,6 @@ static inline void print_system_hash_info(void) {} #else /* CONFIG_PPC_MMU_NOHASH */ -extern void _tlbie(unsigned long address); -extern void _tlbia(void); - void print_system_hash_info(void); #endif /* CONFIG_PPC_MMU_NOHASH */ -- 2.25.0