From: Sanjeev Premi Date: Thu, 16 Jun 2011 20:31:00 +0000 (+0530) Subject: OMAP2+: PM: fix section mismatch in pm_dbg_init() X-Git-Tag: v3.1-rc1~152^2~9^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec3cdb5baedf6bb3852c531426c1e95a13671dff;p=platform%2Fkernel%2Flinux-stable.git OMAP2+: PM: fix section mismatch in pm_dbg_init() Fix the section mismatch warning: WARNING: vmlinux.o(.text+0x21118): Section mismatch in reference from the function pm_dbg_init() to the function .init.text:pwrdms_setup() The function pm_dbg_init() references the function __init pwrdms_setup(). This is often because pm_dbg_init lacks a __init annotation or the annotation of pwrdms_setup is wrong. Signed-off-by: Sanjeev Premi Signed-off-by: Kevin Hilman --- diff --git a/arch/arm/mach-omap2/pm-debug.c b/arch/arm/mach-omap2/pm-debug.c index 3d1cce2..3feb475 100644 --- a/arch/arm/mach-omap2/pm-debug.c +++ b/arch/arm/mach-omap2/pm-debug.c @@ -278,7 +278,7 @@ static int option_set(void *data, u64 val) DEFINE_SIMPLE_ATTRIBUTE(pm_dbg_option_fops, option_get, option_set, "%llu\n"); -static int pm_dbg_init(void) +static int __init pm_dbg_init(void) { struct dentry *d;