Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2/dist/include/drm Reset after #undef fr...



details:   https://anonhg.NetBSD.org/src/rev/bfdbe048f4bd
branches:  trunk
changeset: 1028248:bfdbe048f4bd
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 09:56:03 2021 +0000

description:
Reset after #undef free. This will surely come to bite us later, too.


Author: Maya Rashish <maya%NetBSD.org@localhost>

diffstat:

 sys/external/bsd/drm2/dist/include/drm/drm_gem.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 82401b0a926d -r bfdbe048f4bd sys/external/bsd/drm2/dist/include/drm/drm_gem.h
--- a/sys/external/bsd/drm2/dist/include/drm/drm_gem.h  Sun Dec 19 09:55:55 2021 +0000
+++ b/sys/external/bsd/drm2/dist/include/drm/drm_gem.h  Sun Dec 19 09:56:03 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_gem.h,v 1.10 2021/12/19 09:48:14 riastradh Exp $   */
+/*     $NetBSD: drm_gem.h,v 1.11 2021/12/19 09:56:03 riastradh Exp $   */
 
 #ifndef __DRM_GEM_H__
 #define __DRM_GEM_H__
@@ -44,6 +44,8 @@
 #include <linux/kref.h>
 #include <linux/dma-resv.h>
 
+#include <drm/drm_device.h>
+#include <drm/drm_print.h>
 #include <drm/drm_vma_manager.h>
 #undef free
 
@@ -451,4 +453,6 @@
                         struct drm_device *dev,
                         uint32_t handle);
 
+#define        free(addr, type)                kern_free(addr)
+
 #endif /* __DRM_GEM_H__ */



Home | Main Index | Thread Index | Old Index