path: root/samples/tracepoints/tracepoint-sample.c
diff options
authorFrederic Weisbecker <>2009-03-21 04:33:36 +0100
committerIngo Molnar <>2009-03-21 10:54:10 +0100
commit09c9e84d474d917d9de5b9011ed2064b03a19677 (patch)
treec725429e52c2c06822f189d05c8fe9d811e17891 /samples/tracepoints/tracepoint-sample.c
parent22de89b371a18086162eacd9f8c960299334ab01 (diff)
tracing/ring-buffer: don't annotate rb_cpu_notify with __cpuinit
Impact: remove a section warning CONFIG_DEBUG_SECTION_MISMATCH raises the following warning on -tip: WARNING: kernel/trace/built-in.o(.text+0x5bc5): Section mismatch in reference from the function ring_buffer_alloc() to the function .cpuinit.text:rb_cpu_notify() The function ring_buffer_alloc() references the function __cpuinit rb_cpu_notify(). This is actually harmless. The code in the ring buffer don't build rb_cpu_notify and other cpu hotplug stuffs when !CONFIG_HOTPLUG_CPU so we have no risk to reference freed memory here (it would even be harmless if we unconditionally build it because register_cpu_notifier would do nothing when !CONFIG_HOTPLUG_CPU. But since ring_buffer_alloc() can be called everytime, we don't want it to be annotated with __cpuinit so we drop the __cpuinit from rb_cpu_notify. This is not a waste of memory because it is only defined and used on CONFIG_HOTPLUG_CPU. Signed-off-by: Frederic Weisbecker <> Cc: Steven Rostedt <> LKML-Reference: <> Signed-off-by: Ingo Molnar <>
Diffstat (limited to 'samples/tracepoints/tracepoint-sample.c')
0 files changed, 0 insertions, 0 deletions