Files
mirror_zfs/include/os/linux/spl/sys
Rob Norris e951dba48a Linux 6.10: work harder to avoid kmem_cache_alloc reuse
Linux 6.10 change kmem_cache_alloc to be a macro, rather than a
function, such that the old #undef for it in spl-kmem-cache.c would
remove its definition completely, breaking the build.

This inverts the model used before. Rather than always defining the
kmem_cache_* macro, then undefining then inside spl-kmem-cache.c,
instead we make a special tag to indicate we're currently inside
spl-kmem-cache.c, and not defining those in macros in the first place,
so we can use the kernel-supplied kmem_cache_* functions to implement
spl_kmem_cache_*, as we expect.

For all other callers, we create the macros as normal and remove access
to the kernel's own conflicting names.

Signed-off-by: Rob Norris <robn@despairlabs.com>
Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
2024-07-15 17:10:02 -07:00
..
2023-01-24 09:04:39 -08:00
2022-01-26 11:38:52 -08:00
2021-06-07 09:02:47 -07:00
2023-04-25 16:05:45 -07:00
2022-01-26 11:38:52 -08:00
2024-05-29 10:49:11 -07:00
2022-05-13 10:15:31 -07:00
2023-12-15 09:51:41 -08:00
2022-09-20 15:32:44 -07:00
2020-10-31 09:40:08 -07:00
2021-05-27 14:27:29 -06:00
2022-06-10 09:51:46 -07:00