Skip to content

Commit b7313f8

Browse files
keith-packardmbolivar-nordic
authored andcommitted
subsys/img_mgmt: Add zephyr/toolchain.h for STRINGIFY [v2]
Somehow two files in subsys/mgmt/mcumgr/lib/cmd/img_mgmt/src ended up using STRINGIFY but nothing in their include path ended up pulling in zephyr/toolchain/common.h. Include that via zephyr/toolchain.h. v2: Use non-internal zephyr/toolchain.h header Signed-off-by: Keith Packard <[email protected]>
1 parent 013a003 commit b7313f8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

subsys/mgmt/mcumgr/lib/cmd/img_mgmt/src/img_mgmt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <limits.h>
99
#include <assert.h>
1010
#include <string.h>
11+
#include <zephyr/toolchain.h>
1112

1213
#include <zcbor_common.h>
1314
#include <zcbor_decode.h>

subsys/mgmt/mcumgr/lib/cmd/img_mgmt/src/img_mgmt_state.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#include <assert.h>
88
#include <zephyr/sys/util_macro.h>
9+
#include <zephyr/toolchain.h>
910

1011
#include <string.h>
1112
#include <zcbor_common.h>

0 commit comments

Comments
 (0)