From patchwork Thu Sep 21 19:22:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 9964743 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DAB9F6020C for ; Thu, 21 Sep 2017 19:22:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC723290B9 for ; Thu, 21 Sep 2017 19:22:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C0EC329689; Thu, 21 Sep 2017 19:22:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C8F3D290B9 for ; Thu, 21 Sep 2017 19:22:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751697AbdIUTWi (ORCPT ); Thu, 21 Sep 2017 15:22:38 -0400 Received: from mout.gmx.net ([212.227.15.15]:62992 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751636AbdIUTWh (ORCPT ); Thu, 21 Sep 2017 15:22:37 -0400 Received: from p100.box ([91.36.202.100]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LmbZb-1dMsZ42PD9-00aAo5; Thu, 21 Sep 2017 21:22:29 +0200 Date: Thu, 21 Sep 2017 21:22:27 +0200 From: Helge Deller To: linux-parisc@vger.kernel.org, James Bottomley , John David Anglin Subject: [PATCH] parisc: Move init_per_cpu() into init section Message-ID: <20170921192227.GA1135@p100.box> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Provags-ID: V03:K0:Z/paWdLQ0J5BiB3Rg+G37Kb7TfPx0O31JPnqe9Fz5YcL+IzhOrH Ftkr2B700OwCYTbvy9p3qkh05BPaGfcsB9USrA5M2btFcqtCZ8m3Yz5zM/JVMBsa4h5L4kB W0pBvtPfb21ca/yPRXrHXMDEaxyOt9FoKCA6AhAu6yh6dFQh0pyhmuISruGtGLyosNgIYD9 QapMhyewygrtWvozzzynQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:VTzzQ/VTTJ4=:DnjV5U6S6JddXMIAiP9NhZ agEC6Q4fu0HfTsXTgFWBQbjXGeSMeMLLVK50JtU6KIJ6K89eadlfn8mGH9nfvg3CtNniOfEsu w7iwnaxPTP+C+aal4G4RVxMXuS7FGu7afcWYgtywoa6F0Go5qpEmlecKjjFHGNOeWBua87H4r xq4PpOMRXRxgkl4rg1mJvj1iEP5kOESxRklzF5FkdSbTEezKqMWkqNX15fdT8mC8FUu1BiYGm DwwTweLsdS3TMxfqxHXCDbijtlRN53JG3y2YAvFQJJJnbuioe1f9sAulqUQPc5fJoyIAkWMya o7cffUdlAY3/fc68l24QuVIiDVf7xBBuzzEBY52rfMaddsRC0VFzQMN9usoQe2fUzw/CNY5Tw FnTXVJ3wwfxOHKI5iAoowe2DRlu43JJEazYdRGx1dTlYoT6rAvHVUu02SVdfNhlwYt0toFGaT SCBlG3sKCJ2CPCVLxKDTKYjaOgj8Sks2uq/z/0lG5tAtye2kCxIMbycqFllV7gUzAFDIBDRiS Rm4RNnr5TnXwuIqWNnytgTnADrz2kJi+RgIDM8oVhbDqi5+rL1zHrENWXagcYG2uacfubVpXk N7pt1VYa87vdjLNIZY5IseYqoLR2ty5zGIFthjEuZly/R9mRk+6HRdXZcGRLCgIY5ZOiJLaKu zCU6IZ96XDurjM5SwSaTwSIyE6b1oxu2YuxO2bE6KsYadNx576OPCy83rE21fe/Qkf3DVM22j qazP0rieCX4Q9GT0ogKa1ZGaCW1IOgKqsxV+D2Ou0EIf6DpjNNqq0YGLfqhAAqT9Au5kjM4Ar sN/IzGHLGXDgCLSzOXABIEQPzI0TQ== Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Helge Deller --- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/parisc/include/asm/smp.h b/arch/parisc/include/asm/smp.h index a5dc9066c6d8..ad9c9c3b4136 100644 --- a/arch/parisc/include/asm/smp.h +++ b/arch/parisc/include/asm/smp.h @@ -1,6 +1,7 @@ #ifndef __ASM_SMP_H #define __ASM_SMP_H +extern int init_per_cpu(int cpuid); #if defined(CONFIG_SMP) diff --git a/arch/parisc/kernel/processor.c b/arch/parisc/kernel/processor.c index ad7310029fe0..45cc65902fce 100644 --- a/arch/parisc/kernel/processor.c +++ b/arch/parisc/kernel/processor.c @@ -320,7 +320,7 @@ void __init collect_boot_cpu_data(void) * * o Enable CPU profiling hooks. */ -int init_per_cpu(int cpunum) +int __init init_per_cpu(int cpunum) { int ret; struct pdc_coproc_cfg coproc_cfg; diff --git a/arch/parisc/kernel/setup.c b/arch/parisc/kernel/setup.c index fd751b9ae9d9..47cdba759e30 100644 --- a/arch/parisc/kernel/setup.c +++ b/arch/parisc/kernel/setup.c @@ -116,7 +116,6 @@ void __init dma_ops_init(void) } #endif -extern int init_per_cpu(int cpuid); extern void collect_boot_cpu_data(void); void __init setup_arch(char **cmdline_p) diff --git a/arch/parisc/kernel/smp.c b/arch/parisc/kernel/smp.c index 63365106ea19..30c28ab14540 100644 --- a/arch/parisc/kernel/smp.c +++ b/arch/parisc/kernel/smp.c @@ -255,12 +255,11 @@ void arch_send_call_function_single_ipi(int cpu) static void __init smp_cpu_init(int cpunum) { - extern int init_per_cpu(int); /* arch/parisc/kernel/processor.c */ extern void init_IRQ(void); /* arch/parisc/kernel/irq.c */ extern void start_cpu_itimer(void); /* arch/parisc/kernel/time.c */ /* Set modes and Enable floating point coprocessor */ - (void) init_per_cpu(cpunum); + init_per_cpu(cpunum); disable_sr_hashing();