]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Define AO_REQUIRE_CAS (fixes FTBFS on 'hppa') 1844/head
authorDmitry Smirnov <onlyjob@member.fsf.org>
Tue, 20 May 2014 21:56:43 +0000 (07:56 +1000)
committerDmitry Smirnov <onlyjob@member.fsf.org>
Tue, 20 May 2014 22:18:12 +0000 (08:18 +1000)
commit74218f3d6ca8ca9943ff9d08b7926e38fb13b329
tree830e7b0e6df88ff5c18ce72f8606ba9636c0b750
parent1383b649d7ae97c99e9840c42bef0c0db5a0f65e
Define AO_REQUIRE_CAS (fixes FTBFS on 'hppa')

 to fix FTBFS due to undeclared atomic functions.

As reported

    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=748571

by John David Anglin <dave.anglin@bell.net>

~~~~
./include/atomic.h: In member function 'size_t ceph::atomic_t::inc()':
./include/atomic.h:42:36: error: 'AO_fetch_and_add1' was not declared in this scope
       return AO_fetch_and_add1(&val) + 1;
                                    ^
./include/atomic.h: In member function 'size_t ceph::atomic_t::dec()':
./include/atomic.h:45:42: error: 'AO_fetch_and_sub1_write' was not declared in this scope
       return AO_fetch_and_sub1_write(&val) - 1;
                                          ^
./include/atomic.h: In member function 'void ceph::atomic_t::add(size_t)':
./include/atomic.h:48:36: error: 'AO_fetch_and_add' was not declared in this scope
       AO_fetch_and_add(&val, add_me);
                                    ^
./include/atomic.h: In member function 'void ceph::atomic_t::sub(int)':
./include/atomic.h:52:48: error: 'AO_fetch_and_add_write' was not declared in this scope
       AO_fetch_and_add_write(&val, (AO_t)negsub);
                                                ^
./include/atomic.h: In member function 'size_t ceph::atomic_t::dec()':
./include/atomic.h:46:5: warning: control reaches end of non-void function [-Wreturn-type]
     }
     ^
make[5]: *** [cls/user/cls_user_client.o] Error 1
~~~~

Signed-off-by: Dmitry Smirnov <onlyjob@member.fsf.org>
src/include/atomic.h