Skip to content

Commit 61938e7

Browse files
dennisgr102nashif
authored andcommitted
mgmt: mcumgr: make mcumgr handler variable const
Ensure mcumgr handler variables are consts in order to make ld happy and not emit the "LOAD segment with RWX permissions" warning Signed-off-by: Dennis Grijalva <[email protected]>
1 parent 4ab97f5 commit 61938e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/zephyr/mgmt/mcumgr/mgmt/handlers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ struct mcumgr_handler {
4141
* @param _init Init function to be called (mcumgr_handler_init_t).
4242
*/
4343
#define MCUMGR_HANDLER_DEFINE(name, _init) \
44-
STRUCT_SECTION_ITERABLE(mcumgr_handler, name) = { \
44+
const STRUCT_SECTION_ITERABLE(mcumgr_handler, name) = { \
4545
.init = _init, \
4646
}
4747

0 commit comments

Comments
 (0)