zephyr/subsys/fs/ext2
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
ext2_bitmap.c fs: ext2: fix blocks and inodes handling 2023-08-03 12:22:01 -04:00
ext2_bitmap.h fs: ext2: fix blocks and inodes handling 2023-08-03 12:22:01 -04:00
ext2_disk_access.c fs: ext2: impl fs_sync 2023-08-03 12:22:01 -04:00
ext2_diskops.c fs: rename shadow variables 2023-08-22 11:39:58 +02:00
ext2_diskops.h fs: ext2: Use disk structs to access data on disk 2023-08-03 12:22:01 -04:00
ext2_format.c fs: ext2: Use disk structs to access data on disk 2023-08-03 12:22:01 -04:00
ext2_impl.c kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
ext2_impl.h fs: ext2: Use disk structs to access data on disk 2023-08-03 12:22:01 -04:00
ext2_ops.c kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
ext2_struct.h fs: ext2: Use disk structs to access data on disk 2023-08-03 12:22:01 -04:00
ext2.h fs: ext2: create correct file system in mkfs 2023-08-03 12:22:01 -04:00
Kconfig