summaryrefslogtreecommitdiff
path: root/include/task.h
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2016-02-01 18:46:35 +0100
committerchrome-bot <chrome-bot@chromium.org>2016-02-02 17:20:04 -0800
commit960cf45b3ffe88e842c27145e7e646d63a89c371 (patch)
tree6983741d1863ea6083961c0067c122f510550d9d /include/task.h
parentb7cf464b860839775412020541d8a09a8618210e (diff)
downloadchrome-ec-960cf45b3ffe88e842c27145e7e646d63a89c371.tar.gz
Don't declare functions inline that aren't always defined as such
gcc 5.2 bails out on an inline declaration that isn't followed up with a definition in the same compilation unit. BRANCH=none BUG=chrome-os-partner:49517 TEST=compile tested with coreboot's toolchain. samus, oak and others that failed now build. Change-Id: Ic9c28fc12c80e24ea0dbf85f35846fd6a0b56a2d Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://chromium-review.googlesource.com/324970 Commit-Ready: Patrick Georgi <pgeorgi@chromium.org> Tested-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Stefan Reinauer <reinauer@chromium.org>
Diffstat (limited to 'include/task.h')
-rw-r--r--include/task.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/task.h b/include/task.h
index ed635686bc..a1b133b986 100644
--- a/include/task.h
+++ b/include/task.h
@@ -49,7 +49,7 @@ void interrupt_enable(void);
/**
* Return true if we are in interrupt context.
*/
-inline int in_interrupt_context(void);
+int in_interrupt_context(void);
/**
* Return current interrupt mask. Meaning is chip-specific and