Re: [PATCH 2/2] ARM: OMAP: Fix section mismatch warning for platform_cpu_die()

2012-02-28 Thread Tony Lindgren
* Shilimkar, Santosh santosh.shilim...@ti.com [120223 00:09]:
 2012/2/23 Uwe Kleine-König u.kleine-koe...@pengutronix.de:
  Hello,
 
  On Thu, Feb 23, 2012 at 12:28:30PM +0530, Santosh Shilimkar wrote:
  WARNING: vmlinux.o(.text+0x226d0):
  Section mismatch in reference from the function
  platform_cpu_die() to the function .cpuinit.text:omap4_hotplug_cpu()
  The function platform_cpu_die() references
  the function __cpuinit omap4_hotplug_cpu().
  This is often because platform_cpu_die lacks a __cpuinit
  annotation or the annotation of omap4_hotplug_cpu is wrong.
 
  Thanks to Russell King for suggesting __ref annotation trick
  just like it's parent function for this warning becasue __cupinit
  s/it's/its/; s/becasue/because/; s/cup/cpu/
 
  Having said that I think the grammar is broken, too. Maybe:
 
         Thanks to Russell King for suggesting to use __ref instead of
         the initial (and wrong) approach to use __cpuinit.
 
  (But note I'm not a native speaker, too)
 
 Thanks for fixing the grammar. :)
 Updated patch below with comments corrected as per
 your suggestion.

Thanks applying both into fixes-non-critical.

Regards,

Tony
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/2] ARM: OMAP: Fix section mismatch warning for platform_cpu_die()

2012-02-23 Thread Shilimkar, Santosh
2012/2/23 Uwe Kleine-König u.kleine-koe...@pengutronix.de:
 Hello,

 On Thu, Feb 23, 2012 at 12:28:30PM +0530, Santosh Shilimkar wrote:
 WARNING: vmlinux.o(.text+0x226d0):
 Section mismatch in reference from the function
 platform_cpu_die() to the function .cpuinit.text:omap4_hotplug_cpu()
 The function platform_cpu_die() references
 the function __cpuinit omap4_hotplug_cpu().
 This is often because platform_cpu_die lacks a __cpuinit
 annotation or the annotation of omap4_hotplug_cpu is wrong.

 Thanks to Russell King for suggesting __ref annotation trick
 just like it's parent function for this warning becasue __cupinit
 s/it's/its/; s/becasue/because/; s/cup/cpu/

 Having said that I think the grammar is broken, too. Maybe:

        Thanks to Russell King for suggesting to use __ref instead of
        the initial (and wrong) approach to use __cpuinit.

 (But note I'm not a native speaker, too)

Thanks for fixing the grammar. :)
Updated patch below with comments corrected as per
your suggestion.

Regards
Santosh

From a53dd2d822dc9c9894c2f2f3d239af341c66d891 Mon Sep 17 00:00:00 2001
From: Santosh Shilimkar santosh.shilim...@ti.com
Date: Wed, 22 Feb 2012 16:10:04 +0530
Subject: [PATCH 2/2] ARM: OMAP: Fix section mismatch warning for
platform_cpu_die()

WARNING: vmlinux.o(.text+0x226d0):
Section mismatch in reference from the function
platform_cpu_die() to the function .cpuinit.text:omap4_hotplug_cpu()
The function platform_cpu_die() references
the function __cpuinit omap4_hotplug_cpu().
This is often because platform_cpu_die lacks a __cpuinit
annotation or the annotation of omap4_hotplug_cpu is wrong.

Thanks to Russell King for suggesting to use __ref instead of
the initial (and wrong) approach to use __cpuinit.

Signed-off-by: Santosh Shilimkar santosh.shilim...@ti.com
---
 arch/arm/mach-omap2/omap-hotplug.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-omap2/omap-hotplug.c
b/arch/arm/mach-omap2/omap-hotplug.c
index adbe4d8..56c345b 100644
--- a/arch/arm/mach-omap2/omap-hotplug.c
+++ b/arch/arm/mach-omap2/omap-hotplug.c
@@ -33,7 +33,7 @@ int platform_cpu_kill(unsigned int cpu)
  * platform-specific code to shutdown a CPU
  * Called with IRQs disabled
  */
-void platform_cpu_die(unsigned int cpu)
+void __ref platform_cpu_die(unsigned int cpu)
 {
unsigned int this_cpu;

-- 
1.7.4.1


0002-ARM-OMAP-Fix-section-mismatch-warning-for-platform_c.patch
Description: Binary data


[PATCH 2/2] ARM: OMAP: Fix section mismatch warning for platform_cpu_die()

2012-02-22 Thread Santosh Shilimkar
WARNING: vmlinux.o(.text+0x226d0):
Section mismatch in reference from the function
platform_cpu_die() to the function .cpuinit.text:omap4_hotplug_cpu()
The function platform_cpu_die() references
the function __cpuinit omap4_hotplug_cpu().
This is often because platform_cpu_die lacks a __cpuinit
annotation or the annotation of omap4_hotplug_cpu is wrong.

Thanks to Russell King for suggesting __ref annotation trick
just like it's parent function for this warning becasue __cupinit
usage was definitely wrong to fix this warning..

Signed-off-by: Santosh Shilimkar santosh.shilim...@ti.com
---
 arch/arm/mach-omap2/omap-hotplug.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-omap2/omap-hotplug.c 
b/arch/arm/mach-omap2/omap-hotplug.c
index adbe4d8..56c345b 100644
--- a/arch/arm/mach-omap2/omap-hotplug.c
+++ b/arch/arm/mach-omap2/omap-hotplug.c
@@ -33,7 +33,7 @@ int platform_cpu_kill(unsigned int cpu)
  * platform-specific code to shutdown a CPU
  * Called with IRQs disabled
  */
-void platform_cpu_die(unsigned int cpu)
+void __ref platform_cpu_die(unsigned int cpu)
 {
unsigned int this_cpu;
 
-- 
1.7.4.1

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/2] ARM: OMAP: Fix section mismatch warning for platform_cpu_die()

2012-02-22 Thread Uwe Kleine-König
Hello,

On Thu, Feb 23, 2012 at 12:28:30PM +0530, Santosh Shilimkar wrote:
 WARNING: vmlinux.o(.text+0x226d0):
 Section mismatch in reference from the function
 platform_cpu_die() to the function .cpuinit.text:omap4_hotplug_cpu()
 The function platform_cpu_die() references
 the function __cpuinit omap4_hotplug_cpu().
 This is often because platform_cpu_die lacks a __cpuinit
 annotation or the annotation of omap4_hotplug_cpu is wrong.
 
 Thanks to Russell King for suggesting __ref annotation trick
 just like it's parent function for this warning becasue __cupinit
s/it's/its/; s/becasue/because/; s/cup/cpu/

Having said that I think the grammar is broken, too. Maybe:

Thanks to Russell King for suggesting to use __ref instead of
the initial (and wrong) approach to use __cpuinit.

(But note I'm not a native speaker, too)

Uwe

 usage was definitely wrong to fix this warning..

-- 
Pengutronix e.K.   | Uwe Kleine-König|
Industrial Linux Solutions | http://www.pengutronix.de/  |
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html