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 Implement kreal...
details: https://anonhg.NetBSD.org/src/rev/e3bd1b8123a1
branches: riastradh-drm2
changeset: 788054:e3bd1b8123a1
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 02:01:28 2013 +0000
description:
Implement krealloc in <linux/slab.h>.
diffstat:
sys/external/bsd/drm2/include/linux/slab.h | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r bd51237e3c5e -r e3bd1b8123a1 sys/external/bsd/drm2/include/linux/slab.h
--- a/sys/external/bsd/drm2/include/linux/slab.h Wed Jul 24 02:01:13 2013 +0000
+++ b/sys/external/bsd/drm2/include/linux/slab.h Wed Jul 24 02:01:28 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: slab.h,v 1.1.2.2 2013/07/24 01:59:05 riastradh Exp $ */
+/* $NetBSD: slab.h,v 1.1.2.3 2013/07/24 02:01:28 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -52,6 +52,12 @@
return malloc(size, M_TEMP, (flags | M_ZERO));
}
+static inline void *
+krealloc(void *ptr, size_t size, int flags)
+{
+ return realloc(ptr, size, M_TEMP, flags);
+}
+
static inline void
kfree(void *ptr)
{
Home |
Main Index |
Thread Index |
Old Index