From 4f46b3884332a25fac122a03f369bc5209e140af Mon Sep 17 00:00:00 2001 From: Brandon Allen Date: Mon, 18 Nov 2024 20:06:23 -0500 Subject: [PATCH] docs: kernel: iterable_section: add #include to linker example if you do not include #include you will get a build error Signed-off-by: Brandon Allen --- doc/kernel/iterable_sections/index.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/kernel/iterable_sections/index.rst b/doc/kernel/iterable_sections/index.rst index 46ef4a3b68c..17b7c76fab0 100644 --- a/doc/kernel/iterable_sections/index.rst +++ b/doc/kernel/iterable_sections/index.rst @@ -47,6 +47,7 @@ identifier, ``DATA_SECTIONS`` for RAM structures and ``SECTIONS`` for ROM ones. .. code-block:: c # iterables.ld + #include ITERABLE_SECTION_RAM(my_data, 4) The data can then be accessed using :c:macro:`STRUCT_SECTION_FOREACH`.