From patchwork Wed Oct 23 02:05:01 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen Gang X-Patchwork-Id: 3085821 Return-Path: X-Original-To: patchwork-linux-parisc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2F4E69F2B8 for ; Wed, 23 Oct 2013 02:06:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 246892041B for ; Wed, 23 Oct 2013 02:06:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C186820211 for ; Wed, 23 Oct 2013 02:06:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754659Ab3JWCGH (ORCPT ); Tue, 22 Oct 2013 22:06:07 -0400 Received: from intranet.asianux.com ([58.214.24.6]:22905 "EHLO intranet.asianux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753859Ab3JWCGF (ORCPT ); Tue, 22 Oct 2013 22:06:05 -0400 Received: by intranet.asianux.com (Postfix, from userid 103) id B164A1840298; Wed, 23 Oct 2013 10:06:07 +0800 (CST) X-Spam-Score: -100.8 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from [10.1.100.108] (unknown [61.148.203.198]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by intranet.asianux.com (Postfix) with ESMTP id 08360184024E; Wed, 23 Oct 2013 10:06:06 +0800 (CST) Message-ID: <52672ECD.9010800@asianux.com> Date: Wed, 23 Oct 2013 10:05:01 +0800 From: Chen Gang User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: "vgupta@synopsys.com" , Mike Frysinger , "James E.J. Bottomley" , Helge Deller , Arnd Bergmann , Thomas Gleixner , Paul Gortmaker , "Srivatsa S. Bhat" , realmz paranoid , James Bottomley CC: "linux-kernel@vger.kernel.org" , "uclinux-dist-devel@blackfin.uclinux.org" , Parisc List , Andrew Morton Subject: [PATCH] arch: *: remove '__init' for setup_profiling_timer() 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 Most of architectures not use '__init' for setup_profiling_timer(), so need remove it, or can generate warning (e.g. arc with allmodconfig): MODPOST vmlinux.o WARNING: vmlinux.o(.text+0x3c682): Section mismatch in reference from the function write_profile() to the function .init.text:setup_profiling_timer() The function write_profile() references the function __init setup_profiling_timer(). This is often because write_profile lacks a __init annotation or the annotation of setup_profiling_timer is wrong. Signed-off-by: Chen Gang --- arch/arc/kernel/smp.c | 2 +- arch/blackfin/mach-bf561/smp.c | 2 +- arch/parisc/kernel/smp.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arc/kernel/smp.c b/arch/arc/kernel/smp.c index bca3052..3bdac11 100644 --- a/arch/arc/kernel/smp.c +++ b/arch/arc/kernel/smp.c @@ -187,7 +187,7 @@ int __cpu_up(unsigned int cpu, struct task_struct *idle) /* * not supported here */ -int __init setup_profiling_timer(unsigned int multiplier) +int setup_profiling_timer(unsigned int multiplier) { return -EINVAL; } diff --git a/arch/blackfin/mach-bf561/smp.c b/arch/blackfin/mach-bf561/smp.c index 11789be..3bef058 100644 --- a/arch/blackfin/mach-bf561/smp.c +++ b/arch/blackfin/mach-bf561/smp.c @@ -43,7 +43,7 @@ void __init platform_prepare_cpus(unsigned int max_cpus) init_cpu_present(&mask); } -int __init setup_profiling_timer(unsigned int multiplier) /* not supported */ +int setup_profiling_timer(unsigned int multiplier) /* not supported */ { return -EINVAL; } diff --git a/arch/parisc/kernel/smp.c b/arch/parisc/kernel/smp.c index 8a252f2..2e8cd36 100644 --- a/arch/parisc/kernel/smp.c +++ b/arch/parisc/kernel/smp.c @@ -433,7 +433,7 @@ int __cpu_up(unsigned int cpu, struct task_struct *tidle) } #ifdef CONFIG_PROC_FS -int __init +int setup_profiling_timer(unsigned int multiplier) { return -EINVAL;