Skip to content

Commit ff0471a

Browse files
stephanosiocarlescufi
authored andcommitted
tests: kernel: msgq_api: Migrate to K_THREAD_STACK_DECLARE
This commit updates all deprecated `K_THREAD_STACK_EXTERN` macro usages to use the `K_THREAD_STACK_DECLARE` macro instead. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent ac04889 commit ff0471a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

tests/kernel/msgq/msgq_api/src/main.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
*/
1313

1414
#include <ztest.h>
15+
16+
#include "test_msgq.h"
17+
1518
extern void test_msgq_thread(void);
1619
extern void test_msgq_thread_overflow(void);
1720
extern void test_msgq_isr(void);
@@ -57,7 +60,7 @@ extern struct k_msgq kmsgq;
5760
extern struct k_msgq msgq;
5861
extern struct k_sem end_sema;
5962
extern struct k_thread tdata;
60-
K_THREAD_STACK_EXTERN(tstack);
63+
K_THREAD_STACK_DECLARE(tstack, STACK_SIZE);
6164

6265
/*test case main entry*/
6366
void test_main(void)

tests/kernel/msgq/msgq_api/src/test_msgq_purge.c

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

77
#include "test_msgq.h"
88

9-
K_THREAD_STACK_EXTERN(tstack);
9+
K_THREAD_STACK_DECLARE(tstack, STACK_SIZE);
1010
extern struct k_thread tdata;
1111
extern struct k_msgq msgq;
1212
static ZTEST_BMEM char __aligned(4) tbuffer[MSG_SIZE * MSGQ_LEN];

0 commit comments

Comments
 (0)