Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp506901yba; Wed, 3 Apr 2019 13:09:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzh1qVX3/x6ZsgkreTwWg0OQJptu4rsqJuJT4rHSyUzBe8fWOmeCI/ESPUOWgolDefHWjC1 X-Received: by 2002:a17:902:a704:: with SMTP id w4mr1908029plq.51.1554322181969; Wed, 03 Apr 2019 13:09:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554322181; cv=none; d=google.com; s=arc-20160816; b=MCJWg1Mbr5gEn0GieHQmDzVDjF8AVlaZrXJWOdW2Cr0OVBVFSVtoZKLCygUsiK1zud rQLKiIpS82vGdwYU1ACS3EjnMK4nsxtOdgJ4GXZTsNHoldPGw0SUvXTK0ibm2vBvsz91 aU3M2EfHsPC+MHBTxkJQlMC8MGBKSSCgV3iP10MFOkAJNDEUEtBqT2ddDz3hwAWsOwlZ B567lDqM86hqv4PDMdI2PqL3m/nspIe+YuP6IIizTu2wkyzbpUKUU0z2c4HEh+M4KTa/ 0pqlK83nU9JPZEmDI2NTctDK6tea15VbDM1dAlcdK6xCwy8VWO0Tw3zJJ0ptk0vpNhrg X1Pg== 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=ddxEc6/ggbi1ClZar/N2xXvdQNNbwCcpDvZswkBFQiI=; b=ngAgJxxrk/dwS56S848VCPpdL89x481JHGuHiD5RXqVsPAf4TSbnIykYOin/f399JG g+sRz34EbcfA3vAxwyssb8Fl+GKvGrcNTtaq4E7zZYWGKFCzm4RasW/hgMvKbuasvucX 8VVbtjOxkM6ZNC+VVxyZ0Itv7fPGK7d+KC/7cbAXnQeTh6VU+XpIBVpHWLs6eNC8mnML Lk9dKceq4R6PfXWggYGgYPqLseActuKBDupk9lAEfs8eVNigcou7TcroYHUFk1BRQvMw mB07+LJDG4Afp31iyJGK11ieVw4SdK6A1CDbt673e/r3KUIooExPi4bNIEHB19p7QlKM D2Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=b6PeFngB; 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 f1si13808602pgv.418.2019.04.03.13.09.26; Wed, 03 Apr 2019 13:09:41 -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=b6PeFngB; 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 S1728551AbfDCUHL (ORCPT + 99 others); Wed, 3 Apr 2019 16:07:11 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:22434 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726797AbfDCUGV (ORCPT ); Wed, 3 Apr 2019 16:06:21 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 44ZHCH50m5z9v3ps; Wed, 3 Apr 2019 22:06:19 +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=b6PeFngB; 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 PyJaZf77O8Pz; Wed, 3 Apr 2019 22:06:19 +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 44ZHCH3pBSz9v3pp; Wed, 3 Apr 2019 22:06:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1554321979; bh=ddxEc6/ggbi1ClZar/N2xXvdQNNbwCcpDvZswkBFQiI=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=b6PeFngBxWz+i7UR0mydWlAFR16HmnlLc0zoLsu1WXhPSjqRUhCjInMQzY9KnM6Y2 xHmqXTUMSlFsJ7/SLxAdzsbpubFuzs6CS2iuN11HtXJuQgk7RUKnlT0FdaPFrN5EtU fF/h+8yFybiQtvpbWQ26JmTdHEWJe/Mr9cHE8ogE= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id A46318B905; Wed, 3 Apr 2019 22:06:19 +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 91skxBs7JNvC; Wed, 3 Apr 2019 22:06:19 +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 797148B902; Wed, 3 Apr 2019 22:06:19 +0200 (CEST) Received: by po16846vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 63EF0655EC; Wed, 3 Apr 2019 20:06:19 +0000 (UTC) Message-Id: <85bd4f5d3d12a994507ad8f6fb8c5fcdc32d26c5.1554321743.git.christophe.leroy@c-s.fr> In-Reply-To: References: From: Christophe Leroy Subject: [PATCH v1 07/15] powerpc/book3e: move early_alloc_pgtable() to init section 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:19 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org early_alloc_pgtable() is only used during init. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/pgtable-book3e.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/mm/pgtable-book3e.c b/arch/powerpc/mm/pgtable-book3e.c index 1032ef7aaf62..f6fc709697ee 100644 --- a/arch/powerpc/mm/pgtable-book3e.c +++ b/arch/powerpc/mm/pgtable-book3e.c @@ -55,7 +55,7 @@ void vmemmap_remove_mapping(unsigned long start, #endif #endif /* CONFIG_SPARSEMEM_VMEMMAP */ -static __ref void *early_alloc_pgtable(unsigned long size) +static void __init *early_alloc_pgtable(unsigned long size) { void *ptr; @@ -74,7 +74,7 @@ static __ref void *early_alloc_pgtable(unsigned long size) * map_kernel_page adds an entry to the ioremap page table * and adds an entry to the HPT, possibly bolting it */ -int map_kernel_page(unsigned long ea, unsigned long pa, pgprot_t prot) +int __ref map_kernel_page(unsigned long ea, unsigned long pa, pgprot_t prot) { pgd_t *pgdp; pud_t *pudp; -- 2.13.3