aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include/linux
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2022-08-09 12:50:04 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2022-08-18 07:46:47 +0000
commit35b7625ed026d8afaf3e8e27bc9d1067d38dbde6 (patch)
tree31bd52ad3ae273063bbf615a7c9154ff003fd43e /sys/compat/linuxkpi/common/include/linux
parentb2c860060ccd6020f313f48107694ef207acfc9a (diff)
downloadsrc-35b7625ed026d8afaf3e8e27bc9d1067d38dbde6.tar.gz
src-35b7625ed026d8afaf3e8e27bc9d1067d38dbde6.zip
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
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux')
-rw-r--r--sys/compat/linuxkpi/common/include/linux/slab.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/slab.h b/sys/compat/linuxkpi/common/include/linux/slab.h
index 1228c4d07aa6..16b5afcea693 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), \