Linux 6.12: avoid kmem_cache_create redefinition
commitbc96b80550ce5586dd8e0b439252746d9d97e799
authorRob Norris <robn@despairlabs.com>
Tue, 24 Sep 2024 05:43:48 +0000 (24 15:43 +1000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 1 Oct 2024 20:53:33 +0000 (1 13:53 -0700)
tree5a0190cfd2174aa66e238ac011c16ac75a0ef123
parent20232ecfaa34177bef6c08f2f1a55b8c8bd20da4
Linux 6.12: avoid kmem_cache_create redefinition

torvalds/linux@b2e7456b5c25 makes kmem_cache_create() a macro, which
gets in the way of our our own redefinition, so we undef the macro first
for our own clients. This follows what we did for kmem_cache_alloc(),
see e951dba48.

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16582
include/os/linux/spl/sys/kmem_cache.h