mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-05 16:33:54 +00:00
The z_interrupt_stacks was declared extern in the kernel internal header file using the same macro which defines the same stack array but with an added "extern" in front. This macro adds alignment and section attribute which are actually not the same as the actual stack array defined in kernel/init.c. The section name used in the section attribute contains the file name where the stack array is defined or extern declared. So the same symbol, in this case z_interrupt_stacks, has different attributes in two places, and GCC 11 starts to complain about this. So use the newly introduced macro to extern declare the stack array without adding/replacing any symbol attributes. Signed-off-by: Daniel Leung <daniel.leung@intel.com> |
||
---|---|---|
.. | ||
include | ||
paging | ||
atomic_c.c | ||
banner.c | ||
cache_handlers.c | ||
CMakeLists.txt | ||
compiler_stack_protect.c | ||
condvar.c | ||
device.c | ||
errno.c | ||
fatal.c | ||
futex.c | ||
idle.c | ||
init.c | ||
Kconfig | ||
kheap.c | ||
mailbox.c | ||
mem_domain.c | ||
mem_slab.c | ||
mempool.c | ||
mmu.c | ||
msg_q.c | ||
mutex.c | ||
pipes.c | ||
poll.c | ||
queue.c | ||
sched.c | ||
sem.c | ||
smp.c | ||
stack.c | ||
system_work_q.c | ||
thread.c | ||
timeout.c | ||
timer.c | ||
userspace_handler.c | ||
userspace.c | ||
version.c | ||
work.c | ||
xip.c |