浏览代码

oprofile: Thou shalt not call __exit functions from __init functions

Impact: fix ref to discarded function

`buffer_sync_cleanup' referenced in section `.init.text' of arch/arm/oprofile/built-in.o: defined in discarded section `.exit.text' of arch/arm/oprofile/built-in.o

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Russell King 16 年之前
父节点
当前提交
bb75efddea
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/oprofile/buffer_sync.c

+ 1 - 1
drivers/oprofile/buffer_sync.c

@@ -574,7 +574,7 @@ int __init buffer_sync_init(void)
 		return 0;
 }
 
-void __exit buffer_sync_cleanup(void)
+void buffer_sync_cleanup(void)
 {
 	free_cpumask_var(marked_cpus);
 }