kernel/poll: add missing poll_event runtime init
It was in the static initializers, but was missing from the object runtime init functions. Change-Id: I10d519760eabdbe640a19cc5cfa9241c1356b070 Signed-off-by: Benjamin Walsh <walsh.benj@gmail.com>
This commit is contained in:
parent
31189d9ec8
commit
b017986347
3 changed files with 11 additions and 0 deletions
|
@ -3104,6 +3104,12 @@ extern void k_free(void *ptr);
|
|||
|
||||
/* polling API - PRIVATE */
|
||||
|
||||
#ifdef CONFIG_POLL
|
||||
#define _INIT_OBJ_POLL_EVENT(obj) do { (obj)->poll_event = NULL; } while ((0))
|
||||
#else
|
||||
#define _INIT_OBJ_POLL_EVENT(obj) do { } while ((0))
|
||||
#endif
|
||||
|
||||
/* private - implementation data created as needed, per-type */
|
||||
struct _poller {
|
||||
struct k_thread *thread;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue