diff options
author | Tom Hughes <tomhughes@chromium.org> | 2021-10-15 20:10:00 +0000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-11-08 23:04:47 +0000 |
commit | 04e6a2380e1cbafb169c7194f0fc58d460193ea6 (patch) | |
tree | e745617c2bd08b81de129fa1da176a974fd9e7e1 /core/cortex-m0 | |
parent | d1378e44168c901e5c5369fb966385da0dd6c259 (diff) | |
download | chrome-ec-04e6a2380e1cbafb169c7194f0fc58d460193ea6.tar.gz |
tree: Make DECLARE_IRQ routine static
For consistency, make all IRQ handler routines static.
BRANCH=none
BUG=b:172020503
TEST=make buildall -j
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I43dc4dd0a8cd593d6eb761768acc5c7b6b95e22b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3227265
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'core/cortex-m0')
-rw-r--r-- | core/cortex-m0/irq_handler.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/cortex-m0/irq_handler.h b/core/cortex-m0/irq_handler.h index de36ef7623..e528717420 100644 --- a/core/cortex-m0/irq_handler.h +++ b/core/cortex-m0/irq_handler.h @@ -21,7 +21,7 @@ #define DECLARE_IRQ(irq, routine, priority) DECLARE_IRQ_(irq, routine, priority) #ifdef CONFIG_TASK_PROFILING #define DECLARE_IRQ_(irq, routine, priority) \ - void routine(void); \ + static void routine(void); \ void IRQ_HANDLER(irq)(void) \ { \ void *ret = __builtin_return_address(0); \ @@ -35,7 +35,7 @@ #else /* CONFIG_TASK_PROFILING */ /* No Profiling : connect directly the IRQ vector */ #define DECLARE_IRQ_(irq, routine, priority) \ - void routine(void); \ + static void routine(void); \ void IRQ_HANDLER(irq)(void) __attribute__((alias(STRINGIFY(routine))));\ const struct irq_priority __keep IRQ_PRIORITY(irq) \ __attribute__((section(".rodata.irqprio"))) \ |