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/drm Ifdef out Linux-only definition.



details:   https://anonhg.NetBSD.org/src/rev/053d7a71f350
branches:  trunk
changeset: 1028276:053d7a71f350
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 09:59:57 2021 +0000

description:
Ifdef out Linux-only definition.

diffstat:

 sys/external/bsd/drm2/dist/drm/drm_gem.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r 1ca2803dc57b -r 053d7a71f350 sys/external/bsd/drm2/dist/drm/drm_gem.c
--- a/sys/external/bsd/drm2/dist/drm/drm_gem.c  Sun Dec 19 09:59:46 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_gem.c  Sun Dec 19 09:59:57 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_gem.c,v 1.17 2021/12/19 01:02:44 riastradh Exp $   */
+/*     $NetBSD: drm_gem.c,v 1.18 2021/12/19 09:59:57 riastradh Exp $   */
 
 /*
  * Copyright © 2008 Intel Corporation
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_gem.c,v 1.17 2021/12/19 01:02:44 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_gem.c,v 1.18 2021/12/19 09:59:57 riastradh Exp $");
 
 #include <linux/types.h>
 #include <linux/slab.h>
@@ -565,12 +565,14 @@
  * Move pages to appropriate lru and release the pagevec, decrementing the
  * ref count of those pages.
  */
+#ifndef __NetBSD__
 static void drm_gem_check_release_pagevec(struct pagevec *pvec)
 {
        check_move_unevictable_pages(pvec);
        __pagevec_release(pvec);
        cond_resched();
 }
+#endif
 
 /**
  * drm_gem_get_pages - helper to allocate backing pages for a GEM object



Home | Main Index | Thread Index | Old Index