kernel: Make work queue API C++ compatible

The new userspace work queue API is not C++ compatible.
When changing from old API to new API (commit
b706a5e999, 4e3b926) the C++ compatibility
was lost.

Signed-off-by: Fredrik Gihl <fredrik.gihl@flir.se>
This commit is contained in:
Fredrik Gihl 2021-06-11 12:31:58 +02:00 committed by Kumar Gala
commit 67295be71e

View file

@ -3812,7 +3812,9 @@ struct k_work_user {
#define Z_WORK_USER_INITIALIZER(work_handler) \
{ \
._reserved = NULL, \
.handler = work_handler, \
.flags = 0 \
}
/**