diff options
author | Patrick Georgi <pgeorgi@google.com> | 2018-08-09 19:01:35 +0200 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-08-10 05:08:34 -0700 |
commit | 894c310d39dba59e8ba8e751f584d31f59a00460 (patch) | |
tree | 6296a13283d851d87485ee1e9324826e3f7594cf | |
parent | a8226e33836ed99dbde26e754e61222ad5a647bd (diff) | |
download | chrome-ec-894c310d39dba59e8ba8e751f584d31f59a00460.tar.gz |
chip/npcx/cec: Expose cec_isr to help linker
In LTO mode (which we use) the linker partitions the object files and
does some optimizations in parallel, including dead code elimination.
For DCE two criteria are used:
1. the symbol is used within the current partition
2. the symbol is exported
static void cec_isr() wasn't exported and if it ended up in a different
partition from the code created by DECLARE_IRQ, it was eliminated just
to be declared missing in the final link step.
Change-Id: I404c73709602c6126558f54cd2a8d045d8e9784f
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1169481
Commit-Ready: Patrick Georgi <pgeorgi@chromium.org>
Tested-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
-rw-r--r-- | chip/npcx/cec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/npcx/cec.c b/chip/npcx/cec.c index 7e89c60d6b..73a1c7c1cf 100644 --- a/chip/npcx/cec.c +++ b/chip/npcx/cec.c @@ -937,7 +937,7 @@ static void cec_event_tx(void) enter_state(CEC_STATE_INITIATOR_FREE_TIME); } -static void cec_isr(void) +void cec_isr(void) { int mdl = NPCX_MFT_MODULE_1; uint8_t events; |