From: Mathieu Desnoyers Date: Wed, 8 Dec 2010 15:36:49 +0000 (-0500) Subject: Fix 64-bit typing warning: use atomic_long_inc() X-Git-Tag: v2.0-pre1~203 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b0caa15a18b9fb755e14ce1ba737b44241300460;p=lttng-modules.git Fix 64-bit typing warning: use atomic_long_inc() Signed-off-by: Mathieu Desnoyers --- diff --git a/ltt-debugfs-abi.c b/ltt-debugfs-abi.c index 7fb73392..6bc94838 100644 --- a/ltt-debugfs-abi.c +++ b/ltt-debugfs-abi.c @@ -148,7 +148,7 @@ int lttng_abi_create_channel(struct file *session_file, chan_file->private_data = chan; fd_install(chan_fd, chan_file); /* The channel created holds a reference on the session */ - atomic_inc(&session_file->f_count); + atomic_long_inc(&session_file->f_count); return chan_fd; @@ -240,7 +240,7 @@ int lttng_abi_open_stream(struct file *channel_file) } fd_install(stream_fd, stream_file); /* The stream holds a reference on the channel */ - atomic_inc(&channel_file->f_count); + atomic_long_inc(&channel_file->f_count); return stream_fd; file_error: @@ -296,7 +296,7 @@ int lttng_abi_create_event(struct file *channel_file, event_file->private_data = event; fd_install(event_fd, event_file); /* The event holds a reference on the channel */ - atomic_inc(&channel_file->f_count); + atomic_long_inc(&channel_file->f_count); kfree(event_name); return event_fd;