aboutsummaryrefslogtreecommitdiff
path: root/sys/compat
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2018-03-04 18:53:41 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2018-03-04 18:53:41 +0000
commitce930365d16356e873acd9a732ae863445b7b4e6 (patch)
tree43dbfa1e6bd940017e9e903e8083d4a4e331629f /sys/compat
parent8f368d485de0d1fb7d686beb4e4e26685410869e (diff)
downloadsrc-ce930365d16356e873acd9a732ae863445b7b4e6.tar.gz
src-ce930365d16356e873acd9a732ae863445b7b4e6.zip
Keep the old SLAB_DESTROY_BY_RCU macro definition around in the LinuxKPI
to avoid compilation breakage in external kernel modules. MFC after: 1 week Sponsored by: Mellanox Technologies
Notes
Notes: svn path=/head/; revision=330396
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linuxkpi/common/include/linux/slab.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/slab.h b/sys/compat/linuxkpi/common/include/linux/slab.h
index c4a3179a5e9f..69078bd796bd 100644
--- a/sys/compat/linuxkpi/common/include/linux/slab.h
+++ b/sys/compat/linuxkpi/common/include/linux/slab.h
@@ -82,6 +82,9 @@ struct linux_kmem_cache {
#define SLAB_TYPESAFE_BY_RCU (1 << 1)
#define SLAB_RECLAIM_ACCOUNT (1 << 2)
+#define SLAB_DESTROY_BY_RCU \
+ SLAB_TYPESAFE_BY_RCU
+
static inline gfp_t
linux_check_m_flags(gfp_t flags)
{