From 097b6c7ced1a618b545a1872d06804ec7d628e96 Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Sat, 3 May 2008 13:01:59 -0400 Subject: Feather-Trace: fix section mismatch warning Don't place events in __init functions. --- litmus/trace.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/litmus/trace.c b/litmus/trace.c index 90ef443bd9..489e23e8a6 100644 --- a/litmus/trace.c +++ b/litmus/trace.c @@ -116,6 +116,9 @@ static int trace_release(struct inode *in, struct file *filp) trace_ts_buf = NULL; } + /* dummy entry to make linker happy */ + ft_event0(666, save_timestamp); + use_count--; up(&feather_lock); out: @@ -292,8 +295,6 @@ static int __init init_sched_trace(void) int error = 0; printk("Initializing Feather-Trace device\n"); - /* dummy entry to make linker happy */ - ft_event0(666, save_timestamp); error = register_buffer_dev("ft_trace", &ft_trace_fops, FT_TRACE_MAJOR, 1); -- cgit v1.2.2