Project

General

Profile

Actions

Bug #823

closed

Compilation warnings on 3.16.0 kernel

Added by David Goulet over 9 years ago. Updated over 9 years ago.

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();
  ^

Actions #1

Updated by Mathieu Desnoyers over 9 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

Also available in: Atom PDF