diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2012-01-30 02:09:59 +0000 |
---|---|---|
committer | Vincent Palatin <vpalatin@chromium.org> | 2012-01-30 22:32:39 +0000 |
commit | 5e22f8e51b7f2c45fb6a8fee1cbe07fb705f610c (patch) | |
tree | 61a7e0dfdd269f3bb4beccc73256a8fc079c4253 /include | |
parent | fb52ad00e465259b445ea69c448182417a0489b0 (diff) | |
download | chrome-ec-5e22f8e51b7f2c45fb6a8fee1cbe07fb705f610c.tar.gz |
expand properly the IRQ number for IRQ declaration macro
Expand the macros before building the priority variable name in order to
ensure we have a valid name.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BUG=None
TEST=check manually preprocessor expansion for several combinations.
Change-Id: I926821d42c966ac674e7d24254c9f22779f93ca2
Diffstat (limited to 'include')
-rw-r--r-- | include/task.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/task.h b/include/task.h index 555fbd7f6d..17a83def98 100644 --- a/include/task.h +++ b/include/task.h @@ -117,7 +117,7 @@ struct irq_priority { routine(); \ task_resched_if_needed(ret); \ } \ - const struct irq_priority prio_##irq \ + const struct irq_priority IRQ_BUILD_NAME(prio_, irq, ) \ __attribute__((section(".rodata.irqprio"))) \ = {irq, priority} |