diff options
author | Stefan Reinauer <reinauer@google.com> | 2017-07-31 16:22:43 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-08-04 18:08:16 -0700 |
commit | 47115a93ef6077e5c4519d8916232fb1b3a8e56d (patch) | |
tree | 75e167c79cde1718e12640585a182e559d7dc463 /include/common.h | |
parent | 0755dc40eb5ef692fccfe2689f4939df9586c462 (diff) | |
download | chrome-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.h | 7 |
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. * |