Module Name:    src
Committed By:   riastradh
Date:           Sun Dec 19 11:13:36 UTC 2021

Modified Files:
        src/sys/external/bsd/drm2/dist/drm/i915: i915_buddy.c

Log Message:
i915: LIST_HEAD -> struct list_head = LIST_HEAD_INIT


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/external/bsd/drm2/dist/drm/i915/i915_buddy.c

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_buddy.c
diff -u src/sys/external/bsd/drm2/dist/drm/i915/i915_buddy.c:1.4 src/sys/external/bsd/drm2/dist/drm/i915/i915_buddy.c:1.5
--- src/sys/external/bsd/drm2/dist/drm/i915/i915_buddy.c:1.4	Sun Dec 19 11:13:30 2021
+++ src/sys/external/bsd/drm2/dist/drm/i915/i915_buddy.c	Sun Dec 19 11:13:36 2021
@@ -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 @@ int i915_buddy_alloc_range(struct i915_b
 {
 	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;

Reply via email to