summaryrefslogtreecommitdiff
path: root/include/common.h
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@google.com>2017-07-31 16:22:43 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-08-04 18:08:16 -0700
commit47115a93ef6077e5c4519d8916232fb1b3a8e56d (patch)
tree75e167c79cde1718e12640585a182e559d7dc463 /include/common.h
parent0755dc40eb5ef692fccfe2689f4939df9586c462 (diff)
downloadchrome-ec-47115a93ef6077e5c4519d8916232fb1b3a8e56d.tar.gz
Fix compilation with coreboot-sdk
Signed-off-by: Stefan Reinauer <reinauer@google.com> BRANCH=none BUG=none TEST=The following sequence passes sudo emerge coreboot-sdk export CROSS_COMPILE_arm=/opt/coreboot-sdk/bin/arm-eabi- export CROSS_COMPILE_i386=/opt/coreboot-sdk/bin/i386-elf- export CROSS_COMPILE_nds=/opt/coreboot-sdk/bin/nds32le-elf- make buildall -j Change-Id: I4cafbcd70efd6bdf102f848f1cca4772b4ccd10e Reviewed-on: https://chromium-review.googlesource.com/595207 Commit-Ready: Stefan Reinauer <reinauer@chromium.org> Tested-by: Stefan Reinauer <reinauer@chromium.org> Reviewed-by: Nick Sanders <nsanders@chromium.org>
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index a98fce3ca2..6f6b964c5f 100644
--- a/include/common.h
+++ b/include/common.h
@@ -59,6 +59,13 @@
#endif
/*
+ * Define __unused in the same manner.
+ */
+#ifndef __unused
+#define __unused __attribute__((unused))
+#endif
+
+/*
* Force the toolchain to keep a symbol even with Link Time Optimization
* activated.
*