zephyr/drivers/console
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
..
CMakeLists.txt drivers: syscalls: use zephyr_syscall_header 2023-06-17 07:57:45 -04:00
efi_console.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
gsm_mux.c all: logging: Remove log_strdup function 2022-06-23 13:42:23 +02:00
gsm_mux.h all: Fix "#if IS_ENABLED(CONFIG_FOO)" occurrences 2022-12-21 10:09:23 +01:00
ipm_console.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
ipm_console_receiver.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
ipm_console_sender.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
jailhouse_debug_console.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
Kconfig COVERAGE: Fix COVERAGE_GCOV dependencies 2023-08-24 15:36:31 +02:00
Kconfig.gsm_mux crc: Make the build of crc function dependent on a Kconfig 2022-11-23 13:30:00 +01:00
posix_arch_console.c drivers: Console: Move all posix arch boards to same driver 2023-05-26 12:57:41 +02:00
ram_console.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
rtt_console.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
semihost_console.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
uart_console.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
uart_mcumgr.c kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
uart_mux.c iterable_sections: move to specific header 2023-05-22 10:42:30 +02:00
uart_mux_internal.h drivers: uart_mux: Fix documentation of uart_mux_recv() 2023-01-19 08:44:34 -06:00
winstream_console.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
xtensa_sim_console.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00