Skip to content

Commit 4f46b38

Browse files
Ballen7kartben
authored andcommitted
docs: kernel: iterable_section: add #include to linker example
if you do not include #include <zephyr/linker/iterable_sections.h> you will get a build error Signed-off-by: Brandon Allen <[email protected]>
1 parent b1def71 commit 4f46b38

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/kernel/iterable_sections/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ identifier, ``DATA_SECTIONS`` for RAM structures and ``SECTIONS`` for ROM ones.
4747
.. code-block:: c
4848
4949
# iterables.ld
50+
#include <zephyr/linker/iterable_sections.h>
5051
ITERABLE_SECTION_RAM(my_data, 4)
5152
5253
The data can then be accessed using :c:macro:`STRUCT_SECTION_FOREACH`.

0 commit comments

Comments
 (0)