Actions
Bug #823
closedCompilation warnings on 3.16.0 kernel
Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
08/04/2014
Due date:
% Done:
0%
Estimated time:
Description
CC [M] /home/dgoulet/Documents/git/lttng-modules/lib/ringbuffer/ring_buffer_frontend.o /home/dgoulet/Documents/git/lttng-modules/lib/ringbuffer/ring_buffer_frontend.c: In function ‘lib_ring_buffer_open_read’: /home/dgoulet/Documents/git/lttng-modules/lib/ringbuffer/ring_buffer_frontend.c:795:2: warning: ‘smp_mb__after_atomic_inc’ is deprecated (declared at include/linux/atomic.h:19) [-Wdeprecated-declarations] smp_mb__after_atomic_inc(); ^ /home/dgoulet/Documents/git/lttng-modules/lib/ringbuffer/ring_buffer_frontend.c: In function ‘lib_ring_buffer_release_read’: /home/dgoulet/Documents/git/lttng-modules/lib/ringbuffer/ring_buffer_frontend.c:805:2: warning: ‘smp_mb__before_atomic_dec’ is deprecated (declared at include/linux/atomic.h:27) [-Wdeprecated-declarations] smp_mb__before_atomic_dec(); ^
Updated by Mathieu Desnoyers about 10 years ago
- Status changed from New to Resolved
Fixed by commit:
commit 505fb41059f97c7c4ee456bafabcb6528df8ebe2 Author: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Date: Sun Oct 12 16:56:25 2014 +0200 Add atomic.h wrapper for before/after atomic Linux 3.16 changes the name of before/after atomic functions, and generates a warning at build time about deprecation of old ones. Create a wrapper header to handle this. Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Actions