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

Hans Petter Selasky hselasky at FreeBSD.org
Thu Jun 7 11:46:00 UTC 2018


Author: hselasky
Date: Thu Jun  7 11:44:11 2018
New Revision: 334778
URL: https://svnweb.freebsd.org/changeset/base/334778

Log:
  Define ARCH_KMALLOC_MINALIGN in the LinuxKPI.
  
  Submitted by:	Johannes Lundberg <johalun0 at gmail.com>
  MFC after:	1 week
  Sponsored by:	Mellanox Technologies
  Sponsored by:	Limelight Networks

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	Thu Jun  7 11:41:42 2018	(r334777)
+++ head/sys/compat/linuxkpi/common/include/linux/slab.h	Thu Jun  7 11:44:11 2018	(r334778)
@@ -85,6 +85,9 @@ struct linux_kmem_cache {
 #define	SLAB_DESTROY_BY_RCU \
 	SLAB_TYPESAFE_BY_RCU
 
+#define	ARCH_KMALLOC_MINALIGN \
+	__alignof(unsigned long long)
+
 static inline gfp_t
 linux_check_m_flags(gfp_t flags)
 {


More information about the svn-src-head mailing list