Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp506055yba; Wed, 3 Apr 2019 13:08:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqxewzLIyVQwZrcxqX82XOgHogf/Hp8eNR1oU2srGe9bj7/ktdzilmrjXjwCfBQGcx6ubr4C X-Received: by 2002:a17:902:7044:: with SMTP id h4mr1997790plt.274.1554322124920; Wed, 03 Apr 2019 13:08:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554322124; cv=none; d=google.com; s=arc-20160816; b=Bn1pX2Z8EVjC5z6RfLCLlhHGFyhmwOrf9NRpeqG6IU+0/pB6Ehje56kznvmDRcWnbq EkqWn1dgG80mhin+ihw5HjT4uKHOxtmIyc1RiUwk9vV5rSMY1yEIr5uRYQ+9+8uJ+/pB DRC+dmdsmhmMPzkbL4OZir2kxN2lYiX1nfXE5YfvLSbCA2O1H9oSSsGn+QOXbbMGD0Y4 GlwW+z6zYj+GWAzu4YUC+mVTK80tpOagyN0yR1BBbtTQvsg2FEql/qOPw9A6oi3ziOCr PGsRIIrHwTEpmNOZlzCbOc+ltqmdZkT/+XP2TqygeAPZspoIYgX/EQ1f2V8SWvj5C4ft BFVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:references :in-reply-to:message-id:dkim-signature; bh=970wlOaQpGtoCjkMZSnSrOj9AfwAnmYD5UEwoPtyWRU=; b=G1BPw/ynKNRr/Nxibr2yCfIByknHd7QclNZ8NQMcK1fTXypFOOQQrA02/Gp4K81KpB +9k0J5/ZkTUl/hGatrpqqZmMehfT+Z12PwDdCS8lAJw0Dh8VhSp+I0kgsIeAiqIv4Iow e2DJeL+RAABsIf+zyKQ0rAifGQUQ+N2jWO5ZAf1meWJ1hJ0LQ2IDy7znE9pWWT5OO99d 7t6gCiFc67VOXtAwzNRfAfp/AP+X5rqWSbaDP1JnfF3BdIFS4LpSfIl09gEVA33KLl3E JZEj2KtrZBohfoYXEszkED6DJIZBotpv2LIRJ3FOd4ZmWZmE4BzgcXFXsApEJIEO3kDj oZlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=HG8dSBfj; 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 f12si8251615pgo.388.2019.04.03.13.08.29; Wed, 03 Apr 2019 13:08:44 -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=@c-s.fr header.s=mail header.b=HG8dSBfj; 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 S1728570AbfDCUHS (ORCPT + 99 others); Wed, 3 Apr 2019 16:07:18 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:60056 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726544AbfDCUGT (ORCPT ); Wed, 3 Apr 2019 16:06:19 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 44ZHCF3H79z9v3pq; Wed, 3 Apr 2019 22:06:17 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=HG8dSBfj; dkim-adsp=pass; dkim-atps=neutral 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 Fsk3bO9Ujalu; Wed, 3 Apr 2019 22:06:17 +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 44ZHCF2Cznz9v3pp; Wed, 3 Apr 2019 22:06:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1554321977; bh=970wlOaQpGtoCjkMZSnSrOj9AfwAnmYD5UEwoPtyWRU=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=HG8dSBfjDa0f2F5csZF/g3MENcLHldD3iFiP9wiiX6JqxAEJvG71WGUa/5sDKEhHJ X49NVaU9UL774zVS8zsG2s8tRxr1YgpXeKVEEYS974e3qTRF1HuPlYq7PFdi36rWWB rpVhe+3l524kesHpqD2unpiJkhxComS72NNRBhPc= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 6CD5F8B905; Wed, 3 Apr 2019 22:06:17 +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 Py1XGp7M8-qb; Wed, 3 Apr 2019 22:06:17 +0200 (CEST) Received: from po16846vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 476608B902; Wed, 3 Apr 2019 22:06:17 +0200 (CEST) Received: by po16846vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 3336C655EC; Wed, 3 Apr 2019 20:06:17 +0000 (UTC) Message-Id: <5acb0d752bf5dd936ec9ae1050b81d21a5a535a0.1554321743.git.christophe.leroy@c-s.fr> In-Reply-To: References: From: Christophe Leroy Subject: [PATCH v1 05/15] powerpc/mm: get rid of nohash/32/mmu.h and nohash/64/mmu.h To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , aneesh.kumar@linux.ibm.com Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Wed, 3 Apr 2019 20:06:17 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Those files have no real added values, especially the 64 bit which only includes the common book3e mmu.h which is also included from 32 bits side. So lets do the final inclusion directly from nohash/mmu.h Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/nohash/32/mmu.h | 19 ------------------- arch/powerpc/include/asm/nohash/64/mmu.h | 8 -------- arch/powerpc/include/asm/nohash/mmu.h | 16 ++++++++++++---- 3 files changed, 12 insertions(+), 31 deletions(-) delete mode 100644 arch/powerpc/include/asm/nohash/32/mmu.h delete mode 100644 arch/powerpc/include/asm/nohash/64/mmu.h diff --git a/arch/powerpc/include/asm/nohash/32/mmu.h b/arch/powerpc/include/asm/nohash/32/mmu.h deleted file mode 100644 index af0e8b54876a..000000000000 --- a/arch/powerpc/include/asm/nohash/32/mmu.h +++ /dev/null @@ -1,19 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef _ASM_POWERPC_NOHASH_32_MMU_H_ -#define _ASM_POWERPC_NOHASH_32_MMU_H_ - -#if defined(CONFIG_40x) -/* 40x-style software loaded TLB */ -#include -#elif defined(CONFIG_44x) -/* 44x-style software loaded TLB */ -#include -#elif defined(CONFIG_PPC_BOOK3E_MMU) -/* Freescale Book-E software loaded TLB or Book-3e (ISA 2.06+) MMU */ -#include -#elif defined (CONFIG_PPC_8xx) -/* Motorola/Freescale 8xx software loaded TLB */ -#include -#endif - -#endif /* _ASM_POWERPC_NOHASH_32_MMU_H_ */ diff --git a/arch/powerpc/include/asm/nohash/64/mmu.h b/arch/powerpc/include/asm/nohash/64/mmu.h deleted file mode 100644 index 87871d027b75..000000000000 --- a/arch/powerpc/include/asm/nohash/64/mmu.h +++ /dev/null @@ -1,8 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef _ASM_POWERPC_NOHASH_64_MMU_H_ -#define _ASM_POWERPC_NOHASH_64_MMU_H_ - -/* Freescale Book-E software loaded TLB or Book-3e (ISA 2.06+) MMU */ -#include - -#endif /* _ASM_POWERPC_NOHASH_64_MMU_H_ */ diff --git a/arch/powerpc/include/asm/nohash/mmu.h b/arch/powerpc/include/asm/nohash/mmu.h index a037cb1efb57..edc793e5f08f 100644 --- a/arch/powerpc/include/asm/nohash/mmu.h +++ b/arch/powerpc/include/asm/nohash/mmu.h @@ -2,10 +2,18 @@ #ifndef _ASM_POWERPC_NOHASH_MMU_H_ #define _ASM_POWERPC_NOHASH_MMU_H_ -#ifdef CONFIG_PPC64 -#include -#else -#include +#if defined(CONFIG_40x) +/* 40x-style software loaded TLB */ +#include +#elif defined(CONFIG_44x) +/* 44x-style software loaded TLB */ +#include +#elif defined(CONFIG_PPC_BOOK3E_MMU) +/* Freescale Book-E software loaded TLB or Book-3e (ISA 2.06+) MMU */ +#include +#elif defined (CONFIG_PPC_8xx) +/* Motorola/Freescale 8xx software loaded TLB */ +#include #endif #endif /* _ASM_POWERPC_NOHASH_MMU_H_ */ -- 2.13.3