diff options
author | Tom Hughes <tomhughes@chromium.org> | 2022-03-28 15:11:46 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-03-29 19:13:40 +0000 |
commit | 3b0ca45921e5111f89c34ef96c8667bd65973684 (patch) | |
tree | 74795b259c44052e2426f5ffdf1db6507a231457 /core | |
parent | c20a1a6b579c4bf632716e3a633656f6532295b3 (diff) | |
download | chrome-ec-3b0ca45921e5111f89c34ef96c8667bd65973684.tar.gz |
tree: Replace __attribute__((used)) with __keep
The two are equivalent, so use __keep everywhere for consistency.
BRANCH=none
BUG=b:172020503
TEST=./util/compare_build.sh -b all -j 120
=> MATCH
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: Ie2d15e8fa00dbe35a190060c80f15f4ba720e3a6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3556497
Reviewed-by: Eric Yilun Lin <yllin@google.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/cortex-m/irq_handler.h | 2 | ||||
-rw-r--r-- | core/cortex-m/llsr.c | 2 | ||||
-rw-r--r-- | core/minute-ia/irq_handler.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/core/cortex-m/irq_handler.h b/core/cortex-m/irq_handler.h index 9a69f8feeb..89be593eee 100644 --- a/core/cortex-m/irq_handler.h +++ b/core/cortex-m/irq_handler.h @@ -27,7 +27,7 @@ typedef struct { \ int fake[irq >= CONFIG_IRQ_COUNT ? -1 : 1]; \ } irq_num_check_##irq; \ - static void __attribute__((used)) routine(void); \ + static void __keep routine(void); \ void IRQ_HANDLER(irq)(void) \ { \ asm volatile("mov r0, lr\n" \ diff --git a/core/cortex-m/llsr.c b/core/cortex-m/llsr.c index 0827121e97..616b8653db 100644 --- a/core/cortex-m/llsr.c +++ b/core/cortex-m/llsr.c @@ -14,7 +14,7 @@ union words { uint32_t w[2]; }; -uint64_t __attribute__((used)) __aeabi_llsr(uint64_t v, uint32_t shift) +uint64_t __keep __aeabi_llsr(uint64_t v, uint32_t shift) { union words val; union words res; diff --git a/core/minute-ia/irq_handler.h b/core/minute-ia/irq_handler.h index d0f00a39f3..30106603d6 100644 --- a/core/minute-ia/irq_handler.h +++ b/core/minute-ia/irq_handler.h @@ -31,7 +31,7 @@ asm (".include \"core/minute-ia/irq_handler_common.S\""); * to be used for dynamically setting up interrupt gates */ #define DECLARE_IRQ_(irq_, routine_, vector) \ - static void __attribute__((used)) routine_(void); \ + static void __keep routine_(void); \ void IRQ_HANDLER(irq_)(void); \ __asm__ (".section .rodata.irqs\n"); \ const struct irq_def __keep CONCAT4(__irq_, irq_, _, routine_) \ |