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 | |
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')
-rw-r--r-- | arch/openrisc/cpu/exceptions.c | 3 | ||||
-rw-r--r-- | arch/openrisc/lib/board.c | 3 |
2 files changed, 6 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; diff --git a/arch/openrisc/lib/board.c b/arch/openrisc/lib/board.c index 67ea96fc02..9591120fee 100644 --- a/arch/openrisc/lib/board.c +++ b/arch/openrisc/lib/board.c @@ -19,6 +19,9 @@ #include <memory.h> #include <asm-generic/memory_layout.h> +/* Called from assembly */ +void openrisc_start_barebox(void); + void __noreturn openrisc_start_barebox(void) { mem_malloc_init((void *)(OPENRISC_SOPC_TEXT_BASE - MALLOC_SIZE), |