zephyr/kernel
Christopher Friedt 9f3d7776ab kernel: dynamic: reduce verbosity in degenerate case
k_thread_stack_free() is designed to be called with any pointer
value. We return -EINVAL when an attempt is made to free an
invalid stack pointer.

This change reduces the verbosity in the degenerate case, when
the pointer is not obtained via k_thread_stack_alloc(), but
otherwise does not affect functionality.

If debug log verbosity is not enabled, we save a few bytes in
.text / .rodata / .strtab.

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2024-01-26 06:50:11 -05:00
..
include kernel: move z_init_cpu to private kernel headers 2024-01-17 11:57:20 -05:00
paging
CMakeLists.txt kernel: Introduce a way to specify minimum system heap size 2023-12-20 11:01:42 +01:00
Kconfig kernel: amend wording on CONFIG_SMP_BOOT_DELAY 2024-01-17 11:57:20 -05:00
Kconfig.vm
atomic_c.c
banner.c
busy_wait.c
compiler_stack_protect.c
condvar.c
device.c
dynamic.c kernel: dynamic: reduce verbosity in degenerate case 2024-01-26 06:50:11 -05:00
dynamic_disabled.c
errno.c
events.c
fatal.c kernel: fatal: remove LCOV exclusion 2023-12-21 09:18:44 +01:00
futex.c
idle.c
init.c
kheap.c
mailbox.c
main_weak.c
mem_domain.c
mem_slab.c
mempool.c kernel: Introduce a way to specify minimum system heap size 2023-12-20 11:01:42 +01:00
mmu.c kernel: mmu: no need to expose z_free_page_count 2023-12-12 18:46:21 +00:00
msg_q.c
mutex.c
obj_core.c
pipes.c kernel: Apply const to k_pipe_put() parameter 2023-12-15 14:51:35 -05:00
poll.c
queue.c
sched.c kernel: Implement k_sleep for Single Thread 2024-01-10 15:10:16 +01:00
sem.c
smp.c kernel: smp: remove z_smp_thread_init/_swap 2024-01-17 11:57:20 -05:00
stack.c
system_work_q.c
thread.c
timeout.c
timer.c
usage.c
userspace.c
userspace_handler.c
version.c
work.c kernel: work: Fix race in workqueue thread 2024-01-03 10:20:19 +01:00
xip.c