svn commit: r246244 - head/sys/cddl/compat/opensolaris/sys
Andriy Gapon
avg at FreeBSD.org
Sat Feb 2 11:41:06 UTC 2013
Author: avg
Date: Sat Feb 2 11:41:05 2013
New Revision: 246244
URL: http://svnweb.freebsd.org/changeset/base/246244
Log:
solaris compat: remove KM_ZERO
- there is no such flag in Solaris and derivatives
- the flag was added in an unrelated change
- the flag is not used
The proper way to allocate zeroed out memory is to use kmem_zalloc.
MFC after: 3 days
Modified:
head/sys/cddl/compat/opensolaris/sys/kmem.h
Modified: head/sys/cddl/compat/opensolaris/sys/kmem.h
==============================================================================
--- head/sys/cddl/compat/opensolaris/sys/kmem.h Sat Feb 2 11:38:26 2013 (r246243)
+++ head/sys/cddl/compat/opensolaris/sys/kmem.h Sat Feb 2 11:41:05 2013 (r246244)
@@ -45,7 +45,6 @@ MALLOC_DECLARE(M_SOLARIS);
#define KM_SLEEP M_WAITOK
#define KM_PUSHPAGE M_WAITOK
#define KM_NOSLEEP M_NOWAIT
-#define KM_ZERO M_ZERO
#define KM_NODEBUG M_NODUMP
#define KMC_NODEBUG UMA_ZONE_NODUMP
#define KMC_NOTOUCH 0
More information about the svn-src-head
mailing list