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 i915: LIST_HEAD -> struc...



details:   https://anonhg.NetBSD.org/src/rev/7c26fb65f33a
branches:  trunk
changeset: 1028516:7c26fb65f33a
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 11:13:36 2021 +0000

description:
i915: LIST_HEAD -> struct list_head = LIST_HEAD_INIT

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/i915_buddy.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r c9ea10b978ef -r 7c26fb65f33a sys/external/bsd/drm2/dist/drm/i915/i915_buddy.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_buddy.c  Sun Dec 19 11:13:30 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_buddy.c  Sun Dec 19 11:13:36 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i915_buddy.c,v 1.4 2021/12/19 11:13:30 riastradh Exp $ */
+/*     $NetBSD: i915_buddy.c,v 1.5 2021/12/19 11:13:36 riastradh Exp $ */
 
 // SPDX-License-Identifier: MIT
 /*
@@ -6,7 +6,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i915_buddy.c,v 1.4 2021/12/19 11:13:30 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i915_buddy.c,v 1.5 2021/12/19 11:13:36 riastradh Exp $");
 
 #include <linux/err.h>
 #include <linux/kmemleak.h>
@@ -352,8 +352,8 @@
 {
        struct i915_buddy_block *block;
        struct i915_buddy_block *buddy;
-       LIST_HEAD(allocated);
-       LIST_HEAD(dfs);
+       struct list_head allocated = LIST_HEAD_INIT(allocated);
+       struct list_head dfs = LIST_HEAD_INIT(dfs);
        u64 end;
        int err;
        int i;



Home | Main Index | Thread Index | Old Index