From: Simon Glass Date: Sat, 28 Dec 2019 17:44:46 +0000 (-0700) Subject: common: Move jumptable_init() out of common.h X-Git-Tag: v2020.04-rc1~6^2~37 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0f67fc232834eec476f5f34a752ed10e17637265;p=oweals%2Fu-boot.git common: Move jumptable_init() out of common.h This function is defined in exports.c so move it to its header file. Signed-off-by: Simon Glass Reviewed-by: Heinrich Schuchardt --- diff --git a/common/board_r.c b/common/board_r.c index e7c2594296..2f5e534489 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include /* TODO: can we just include all these headers whether needed or not? */ diff --git a/include/common.h b/include/common.h index 82228e2050..6b7b199ab4 100644 --- a/include/common.h +++ b/include/common.h @@ -80,9 +80,6 @@ extern ulong load_addr; /* Default Load Address */ extern ulong save_addr; /* Default Save Address */ extern ulong save_size; /* Default Save Size */ -/* common/exports.c */ -void jumptable_init(void); - /* common/kallsysm.c */ const char *symbol_lookup(unsigned long addr, unsigned long *caddr); diff --git a/include/exports.h b/include/exports.h index 35f463287f..cbd16fc518 100644 --- a/include/exports.h +++ b/include/exports.h @@ -13,6 +13,9 @@ struct spi_slave; +/* Set up the jump table for use by the API */ +void jumptable_init(void); + /* These are declarations of exported functions available in C code */ unsigned long get_version(void); int getc(void);