commit | 70c4aa4293b9dd88d21ef8af7bb13bc8dcbbc252 | [log] [tgz] |
---|---|---|
author | Nicolas Pitre <npitre@baylibre.com> | Thu Aug 22 14:38:26 2019 -0400 |
committer | Andrew Boie <andrewboie@gmail.com> | Sat Sep 14 22:14:51 2019 +0800 |
tree | e4bb5badba7db432dba988eb51ca03b25aafa5b0 | |
parent | 844d5b403ca84b36084b2acda5756eaf0238ac2a [diff] |
sys_sem: straighten build time definition macros Commit db48d3e22a80 ("sys_sem: add build time definition macros") recently introduced SYS_SEM_DEFINE() and defined it in terms of Z_DECL_ALIGN() and __in_section() to force the _k_sem linker section. It is however cleaner and less obscur to use Z_STRUCT_SECTION_ITERABLE() and list the _sys_sem linker section alongside the _k_sem one. Signed-off-by: Nicolas Pitre <npitre@baylibre.com>