Module Name: src
Committed By: riastradh
Date: Sun Dec 19 09:56:03 UTC 2021
Modified Files:
src/sys/external/bsd/drm2/dist/include/drm: drm_gem.h
Log Message:
Reset after #undef free. This will surely come to bite us later, too.
Author: Maya Rashish <[email protected]>
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 \
src/sys/external/bsd/drm2/dist/include/drm/drm_gem.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/drm2/dist/include/drm/drm_gem.h
diff -u src/sys/external/bsd/drm2/dist/include/drm/drm_gem.h:1.10 src/sys/external/bsd/drm2/dist/include/drm/drm_gem.h:1.11
--- src/sys/external/bsd/drm2/dist/include/drm/drm_gem.h:1.10 Sun Dec 19 09:48:14 2021
+++ src/sys/external/bsd/drm2/dist/include/drm/drm_gem.h Sun Dec 19 09:56:03 2021
@@ -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 @@ int drm_gem_dumb_destroy(struct drm_file
struct drm_device *dev,
uint32_t handle);
+#define free(addr, type) kern_free(addr)
+
#endif /* __DRM_GEM_H__ */