Skip to content

Commit 19ba592

Browse files
stephanosiocarlescufi
authored andcommitted
global: Correct extern K_THREAD_STACK_DEFINE usage
This commit corrects all `extern K_THREAD_STACK_DEFINE` macro usages to use the `K_THREAD_STACK_DECLARE` macro instead. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent 33f8740 commit 19ba592

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

arch/arm/core/aarch32/mpu/arm_core_mpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ LOG_MODULE_REGISTER(mpu);
4646
_MPU_DYNAMIC_REGIONS_AREA_START)
4747

4848
#if !defined(CONFIG_MULTITHREADING) && defined(CONFIG_MPU_STACK_GUARD)
49-
extern K_THREAD_STACK_DEFINE(z_main_stack, CONFIG_MAIN_STACK_SIZE);
49+
K_THREAD_STACK_DECLARE(z_main_stack, CONFIG_MAIN_STACK_SIZE);
5050
#endif
5151

5252
#if defined(CONFIG_FPU) && defined(CONFIG_FPU_SHARING) \

arch/arm/core/aarch32/thread.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#endif
3939

4040
#if !defined(CONFIG_MULTITHREADING) && defined(CONFIG_CPU_CORTEX_M)
41-
extern K_THREAD_STACK_DEFINE(z_main_stack, CONFIG_MAIN_STACK_SIZE);
41+
K_THREAD_STACK_DECLARE(z_main_stack, CONFIG_MAIN_STACK_SIZE);
4242
#endif
4343

4444
/* An initial context, to be "restored" by z_arm_pendsv(), is put at the other

tests/arch/arm/arm_no_multithreading/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#define FPSCR_MASK (0xffffffffU)
2424
#endif
2525

26-
extern K_THREAD_STACK_DEFINE(z_main_stack, CONFIG_MAIN_STACK_SIZE);
26+
K_THREAD_STACK_DECLARE(z_main_stack, CONFIG_MAIN_STACK_SIZE);
2727

2828
static volatile int test_flag;
2929
static unsigned int expected_reason;

0 commit comments

Comments
 (0)