Module Name:    src
Committed By:   riastradh
Date:           Sun Dec 19 11:12:06 UTC 2021

Modified Files:
        src/sys/external/bsd/drm2/dist/drm/i915: i915_vma.h

Log Message:
Define __iomem to nothing for this one function. (Somewhat overkill..)

Author: Maya Rashish <m...@netbsd.org>
Committer: Taylor R Campbell <riastr...@netbsd.org>


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/external/bsd/drm2/dist/drm/i915/i915_vma.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/drm/i915/i915_vma.h
diff -u src/sys/external/bsd/drm2/dist/drm/i915/i915_vma.h:1.4 src/sys/external/bsd/drm2/dist/drm/i915/i915_vma.h:1.5
--- src/sys/external/bsd/drm2/dist/drm/i915/i915_vma.h:1.4	Sun Dec 19 11:11:59 2021
+++ src/sys/external/bsd/drm2/dist/drm/i915/i915_vma.h	Sun Dec 19 11:12:06 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: i915_vma.h,v 1.4 2021/12/19 11:11:59 riastradh Exp $	*/
+/*	$NetBSD: i915_vma.h,v 1.5 2021/12/19 11:12:06 riastradh Exp $	*/
 
 /*
  * Copyright © 2016 Intel Corporation
@@ -297,7 +297,14 @@ static inline bool i915_node_color_diffe
  *
  * Returns a valid iomapped pointer or ERR_PTR.
  */
+#ifdef __NetBSD__
+#  define	__iomem		__i915_vma_iomem
+#endif
 void __iomem *i915_vma_pin_iomap(struct i915_vma *vma);
+#ifdef __NetBSD__
+#  undef	__iomem
+#endif
+
 #define IO_ERR_PTR(x) ((void __iomem *)ERR_PTR(x))
 
 /**

Reply via email to