zephyr/subsys/tracing
Carles Cufi 8c748fd005 kernel: Modify the signature of k_mem_slab_free()
Modify the signature of the k_mem_slab_free() function with a new one,
replacing the old void **mem with void *mem as a parameter.

The following function:
void k_mem_slab_free(struct k_mem_slab *slab, void **mem);

has the wrong signature. mem is only used as a regular pointer, so there
is no need to use a double-pointer. The correct signature should be:
void k_mem_slab_free(struct k_mem_slab *slab, void *mem);

The issue with the current signature, although functional, is that it is
extremely confusing. I myself, a veteran Zephyr developer, was confused
by this parameter when looking at it recently.

All in-tree uses of the function have been adapted.

Fixes #61888.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2023-09-03 18:20:59 -04:00
..
ctf
include iterable_sections: move to specific header 2023-05-22 10:42:30 +02:00
sysview tracing: segger-sysview: fix display formatting 2023-08-06 07:44:06 -04:00
test kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
user tracing_user: let user implementation to do everything 2023-08-17 15:13:17 +02:00
CMakeLists.txt ctf tracing: native/host backend: Refactor to support embedded C libraries 2023-07-13 05:47:08 -04:00
Kconfig
tracing_backend_posix_bottom.c ctf tracing: native/host backend: Refactor to support embedded C libraries 2023-07-13 05:47:08 -04:00
tracing_backend_posix_bottom.h ctf tracing: native/host backend: Refactor to support embedded C libraries 2023-07-13 05:47:08 -04:00
tracing_backend_posix.c ctf tracing: native/host backend: Refactor to support embedded C libraries 2023-07-13 05:47:08 -04:00
tracing_backend_ram.c
tracing_backend_uart.c armclang: fix compiler warnings with isprint() 2023-03-17 09:30:01 +01:00
tracing_backend_usb.c
tracing_buffer.c
tracing_core.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
tracing_format_async.c
tracing_format_common.c
tracing_format_sync.c
tracing_none.c
tracing_tracking.c iterable_sections: move to specific header 2023-05-22 10:42:30 +02:00