msm: qdss: fix section mismatches
WARNING: vmlinux.o(.devexit.text+0x4): Section mismatch in
reference from the function qdss_remove() to the function
.exit.text:qdss_sysfs_exit()
The function __devexit qdss_remove() references
a function __exit qdss_sysfs_exit().
If qdss_sysfs_exit is only used by qdss_remove then
annotate qdss_sysfs_exit with a matching annotation.
WARNING: arch/arm/mach-msm/built-in.o(.devexit.text+0x40):
Section mismatch in reference from the function etb_remove() to
the function .exit.text:etb_sysfs_exit()
The function __devexit etb_remove() references
a function __exit etb_sysfs_exit().
If etb_sysfs_exit is only used by etb_remove then
annotate etb_sysfs_exit with a matching annotation.
WARNING: arch/arm/mach-msm/built-in.o(.devexit.text+0xbc):
Section mismatch in reference from the function funnel_remove()
to the function .exit.text:funnel_sysfs_exit()
The function __devexit funnel_remove() references
a function __exit funnel_sysfs_exit().
If funnel_sysfs_exit is only used by funnel_remove then
annotate funnel_sysfs_exit with a matching annotation.
WARNING: arch/arm/mach-msm/built-in.o(.devexit.text+0xf4):
Section mismatch in reference from the function etm_remove() to
the function .exit.text:etm_sysfs_exit()
The function __devexit etm_remove() references
a function __exit etm_sysfs_exit().
If etm_sysfs_exit is only used by etm_remove then
annotate etm_sysfs_exit with a matching annotation.
Change-Id: I87cb5e746d1db995801927359c5b380470f03e22
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
diff --git a/arch/arm/mach-msm/qdss-funnel.c b/arch/arm/mach-msm/qdss-funnel.c
index 2d80603..52eb2b6 100644
--- a/arch/arm/mach-msm/qdss-funnel.c
+++ b/arch/arm/mach-msm/qdss-funnel.c
@@ -134,7 +134,7 @@
}
FUNNEL_ATTR(priority);
-static int __init funnel_sysfs_init(void)
+static int __devinit funnel_sysfs_init(void)
{
int ret;
@@ -159,7 +159,7 @@
return ret;
}
-static void __exit funnel_sysfs_exit(void)
+static void __devexit funnel_sysfs_exit(void)
{
sysfs_remove_file(funnel.kobj, &priority_attr.attr);
kobject_put(funnel.kobj);