All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC 0/6] Use __sync_* instead of g_atomic_*
@ 2013-04-02 22:54 Lucas De Marchi
  2013-04-02 22:54 ` [RFC 1/6] gitignore: Ignore file generated by Automake 1.13 Lucas De Marchi
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: Lucas De Marchi @ 2013-04-02 22:54 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Lucas De Marchi

These patches fix build with gcc >= 4.8. I'd prefer to use plain ++/-- for
these refcounts since we are not running multiple threads, but I'm preserving
the previous behavior.

Note in some of the commits that the use of atomic operations was wrong, and it
was not noticed only because there aren't multiple threads.

It's an RFC because it's only compile-tested (and 'make check' was executed as
well). Please take a look in the patches and tell me if we want
to continue with atomic operations. Then I can run some tests tomorrow.

Lucas De Marchi (6):
  gitignore: Ignore file generated by Automake 1.13
  gdbus: Use gcc builtin instead of g_atomic
  attrib: Use gcc builtin instead of g_atomic
  gobex: Use gcc builtin instead of g_atomic
  obexd: Use gcc builtin instead of g_atomic
  shared: Use gcc builtin instead of g_atomic

 .gitignore             |  4 ++++
 attrib/gatt.c          | 12 ++++++------
 attrib/gattrib.c       | 14 ++++++++------
 gdbus/client.c         | 12 ++++++------
 gobex/gobex.c          | 14 ++++++++------
 obexd/client/session.c | 12 ++++++------
 src/shared/hciemu.c    |  4 ++--
 7 files changed, 40 insertions(+), 32 deletions(-)

-- 
1.8.2


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-04-03 14:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-02 22:54 [RFC 0/6] Use __sync_* instead of g_atomic_* Lucas De Marchi
2013-04-02 22:54 ` [RFC 1/6] gitignore: Ignore file generated by Automake 1.13 Lucas De Marchi
2013-04-02 22:54 ` [RFC 2/6] gdbus: Use gcc builtin instead of g_atomic Lucas De Marchi
2013-04-02 22:54 ` [RFC 3/6] attrib: " Lucas De Marchi
2013-04-03  2:25   ` Lucas De Marchi
2013-04-02 22:54 ` [RFC 4/6] gobex: " Lucas De Marchi
2013-04-02 22:54 ` [RFC 5/6] obexd: " Lucas De Marchi
2013-04-02 22:54 ` [RFC 6/6] " Lucas De Marchi
2013-04-02 23:39   ` Lucas De Marchi
2013-04-02 22:54 ` [RFC 6/6] shared: " Lucas De Marchi
2013-04-03 14:20 ` [RFC 0/6] Use __sync_* instead of g_atomic_* Vinicius Costa Gomes

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.