Skip to content
Permalink
Browse files

tests: schedule_api: fix extern tstacks

Fix how the tstacks array was declared extern so this
actually compiles on all platforms with user mode enabled.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
  • Loading branch information...
andrewboie authored and nashif committed Jun 18, 2019
1 parent 6f98db6 commit a3eb8c4ade30778237499c9f3c9ea04fed8b3b22
Showing with 1 addition and 2 deletions.
  1. +1 −2 tests/kernel/sched/schedule_api/src/test_sched.h
@@ -14,8 +14,7 @@
#define STACK_SIZE (640 + CONFIG_TEST_EXTRA_STACKSIZE)

K_THREAD_STACK_EXTERN(tstack);
extern k_thread_stack_t
tstacks[MAX_NUM_THREAD][K_THREAD_STACK_LEN(STACK_SIZE)];
extern K_THREAD_STACK_ARRAY_DEFINE(tstacks, MAX_NUM_THREAD, STACK_SIZE);

struct thread_data {
k_tid_t tid;

0 comments on commit a3eb8c4

Please sign in to comment.
You can’t perform that action at this time.