diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-09-15 08:57:14 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-09-15 14:42:49 +0200 |
commit | 31918d7f933ffaa116d3457e2a3ad76744db60d5 (patch) | |
tree | 25eab17d4b16bc6267c71e7d7bd8c839d5ca0539 /arch/openrisc/cpu | |
parent | d965771ea56f6291c8e50bd194ac21427af759a5 (diff) | |
download | barebox-31918d7f933ffaa116d3457e2a3ad76744db60d5.tar.gz barebox-31918d7f933ffaa116d3457e2a3ad76744db60d5.tar.xz |
openrisc: Add prototypes for functions called from assembly
Some functions are called from assembly only. There's no prototype
for them so this leads to -Wmissing-prototypes warnings. Add a prototype
right aboce the functions to avoid these warnings.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/openrisc/cpu')
-rw-r--r-- | arch/openrisc/cpu/exceptions.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/openrisc/cpu/exceptions.c b/arch/openrisc/cpu/exceptions.c index d01fbfbb1c..4c52feb51c 100644 --- a/arch/openrisc/cpu/exceptions.c +++ b/arch/openrisc/cpu/exceptions.c @@ -69,6 +69,9 @@ static void exception_hang(int vect) hang(); } +/* Called from assembly */ +void exception_handler(int vect); + void exception_handler(int vect) { int exception = vect >> 8; |