Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/riastradh-drm2]: src/sys/external/bsd/drm2/include/linux Add vzalloc to ...



details:   https://anonhg.NetBSD.org/src/rev/bc6059b39361
branches:  riastradh-drm2
changeset: 788140:bc6059b39361
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 02:25:12 2013 +0000

description:
Add vzalloc to <linux/vmalloc.h>.

diffstat:

 sys/external/bsd/drm2/include/linux/vmalloc.h |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 1639dd45469b -r bc6059b39361 sys/external/bsd/drm2/include/linux/vmalloc.h
--- a/sys/external/bsd/drm2/include/linux/vmalloc.h     Wed Jul 24 02:24:58 2013 +0000
+++ b/sys/external/bsd/drm2/include/linux/vmalloc.h     Wed Jul 24 02:25:12 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmalloc.h,v 1.1.2.2 2013/07/24 02:02:45 riastradh Exp $        */
+/*     $NetBSD: vmalloc.h,v 1.1.2.3 2013/07/24 02:25:12 riastradh Exp $        */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -40,6 +40,12 @@
        return malloc(size, M_TEMP, (M_WAITOK | M_ZERO));
 }
 
+static inline void *
+vzalloc(unsigned long size)
+{
+       return malloc(size, M_TEMP, (M_WAITOK | M_ZERO));
+}
+
 static inline void
 vfree(void *ptr)
 {



Home | Main Index | Thread Index | Old Index