workqueues: don't put k_work in special section
There's no current need for this and it makes work items declared with K_WORK_DEFINE() inaccessible to user mode. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
8acf899a0d
commit
c2e01dff3f
3 changed files with 2 additions and 11 deletions
|
@ -2509,9 +2509,7 @@ extern struct k_work_q k_sys_work_q;
|
|||
* @req K-WORK-002
|
||||
*/
|
||||
#define K_WORK_DEFINE(work, work_handler) \
|
||||
struct k_work work \
|
||||
__in_section(_k_work, static, work) = \
|
||||
_K_WORK_INITIALIZER(work_handler)
|
||||
struct k_work work = _K_WORK_INITIALIZER(work_handler)
|
||||
|
||||
/**
|
||||
* @brief Initialize a work item.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue