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.c b/arch/arm/mach-msm/qdss.c
index 0cc3ca5..fd1fc2b 100644
--- a/arch/arm/mach-msm/qdss.c
+++ b/arch/arm/mach-msm/qdss.c
@@ -290,7 +290,7 @@
}
QDSS_ATTR(max_clk);
-static void __init qdss_add_sources(struct qdss_source *srcs, size_t num)
+static void __devinit qdss_add_sources(struct qdss_source *srcs, size_t num)
{
mutex_lock(&qdss.sources_mutex);
while (num--) {
@@ -322,7 +322,7 @@
return ret;
}
-static void __exit qdss_sysfs_exit(void)
+static void __devexit qdss_sysfs_exit(void)
{
sysfs_remove_file(qdss.modulekobj, &max_clk_attr.attr);
}