From patchwork Thu Jan 20 00:55:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 12718137 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1B332C433F5 for ; Thu, 20 Jan 2022 00:56:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230463AbiATA4F (ORCPT ); Wed, 19 Jan 2022 19:56:05 -0500 Received: from mta-tor-002.bell.net ([209.71.212.29]:17146 "EHLO cmx-torrgo002.bell.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230426AbiATA4F (ORCPT ); Wed, 19 Jan 2022 19:56:05 -0500 X-RG-CM-BuS: 0 X-RG-CM-SC: 0 X-RG-CM: Clean X-Originating-IP: [70.50.7.94] X-RG-Env-Sender: dave.anglin@bell.net X-RG-Rigid: 61E6FD76002AF725 X-CM-Envelope: MS4xfIVYlbxgt/5nr7/vyAgh2aCvFtNttkPT2KrrC73z4xu4RgYDlqIiruejFf/trwF3374x22sSioWhXmBCBpu985M7BhvqKVlmPaJLlT3rGUdtiGY6zDYz 5fw+awpHOvyWbhCiuwYoFlARzZxqRRbGUCvEgX2WF7bOYPz6KzCEBWA9H3sdvCFSXCNfIPBh+KVkA4mpB3uX18GjfoRmnbORiR3nfaHgUY0Bp18GHq51mnMS Sa8sF3wKBVcjYxdQI91X7iPu9+kl36sra9i0HXSrgNGUOYukNIOQJ5o+b50z8MgGxfGNbt8o+ihKwddj8Rk34HGeouAlfpdadMfaPs5UZapTdVxZ/T4K9Xp+ efJzYCpsgLflGDqd5Cj4/mMkQVhaY2uK5Vbm6jHvctuILHoDnEZZDBcMZ7iGeLeNOAXdRABQAmLQLOJvZ3cW+z7EPDYI6eKTA4UZ6csL12tcbAb2ciCFsBSY OeQGna6yF+uNZuwz5WLB/esgxMPL59WmQ7wZftvwxga9eCrbiJJTK1lsxZ3ZLW9RNc+RLj344S/CUp2HXDEMVNPuLLwS3gDhA6Rfw4yQkPdLN6rwT1IzPqZQ c6Jr9pJ7oLHV9gyW15IIfbgJZRaDrjBK3gi1ulm7x0pVmA== X-CM-Analysis: v=2.4 cv=W7Vb6Tak c=1 sm=1 tr=0 ts=61e8b312 a=9k1bCY7nR7m1ZFzoCuQ56g==:117 a=9k1bCY7nR7m1ZFzoCuQ56g==:17 a=DghFqjY3_ZEA:10 a=FBHGMhGWAAAA:8 a=2oCxmd4MbWu7oaBBeJcA:9 a=CjuIK1q_8ugA:10 a=WBo9P5VBDFbwtsgBEzMA:9 a=FfaGCDsud1wA:10 a=9gvnlMMaQFpL9xblJ6ne:22 Received: from mx3210.localdomain (70.50.7.94) by cmx-torrgo002.bell.net (5.8.716.03) (authenticated as dave.anglin@bell.net) id 61E6FD76002AF725; Wed, 19 Jan 2022 19:55:46 -0500 Received: by mx3210.localdomain (Postfix, from userid 1000) id A6BC4220115; Thu, 20 Jan 2022 00:55:45 +0000 (UTC) Date: Thu, 20 Jan 2022 00:55:45 +0000 From: John David Anglin To: linux-parisc Cc: Helge Deller , Deller , James Bottomley Subject: [PATCH] parisc: Drop __init from map_pages declaration Message-ID: MIME-Version: 1.0 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org With huge kernel pages, we randomly eat a SPARC in map_pages(). This is fixed by dropping __init from the declaration. Signed-off-by: John David Anglin diff --git a/arch/parisc/mm/init.c b/arch/parisc/mm/init.c index 1ae31db9988f..b90d7e408b0d 100644 --- a/arch/parisc/mm/init.c +++ b/arch/parisc/mm/init.c @@ -337,7 +337,7 @@ static void __init setup_bootmem(void) static bool kernel_set_to_readonly; -static void __init map_pages(unsigned long start_vaddr, +static void map_pages(unsigned long start_vaddr, unsigned long start_paddr, unsigned long size, pgprot_t pgprot, int force) {