kernel: remove duplicate definitions of k_thread stack and entry

Both k_thread_stack_t and (*k_thread_entry_t) are defined in
include/kernel.h and include/sys/arch_interface.h. The latter is
indirectly included by kernel.h which causes issues with some
toolchains. So remove the definitions in kernel.h.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2019-11-25 13:58:40 -08:00 committed by Anas Nashif
commit 7476a6eb9d

View file

@ -368,7 +368,13 @@ static inline void k_obj_free(void *obj)
struct __packed _k_thread_stack_element {
char data;
};
typedef struct _k_thread_stack_element k_thread_stack_t;
/**
* @typedef k_thread_stack_t
* @brief Typedef of struct _k_thread_stack_element
*
* @see _k_thread_stack_element
*/
/**
* @typedef k_thread_entry_t
@ -388,7 +394,6 @@ typedef struct _k_thread_stack_element k_thread_stack_t;
*
* @return N/A
*/
typedef void (*k_thread_entry_t)(void *p1, void *p2, void *p3);
#ifdef CONFIG_THREAD_MONITOR
struct __thread_entry {