Skip to content

Commit 0b0d21e

Browse files
stephanosiocarlescufi
authored andcommitted
tests: kernel: schedule_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 ff0471a commit 0b0d21e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/kernel/sched/schedule_api/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ K_THREAD_STACK_DEFINE(tstack, STACK_SIZE);
1111
K_THREAD_STACK_ARRAY_DEFINE(tstacks, MAX_NUM_THREAD, STACK_SIZE);
1212

1313
/* Not in header file intentionally, see #16760 */
14-
K_THREAD_STACK_EXTERN(ustack);
14+
K_THREAD_STACK_DECLARE(ustack, STACK_SIZE);
1515

1616
void spin_for_ms(int ms)
1717
{

tests/kernel/sched/schedule_api/src/test_sched.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#define MAX_NUM_THREAD 10
1414
#define STACK_SIZE (640 + CONFIG_TEST_EXTRA_STACK_SIZE)
1515

16-
K_THREAD_STACK_EXTERN(tstack);
16+
K_THREAD_STACK_DECLARE(tstack, STACK_SIZE);
1717
K_THREAD_STACK_ARRAY_EXTERN(tstacks, MAX_NUM_THREAD, STACK_SIZE);
1818
extern struct k_thread user_thread;
1919
extern struct k_sem user_sem;

0 commit comments

Comments
 (0)