소스 검색

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;
 		return 0;
 }
 }
 
 
-void __exit buffer_sync_cleanup(void)
+void buffer_sync_cleanup(void)
 {
 {
 	free_cpumask_var(marked_cpus);
 	free_cpumask_var(marked_cpus);
 }
 }