From 0ae74f9519eba2c58e1912c14c2db9e1e40d711a Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Fri, 29 Nov 2019 16:14:32 +0100 Subject: common: provide stubs for ctrlc_* functions Currently the stubs are only provided for CONFIG_CONSOLE_SIMPLE, but they are also needed for CONSOLE_NONE. Move them to the header. Signed-off-by: Lucas Stach Signed-off-by: Sascha Hauer --- include/common.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/common.h') diff --git a/include/common.h b/include/common.h index 6563068467..c6eb50420f 100644 --- a/include/common.h +++ b/include/common.h @@ -68,7 +68,12 @@ long get_ram_size (volatile long *, long); /* common/console.c */ int ctrlc(void); int arch_ctrlc(void); + +#ifdef CONFIG_CONSOLE_FULL void ctrlc_handled(void); +#else +static inline void ctrlc_handled(void) { } +#endif #ifdef CONFIG_ARCH_HAS_STACK_DUMP void dump_stack(void); -- cgit v1.2.3