]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/meta-ti-glsdk.git/blob - recipes-kernel/linux/linux-3.0/for_3.1/pm-misc/0007-OMAP2-PM-fix-section-mismatch-in-pm_dbg_init.patch
372b349daed9ed64a4cc79a13a0178f3047a7cad
[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-3.0 / for_3.1 / pm-misc / 0007-OMAP2-PM-fix-section-mismatch-in-pm_dbg_init.patch
1 From 7472bb7b89bfdc6beef83bb6008219158e072975 Mon Sep 17 00:00:00 2001
2 From: Sanjeev Premi <premi@ti.com>
3 Date: Fri, 17 Jun 2011 02:01:00 +0530
4 Subject: [PATCH 7/7] OMAP2+: PM: fix section mismatch in pm_dbg_init()
6 Fix the section mismatch warning:
8   WARNING: vmlinux.o(.text+0x21118): Section mismatch
9   in reference from the function pm_dbg_init() to the
10   function .init.text:pwrdms_setup()
11   The function pm_dbg_init() references
12   the function __init pwrdms_setup().
13   This is often because pm_dbg_init lacks a __init
14   annotation or the annotation of pwrdms_setup is wrong.
16 Signed-off-by: Sanjeev Premi <premi@ti.com>
17 Signed-off-by: Kevin Hilman <khilman@ti.com>
18 ---
19  arch/arm/mach-omap2/pm-debug.c |    2 +-
20  1 files changed, 1 insertions(+), 1 deletions(-)
22 diff --git a/arch/arm/mach-omap2/pm-debug.c b/arch/arm/mach-omap2/pm-debug.c
23 index 3d1cce2..3feb475 100644
24 --- a/arch/arm/mach-omap2/pm-debug.c
25 +++ b/arch/arm/mach-omap2/pm-debug.c
26 @@ -278,7 +278,7 @@ static int option_set(void *data, u64 val)
27  
28  DEFINE_SIMPLE_ATTRIBUTE(pm_dbg_option_fops, option_get, option_set, "%llu\n");
29  
30 -static int pm_dbg_init(void)
31 +static int __init pm_dbg_init(void)
32  {
33         struct dentry *d;
34  
35 -- 
36 1.6.6.1