diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-05-03 13:01:59 -0400 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-05-03 13:01:59 -0400 |
commit | 097b6c7ced1a618b545a1872d06804ec7d628e96 (patch) | |
tree | 4cbb0c1e545bca9ba75fdad22a9c2edc149347bf | |
parent | 89908c1b2f22b19641f5cbc19805be7aed664a8e (diff) |
Feather-Trace: fix section mismatch warning
Don't place events in __init functions.
-rw-r--r-- | litmus/trace.c | 5 |
1 files 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) | |||
116 | trace_ts_buf = NULL; | 116 | trace_ts_buf = NULL; |
117 | } | 117 | } |
118 | 118 | ||
119 | /* dummy entry to make linker happy */ | ||
120 | ft_event0(666, save_timestamp); | ||
121 | |||
119 | use_count--; | 122 | use_count--; |
120 | up(&feather_lock); | 123 | up(&feather_lock); |
121 | out: | 124 | out: |
@@ -292,8 +295,6 @@ static int __init init_sched_trace(void) | |||
292 | int error = 0; | 295 | int error = 0; |
293 | 296 | ||
294 | printk("Initializing Feather-Trace device\n"); | 297 | printk("Initializing Feather-Trace device\n"); |
295 | /* dummy entry to make linker happy */ | ||
296 | ft_event0(666, save_timestamp); | ||
297 | 298 | ||
298 | error = register_buffer_dev("ft_trace", &ft_trace_fops, | 299 | error = register_buffer_dev("ft_trace", &ft_trace_fops, |
299 | FT_TRACE_MAJOR, 1); | 300 | FT_TRACE_MAJOR, 1); |