summaryrefslogtreecommitdiff
path: root/include/task.h
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2021-10-15 20:10:00 +0000
committerCommit Bot <commit-bot@chromium.org>2021-11-08 23:04:47 +0000
commit04e6a2380e1cbafb169c7194f0fc58d460193ea6 (patch)
treee745617c2bd08b81de129fa1da176a974fd9e7e1 /include/task.h
parentd1378e44168c901e5c5369fb966385da0dd6c259 (diff)
downloadchrome-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 'include/task.h')
-rw-r--r--include/task.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/task.h b/include/task.h
index 9eb5a23b33..f93991679e 100644
--- a/include/task.h
+++ b/include/task.h
@@ -431,8 +431,9 @@ struct irq_def {
#define IRQ_HANDLER(irqname) CONCAT3(irq_, irqname, _handler)
#define IRQ_HANDLER_OPT(irqname) CONCAT3(irq_, irqname, _handler_optional)
#define DECLARE_IRQ(irq, routine, priority) DECLARE_IRQ_(irq, routine, priority)
-#define DECLARE_IRQ_(irq, routine, priority) \
- void IRQ_HANDLER_OPT(irq)(void) __attribute__((alias(#routine)));
+#define DECLARE_IRQ_(irq, routine, priority) \
+ static void routine(void) __attribute__((used)); \
+ void IRQ_HANDLER_OPT(irq)(void) __attribute__((alias(#routine)))
/* Include ec.irqlist here for compilation dependency */
#define ENABLE_IRQ(x)