platform_system_core/libcutils
Ben Cheng 5206d59712 Fail-proof the inline directives for SMP atomic operations.
The various atomic operations are declared as inline in the header files
to cut the function call overhead. However, the plain inline keyword is
just a suggestion to the compiler which makes its own decision on whether
to inline them or not. Worst, if they are not inlined, the
-fvisibility-inlines-hidden compiler flag will render them as hidden
symbols in the object file. If they are picked up by the linker over the
ones supplied in libcutils.so the following warning will be reported:

warning: hidden symbol 'android_atomic_inc' in foo.o is referenced by
DSO bar.so

One way is to add __attribute__((visibility("default"))) to those inline
functions to suppress the linker warnings. A better way is to force
inlining as with this patch.

Change-Id: Ie4fcfdfaaf06f42d351619a0d89671a9df15ca2f
2012-12-07 11:07:10 -08:00
..
arch-arm Assembly coded android_memset16 and android_memset32 2011-01-07 11:26:34 -08:00
arch-x86 Assembly coded android_memset16 and android_memset32 2011-01-07 11:26:34 -08:00
abort_socket.c Fix bug where ECONNABORTED would have always occured on asocket_write. 2009-05-29 16:10:22 -07:00
Android.mk File-system utilities for installd and zygote. 2012-08-30 10:29:41 -07:00
android_reboot.c Try to unmount writable filesystems when rebooting 2011-03-10 18:11:46 -08:00
array.c auto import from //branches/cupcake_rel/...@138607 2009-03-13 13:04:37 -07:00
ashmem-dev.c Added ashmem_get_size_region() function. 2009-06-02 00:55:30 +01:00
ashmem-host.c Added ashmem_get_size_region() function. 2009-06-02 00:55:30 +01:00
atomic.c Fail-proof the inline directives for SMP atomic operations. 2012-12-07 11:07:10 -08:00
buffer.c Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE 2012-01-03 22:32:30 +00:00
buffer.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
config_utils.c Config utils improvement 2011-05-26 13:57:03 -07:00
cpu_info.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
debugger.c Enhance native stack dumps. 2012-06-08 13:29:23 -07:00
dir_hash.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
dlmalloc_stubs.c Revert "Revert "Upgrade to dlmalloc 2.8.5."" 2012-08-28 15:52:20 -07:00
fs.c Allow mkdir() race to succeed. 2012-09-25 13:13:08 -07:00
hashmap.c libcutils: hashmap: save next pointer in forEach before calling callback 2011-04-19 15:16:18 -07:00
iosched_policy.c cutils: schedpolicy: remove stray include 2010-02-26 11:45:27 -08:00
klog.c init/cutils: move kernel logging interface to libcutils from init 2011-09-02 12:11:17 -07:00
list.c init/cutils: move list utility code to cutils from init 2011-09-02 12:11:18 -07:00
load_file.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
loghack.h Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE 2012-01-08 11:03:26 +00:00
memory.c Assembly coded android_memset16 and android_memset32 2011-01-07 11:26:34 -08:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
mq.c Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGE 2012-01-05 22:25:38 +00:00
multiuser.c File-system utilities for installd and zygote. 2012-08-30 10:29:41 -07:00
native_handle.c move native_handle stuff from master_gl 2009-05-20 17:22:13 -07:00
NOTICE auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
open_memstream.c Try to fix Mac build. 2010-01-26 09:30:02 -08:00
partition_utils.c Crypto changes for devices that don't write ext4 fs on wipe 2011-05-26 19:42:32 -07:00
private.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
process_name.c Add missing includes. 2012-03-19 14:06:50 -07:00
properties.c Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE 2012-01-08 11:03:26 +00:00
qsort_r_compat.c Provide portable wrapper for qsort_r. 2012-03-19 14:07:26 -07:00
qtaguid.c Support full 32 bits for socket tags. 2012-05-02 16:01:31 -07:00
record_stream.c Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE 2012-01-08 11:03:26 +00:00
sched_policy.c cutils: sched_policy: remove audio app/sys groups, merge into fg 2012-06-04 13:20:17 -07:00
selector.c Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGE 2012-01-04 19:23:34 +00:00
socket_inaddr_any_server.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
socket_local.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
socket_local_client.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
socket_local_server.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
socket_loopback_client.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
socket_loopback_server.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
socket_network_client.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
sockets.c Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE 2012-01-08 11:03:26 +00:00
str_parms.c cutils: str_parms: when deleting entry, need to also remove key 2012-03-14 23:17:11 -07:00
strdup8to16.c auto import from //branches/cupcake_rel/...@138607 2009-03-13 13:04:37 -07:00
strdup16to8.c Fix a potential integer overflow bug that could result in memory overwrites. 2009-05-02 19:43:30 +02:00
threads.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
tzfile.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
tzstrftime.c Add missing includes. 2012-03-19 14:06:50 -07:00
tztime.c Fix an infinite loop in time2sub. 2009-09-09 18:32:07 -07:00
uevent.c cutils: return the remote uid on netlink recv failure 2012-03-29 17:07:24 -07:00
uio.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
zygote.c Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE 2012-01-08 11:03:26 +00:00