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/i915/gt Make intel_lrc.c buil...



details:   https://anonhg.NetBSD.org/src/rev/26c814b454f2
branches:  trunk
changeset: 1028695:26c814b454f2
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 11:47:16 2021 +0000

description:
Make intel_lrc.c build moar


Author: Maya Rashish <maya%NetBSD.org@localhost>
Committer: Taylor R Campbell <riastradh%NetBSD.org@localhost>

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/gt/intel_lrc.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r ad721cc9d99a -r 26c814b454f2 sys/external/bsd/drm2/dist/drm/i915/gt/intel_lrc.c
--- a/sys/external/bsd/drm2/dist/drm/i915/gt/intel_lrc.c        Sun Dec 19 11:47:08 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/gt/intel_lrc.c        Sun Dec 19 11:47:16 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intel_lrc.c,v 1.4 2021/12/19 11:46:47 riastradh Exp $  */
+/*     $NetBSD: intel_lrc.c,v 1.5 2021/12/19 11:47:16 riastradh Exp $  */
 
 /*
  * Copyright © 2014 Intel Corporation
@@ -134,7 +134,7 @@
  *
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intel_lrc.c,v 1.4 2021/12/19 11:46:47 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intel_lrc.c,v 1.5 2021/12/19 11:47:16 riastradh Exp $");
 
 #include <linux/interrupt.h>
 
@@ -153,6 +153,8 @@
 #include "intel_ring.h"
 #include "intel_workarounds.h"
 
+#include <linux/nbsd-namespace.h>
+
 #define RING_EXECLIST_QFULL            (1 << 0x2)
 #define RING_EXECLIST1_VALID           (1 << 0x3)
 #define RING_EXECLIST0_VALID           (1 << 0x4)
@@ -1395,7 +1397,7 @@
            struct i915_request * const *ports)
 {
        const struct intel_engine_cs *engine =
-               container_of(execlists, typeof(*engine), execlists);
+               const_container_of(execlists, typeof(*engine), execlists);
 
        if (!ports[0])
                return;



Home | Main Index | Thread Index | Old Index