aboutsummaryrefslogtreecommitdiffstats
path: root/libc/kernel/tools
diff options
context:
space:
mode:
authorRaghu Gandham <raghu@mips.com>2012-09-25 17:49:17 -0700
committerRaghu Gandham <raghu@mips.com>2012-09-25 17:54:43 -0700
commit0e772872090ea703a24e3afbfa1eb5abcace7f32 (patch)
treee3eb6304d89f14203343e024de7ac0a42e4f9e99 /libc/kernel/tools
parent6e0e03c38bc0e864225b89b3fb273fb56ded8940 (diff)
downloadandroid_bionic-0e772872090ea703a24e3afbfa1eb5abcace7f32.tar.gz
android_bionic-0e772872090ea703a24e3afbfa1eb5abcace7f32.tar.bz2
android_bionic-0e772872090ea703a24e3afbfa1eb5abcace7f32.zip
Replace __unused in kernel headers with __linux_unused to avoid
conflicts with __unused macro in sys/cdefs.h Change-Id: Ice664397e0b7c7a90795012f30be5e43a9675525
Diffstat (limited to 'libc/kernel/tools')
-rw-r--r--libc/kernel/tools/defaults.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/kernel/tools/defaults.py b/libc/kernel/tools/defaults.py
index 7eeffb4a5..6c7efd689 100644
--- a/libc/kernel/tools/defaults.py
+++ b/libc/kernel/tools/defaults.py
@@ -51,6 +51,7 @@ kernel_default_arch_macros = {
# Replace tokens in the output according to this mapping
kernel_token_replacements = {
"asm": "__asm__",
+ "__unused": "__linux_unused", # The kernel usage of __unused conflicts with the macro defined in sys/cdefs.h
}
# this is the set of known static inline functions that we want to keep