From d43c533ecbff8aef5aad245280bb8d3f1d592054 Mon Sep 17 00:00:00 2001 From: Emmanuel Vadot Date: Tue, 9 Aug 2022 14:50:04 +0200 Subject: [PATCH] linuxkpi: Add stub kmem_cache_shrink Needed by drm-kmod. Reviewed by: bz Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D36108 (cherry picked from commit 35b7625ed026d8afaf3e8e27bc9d1067d38dbde6) --- sys/compat/linuxkpi/common/include/linux/slab.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/compat/linuxkpi/common/include/linux/slab.h b/sys/compat/linuxkpi/common/include/linux/slab.h index 00b4e12094d..7d590683f34 100644 --- a/sys/compat/linuxkpi/common/include/linux/slab.h +++ b/sys/compat/linuxkpi/common/include/linux/slab.h @@ -67,6 +67,7 @@ MALLOC_DECLARE(M_KMALLOC); #define kmem_cache_zalloc(...) lkpi_kmem_cache_zalloc(__VA_ARGS__) #define kmem_cache_free(...) lkpi_kmem_cache_free(__VA_ARGS__) #define kmem_cache_destroy(...) linux_kmem_cache_destroy(__VA_ARGS__) +#define kmem_cache_shrink(x) (0) #define KMEM_CACHE(__struct, flags) \ linux_kmem_cache_create(#__struct, sizeof(struct __struct), \ -- 2.45.2