svn commit: r330396 - head/sys/compat/linuxkpi/common/include/linux

Hans Petter Selasky hselasky at FreeBSD.org
Sun Mar 4 18:53:42 UTC 2018


Author: hselasky
Date: Sun Mar  4 18:53:41 2018
New Revision: 330396
URL: https://svnweb.freebsd.org/changeset/base/330396

Log:
  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

Modified:
  head/sys/compat/linuxkpi/common/include/linux/slab.h

Modified: head/sys/compat/linuxkpi/common/include/linux/slab.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/slab.h	Sun Mar  4 18:51:43 2018	(r330395)
+++ head/sys/compat/linuxkpi/common/include/linux/slab.h	Sun Mar  4 18:53:41 2018	(r330396)
@@ -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)
 {


More information about the svn-src-head mailing list