Fix CPU hotplug section mismatches
A message that is not in the archive (sent off-list or not yet received): [email protected]
Mathieu Desnoyers
AppliedMerged, thanks!
Mathieu
Quoted 94 lines · * Jan Glauber ([email protected]) wrote:
Get rid of the following section mismatches:
WARNING: /home/jang/temp/lttng-modules-2.2.0-r0/git/lttng-tracer.o(.text+0x19dc0): Section mismatch in reference from the function
lttng_add_perf_counter_to_ctx()to the function .cpuinit.text:lttng_perf_counter_cpu_hp_callback() The functionlttng_add_perf_counter_to_ctx()references
the function__cpuinitlttng_perf_counter_cpu_hp_callback().
This is often becauselttng_add_perf_counter_to_ctxlacks a__cpuinit
annotation or the annotation oflttng_perf_counter_cpu_hp_callbackis wrong.WARNING: /home/jang/temp/lttng-modules-2.2.0-r0/git/lib/lttng-lib-ring-buffer.o(.text+0x1204): Section mismatch in reference from the function
channel_backend_init()to the function .cpuinit.text:lib_ring_buffer_cpu_hp_callback() The functionchannel_backend_init()references
the function__cpuinitlib_ring_buffer_cpu_hp_callback().
This is often becausechannel_backend_initlacks a__cpuinit
annotation or the annotation oflib_ring_buffer_cpu_hp_callbackis wrong.WARNING: /home/jang/temp/lttng-modules-2.2.0-r0/git/lib/lttng-lib-ring-buffer.o(.text+0x269c): Section mismatch in reference from the function
channel_create()to the function .cpuinit.text:lib_ring_buffer_cpu_hp_callback() The functionchannel_create()references
the function__cpuinitlib_ring_buffer_cpu_hp_callback().
This is often becausechannel_createlacks a__cpuinit
annotation or the annotation oflib_ring_buffer_cpu_hp_callbackis wrong.WARNING: /home/jang/temp/lttng-modules-2.2.0-r0/git/lib/lttng-lib-ring-buffer.o(.text+0x4a1c): Section mismatch in reference from the function
channel_iterator_init()to the function .cpuinit.text:channel_iterator_cpu_hotplug() The functionchannel_iterator_init()references
the function__cpuinitchannel_iterator_cpu_hotplug().
This is often becausechannel_iterator_initlacks a__cpuinit
annotation or the annotation ofchannel_iterator_cpu_hotplugis wrong.Signed-off-by Jan Glauber <[email protected]>--- lib/ringbuffer/ring_buffer_backend.c | 2 +- lib/ringbuffer/ring_buffer_frontend.c | 2 +- lib/ringbuffer/ring_buffer_iterator.c | 2 +- lttng-context-perf-counters.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)lib/ringbuffer/ring_buffer_backend.c +1
-1@@ -253,7 +253,7 @@ void channel_backend_reset(struct channel_backend *chanb)* Returns the success/failure of the operation. (%NOTIFY_OK, %NOTIFY_BAD) */ static -int __cpuinit lib_ring_buffer_cpu_hp_callback (struct notifier_block *nb, +int lib_ring_buffer_cpu_hp_callback (struct notifier_block *nb,unsigned long action,void *hcpu) {lib/ringbuffer/ring_buffer_frontend.c +1
-1@@ -402,7 +402,7 @@ static void lib_ring_buffer_stop_read_timer(struct lib_ring_buffer *buf)* Returns the success/failure of the operation. (%NOTIFY_OK, %NOTIFY_BAD) */ static -int __cpuinit lib_ring_buffer_cpu_hp_callback (struct notifier_block *nb, +int lib_ring_buffer_cpu_hp_callback (struct notifier_block *nb,unsigned long action,void *hcpu) {lib/ringbuffer/ring_buffer_iterator.c +1
-1@@ -351,7 +351,7 @@ void lib_ring_buffer_iterator_init(struct channel *chan, struct lib_ring_buffer#ifdef CONFIG_HOTPLUG_CPU static -int __cpuinit channel_iterator_cpu_hotplug (struct notifier_block *nb, +int channel_iterator_cpu_hotplug (struct notifier_block *nb,unsigned long action,void *hcpu) {lttng-context-perf-counters.c +1
-1@@ -120,7 +120,7 @@ void lttng_destroy_perf_counter_field(struct lttng_ctx_field *field)* soon). */ static -int __cpuinit lttng_perf_counter_cpu_hp_callback (struct notifier_block *nb, +int lttng_perf_counter_cpu_hp_callback (struct notifier_block *nb,unsigned long action,void *hcpu) {Signature · 7 lines
1.7.9.5 _______________________________________________ lttng-dev mailing list [email protected] http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
Signature · 3 lines
Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com