diff mbox series

[09/35] common: Move jumptable_init() out of common.h

Message ID 20191211174637.9.I31c2a08e96eb127d8205900e76038d1160837a0f@changeid
State Superseded
Delegated to: Tom Rini
Headers show
Series common: Further reduce size of common.h even more | expand

Commit Message

Simon Glass Dec. 12, 2019, 12:47 a.m. UTC
This function is defined in exports.c so move it to its header file.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 common/board_r.c  | 1 +
 include/common.h  | 3 ---
 include/exports.h | 3 +++
 3 files changed, 4 insertions(+), 3 deletions(-)

Comments

Heinrich Schuchardt Dec. 12, 2019, 8:39 a.m. UTC | #1
On 12/12/19 1:47 AM, Simon Glass wrote:
> This function is defined in exports.c so move it to its header file.
>
> Signed-off-by: Simon Glass<sjg@chromium.org>

Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
diff mbox series

Patch

diff --git a/common/board_r.c b/common/board_r.c
index cda90bd385..4910a5da34 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -12,6 +12,7 @@ 
 #include <common.h>
 #include <api.h>
 #include <cpu_func.h>
+#include <exports.h>
 #include <irq_func.h>
 #include <u-boot/crc.h>
 /* TODO: can we just include all these headers whether needed or not? */
diff --git a/include/common.h b/include/common.h
index 90391d262e..71bf39180c 100644
--- a/include/common.h
+++ b/include/common.h
@@ -81,9 +81,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);