zephyr/subsys
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
..
bluetooth kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
canbus kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
console includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
debug debug: gdbstub: s/device.h/init.h 2023-08-30 11:52:49 +02:00
demand_paging kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
dfu dfu: mcuboot_shell: Add command to enter serial recovery 2023-04-24 13:27:53 +02:00
disk subsys/disk: No need of runtime intialization for disk access part 2023-03-13 18:34:40 +00:00
dsp zdsp: add ARC DSPLIB backend for zdsp 2023-02-21 15:06:06 +01:00
emul emul: Don't panic if matching emul can't be found 2023-07-18 11:09:08 +00:00
fb fb: cfb: Remove unused value 2023-08-14 18:08:59 +00:00
fs kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
input drivers,subsys: fix few missing k_work_delayable_from_work 2023-08-28 10:12:21 +02:00
ipc ipc: rpmsg_service: add missing init.h 2023-08-31 14:43:08 +02:00
jwt subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
logging logging: fix few mismatched CONTAINER_OF 2023-08-31 14:08:31 +02:00
lorawan lorawan: services: add missing init.h 2023-08-30 11:37:53 +02:00
mgmt kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
modbus modbus: use macro for function code for input register 2023-08-16 14:58:47 +02:00
modem subsys/modem: Add modem modules 2023-08-30 13:48:51 +02:00
net kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
pm pm: Fix unused-parameter warnings 2023-08-21 17:15:56 +02:00
portability kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
random random: syscalls: use zephyr_syscall_header 2023-06-17 07:57:45 -04:00
retention retention: Drop prefix/checksum code if not used 2023-08-24 20:44:02 +02:00
rtio rtio: add missing init.h include 2023-08-29 11:29:37 +01:00
sd sd: clean up sizes of some SD data fields 2023-08-31 10:19:37 +02:00
sensing sensing: sensor_mgmt: s/device.h/init.h 2023-08-29 12:17:24 +01:00
settings settings: rename shadow variables 2023-08-22 11:39:58 +02:00
shell shell: make ascii filtering optional 2023-08-29 19:22:16 +03:00
sip_svc iterable_sections: move to specific header 2023-05-22 10:42:30 +02:00
stats stats: shell: enable the stats shell if both stats and shell are enabled 2022-10-12 06:46:34 +02:00
storage storage: rename shadow variables 2023-08-22 11:39:58 +02:00
task_wdt task_wdt: Fix build warning on 64-bit platforms 2022-08-23 10:16:04 +02:00
testsuite tests: interrupt util: Fix for native/posix targets 2023-09-01 09:54:27 +02:00
timing subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
tracing kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
usb usb: host: core: add missing init.h 2023-08-29 16:13:19 +01:00
zbus zbus: improve the way of storing observers 2023-08-29 10:18:55 +02:00
CMakeLists.txt subsys/modem: Add modem modules 2023-08-30 13:48:51 +02:00
Kconfig subsys/modem: Add modem modules 2023-08-30 13:48:51 +02:00