zephyr/tests/benchmarks
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
..
app_kernel kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
cmsis_dsp modules: cmsis: move glue code to modules/cmsis 2023-08-24 13:20:21 +02:00
data_structure_perf tests: benchmark: rename shadow variables 2023-08-10 08:14:12 +00:00
footprints tests: add kernel tag to all benchmarks and samples 2023-06-02 04:47:06 -04:00
latency_measure test: Enhance benchmark latency reporting 2023-07-19 17:51:36 -04:00
mbedtls samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
sched tests: add kernel tag to all benchmarks and samples 2023-06-02 04:47:06 -04:00
sched_userspace tests: add kernel tag to all benchmarks and samples 2023-06-02 04:47:06 -04:00
sys_kernel kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00