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:
parent
12f381888f
commit
7476a6eb9d
1 changed files with 7 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue