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-etm.c b/arch/arm/mach-msm/qdss-etm.c
index 251db45..61f1c1b 100644
--- a/arch/arm/mach-msm/qdss-etm.c
+++ b/arch/arm/mach-msm/qdss-etm.c
@@ -1120,7 +1120,7 @@
.attrs = etm_attrs,
};
-static int __init etm_sysfs_init(void)
+static int __devinit etm_sysfs_init(void)
{
int ret;
@@ -1148,14 +1148,14 @@
return ret;
}
-static void __exit etm_sysfs_exit(void)
+static void __devexit etm_sysfs_exit(void)
{
sysfs_remove_group(etm.kobj, &etm_attr_grp);
sysfs_remove_file(etm.kobj, &enabled_attr.attr);
kobject_put(etm.kobj);
}
-static bool __init etm_arch_supported(uint8_t arch)
+static bool __devinit etm_arch_supported(uint8_t arch)
{
switch (arch) {
case PFT_ARCH_V1_1:
@@ -1166,7 +1166,7 @@
return true;
}
-static int __init etm_arch_init(void)
+static int __devinit etm_arch_init(void)
{
int ret, i;
/* use cpu 0 for setup */