Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3954765img; Mon, 25 Mar 2019 23:24:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzUasEVV4OLfokmHMQncm29QoCQ/cfEoKmfyIbMn41Xu8drtqvg6NlfL7Uq3+eHv010Gk8y X-Received: by 2002:a17:902:f20e:: with SMTP id gn14mr29330735plb.334.1553581475240; Mon, 25 Mar 2019 23:24:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553581475; cv=none; d=google.com; s=arc-20160816; b=g/iSGRbLGRoj61wUAKAwIIIG9iea0O2TAvlUFWjo51HZTnbTTaLjlb9AxNaloXBy8h czGODDamvFXPqG7nu8bss0v32D5xefGbhuZJF7Adb/zzkGuX9F70qz5C5YUux10IWyvT xTyxTh5cKkdp0vkeI+qWRrpUeaE67VxQL2BZEuuov0W1MnBWz/uhOCSpX4UfVh5zh++i B28yIV9rMORawxRwchKkRDE56LW+gU6nPg+WUmPGVU8mWA13O61D7r8MeokjGQkIJbFm gfRc4diapHAExXhA2kqw4gtMDqUdU+2CAwJdSsuUmJ1GSSmSSR7epeJkYNyq+kwAyNlf LHbw== 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:message-id :dkim-signature; bh=ZbeUJFNcmgAwdVqoLlYvxGMo2fvfK5NdEsuuEIPc5Qw=; b=y00WU9nTGMohSFdSgXMSy848pR8utwU/C21mg0yjiDkw68t03s/aslA4Crs7Pmap4+ storCrFvs/8yHhCuRKmgIsoG6bptfKOuNa8Uoy/C8bnHuHr+M0bhgMWyFzFlhotvdU3t 7KEn+3QxvTpYGkWoMtAUJz40yWeyoCh8XopSrkXM1N/rHYvNG1Y18hEgrsp1cnEph4AY fddbgZp3phrJMeQQe4kfAWxDsZIKNl45Nu0ZLw+GSyG9kInWUv4uVATP6LlGDRFU5tPB WFGnIkYNeueMIiWAemGkFz2OV7D0Cg4XmXaDg2uW3TDKhYGCB7PPXM54Ewgd1azwslpc bo9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=W4DHT3b6; 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 b7si17416763plb.0.2019.03.25.23.24.20; Mon, 25 Mar 2019 23:24:35 -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=W4DHT3b6; 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 S1726342AbfCZGWt (ORCPT + 99 others); Tue, 26 Mar 2019 02:22:49 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:4358 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726042AbfCZGWt (ORCPT ); Tue, 26 Mar 2019 02:22:49 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 44T1Jl4BCLz9v25X; Tue, 26 Mar 2019 07:22:47 +0100 (CET) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=W4DHT3b6; 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 NdcXtlL4QN6z; Tue, 26 Mar 2019 07:22:47 +0100 (CET) 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 44T1Jl2pyRz9v08b; Tue, 26 Mar 2019 07:22:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1553581367; bh=ZbeUJFNcmgAwdVqoLlYvxGMo2fvfK5NdEsuuEIPc5Qw=; h=From:Subject:To:Cc:Date:From; b=W4DHT3b67zKJPFRbwa+83Qi7Hg+tNGRVrH12bCklb392yiTS+UQUey4p2tgTETfGp VHMNrhgaVuO8+zxvrzsPAATdEfTQlbOCft33shdBB/IjmsA/wa1alkyapUOPydURAv byWTMb2YBmv3hxXZm8W5SF0CsYzE3rZnaKlJ78xg= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 3775D8B77C; Tue, 26 Mar 2019 07:22:48 +0100 (CET) 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 vfVjAI5P02Rd; Tue, 26 Mar 2019 07:22:48 +0100 (CET) Received: from po16846vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 07A328B74C; Tue, 26 Mar 2019 07:22:48 +0100 (CET) Received: by localhost.localdomain (Postfix, from userid 0) id AAC6A69D61; Tue, 26 Mar 2019 06:22:47 +0000 (UTC) Message-Id: <670fb3e35793383652b961458c47ce865736a65f.1553581290.git.christophe.leroy@c-s.fr> From: Christophe Leroy Subject: [PATCH v2 1/3] powerpc/32s: drop Hash_end To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Tue, 26 Mar 2019 06:22:47 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hash_end has never been used, drop it. Signed-off-by: Christophe Leroy --- v2: no change arch/powerpc/mm/mmu_decl.h | 2 +- arch/powerpc/mm/ppc_mmu_32.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/mm/mmu_decl.h b/arch/powerpc/mm/mmu_decl.h index 74ff61dabcb1..f7f1374ba3ee 100644 --- a/arch/powerpc/mm/mmu_decl.h +++ b/arch/powerpc/mm/mmu_decl.h @@ -104,7 +104,7 @@ extern int __map_without_bats; extern unsigned int rtas_data, rtas_size; struct hash_pte; -extern struct hash_pte *Hash, *Hash_end; +extern struct hash_pte *Hash; extern unsigned long Hash_size, Hash_mask; #endif /* CONFIG_PPC32 */ diff --git a/arch/powerpc/mm/ppc_mmu_32.c b/arch/powerpc/mm/ppc_mmu_32.c index f29d2f118b44..302409fcfbc7 100644 --- a/arch/powerpc/mm/ppc_mmu_32.c +++ b/arch/powerpc/mm/ppc_mmu_32.c @@ -36,7 +36,7 @@ #include "mmu_decl.h" -struct hash_pte *Hash, *Hash_end; +struct hash_pte *Hash; unsigned long Hash_size, Hash_mask; unsigned long _SDR1; @@ -345,8 +345,6 @@ void __init MMU_init_hw(void) __func__, Hash_size, Hash_size); _SDR1 = __pa(Hash) | SDR1_LOW_BITS; - Hash_end = (struct hash_pte *) ((unsigned long)Hash + Hash_size); - printk("Total memory = %lldMB; using %ldkB for hash table (at %p)\n", (unsigned long long)(total_memory >> 20), Hash_size >> 10, Hash); -- 2.13.3