Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Apr 2019 11:26:18 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r345929 - stable/12/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201904051126.x35BQIUi007891@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Fri Apr  5 11:26:18 2019
New Revision: 345929
URL: https://svnweb.freebsd.org/changeset/base/345929

Log:
  MFC r345104:
  Implement more malloc function macros in the LinuxKPI.
  Fix arguments for currently unused kvmalloc().
  
  Submitted by:		Johannes Lundberg <johalun0@gmail.com>
  Sponsored by:		Limelight Networks
  Sponsored by:		Mellanox Technologies

Modified:
  stable/12/sys/compat/linuxkpi/common/include/linux/slab.h
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/compat/linuxkpi/common/include/linux/slab.h
==============================================================================
--- stable/12/sys/compat/linuxkpi/common/include/linux/slab.h	Fri Apr  5 11:24:14 2019	(r345928)
+++ stable/12/sys/compat/linuxkpi/common/include/linux/slab.h	Fri Apr  5 11:26:18 2019	(r345929)
@@ -42,7 +42,9 @@
 
 MALLOC_DECLARE(M_KMALLOC);
 
-#define	kvmalloc(size)			kmalloc(size, 0)
+#define	kvmalloc(size, flags)		kmalloc(size, flags)
+#define	kvzalloc(size, flags)		kmalloc(size, (flags) | __GFP_ZERO)
+#define	kvcalloc(n, size, flags)	kvmalloc_array(n, size, (flags) | __GFP_ZERO)
 #define	kzalloc(size, flags)		kmalloc(size, (flags) | __GFP_ZERO)
 #define	kzalloc_node(size, flags, node)	kmalloc(size, (flags) | __GFP_ZERO)
 #define	kfree_const(ptr)		kfree(ptr)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904051126.x35BQIUi007891>