diff options
author | Qinghuang Feng <qhfeng.kernel@gmail.com> | 2009-01-06 17:40:52 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-06 18:59:12 -0500 |
commit | 7ec7fb394298c212c30e063c57e0aa895efe9439 (patch) | |
tree | f2aa6cf2ff5d66595d5acb7d985bb157f67c6b29 /samples/tracepoints/tracepoint-probe-sample.c | |
parent | 9fe06081ef145d6582c39e18203b5fffe6f3abc2 (diff) |
samples: mark {static|__init|__exit} for {init|exit} functions
None of these (init|exit) functions is called from other functions which
is outside the kernel module mechanism or kernel itself, so mark them as
{static|__init|__exit}.
Signed-off-by: Qinghuang Feng <qhfeng.kernel@gmail.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'samples/tracepoints/tracepoint-probe-sample.c')
-rw-r--r-- | samples/tracepoints/tracepoint-probe-sample.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/tracepoints/tracepoint-probe-sample.c b/samples/tracepoints/tracepoint-probe-sample.c index e3a964889dc7..9e60eb6ca2d8 100644 --- a/samples/tracepoints/tracepoint-probe-sample.c +++ b/samples/tracepoints/tracepoint-probe-sample.c | |||
@@ -28,7 +28,7 @@ static void probe_subsys_eventb(void) | |||
28 | printk(KERN_INFO "Event B is encountered\n"); | 28 | printk(KERN_INFO "Event B is encountered\n"); |
29 | } | 29 | } |
30 | 30 | ||
31 | int __init tp_sample_trace_init(void) | 31 | static int __init tp_sample_trace_init(void) |
32 | { | 32 | { |
33 | int ret; | 33 | int ret; |
34 | 34 | ||
@@ -42,7 +42,7 @@ int __init tp_sample_trace_init(void) | |||
42 | 42 | ||
43 | module_init(tp_sample_trace_init); | 43 | module_init(tp_sample_trace_init); |
44 | 44 | ||
45 | void __exit tp_sample_trace_exit(void) | 45 | static void __exit tp_sample_trace_exit(void) |
46 | { | 46 | { |
47 | unregister_trace_subsys_eventb(probe_subsys_eventb); | 47 | unregister_trace_subsys_eventb(probe_subsys_eventb); |
48 | unregister_trace_subsys_event(probe_subsys_event); | 48 | unregister_trace_subsys_event(probe_subsys_event); |