Lines 1-15
Link Here
|
1 |
--- src/intel_list.h.orig 2017-02-28 20:52:19 UTC |
1 |
kgem.c:2864:22: error: variable 'bo' is uninitialized when used here [-Werror,-Wuninitialized] |
|
|
2 |
list_for_each_entry(bo, &kgem->snoop, list) { |
3 |
^~ |
4 |
../../src/intel_list.h:328:45: note: expanded from macro 'list_for_each_entry' |
5 |
for (pos = __container_of((head)->next, pos, member); \ |
6 |
^~~ |
7 |
../../src/intel_list.h:309:41: note: expanded from macro '__container_of' |
8 |
(void *)((char *)(ptr) - ((char *)&(sample)->member - (char *)(sample))) |
9 |
^~~~~~ |
10 |
kgem.c:2849:20: note: initialize the variable 'bo' to silence this warning |
11 |
struct kgem_bo *bo, *first = NULL; |
12 |
^ |
13 |
= NULL |
14 |
kgem.c:3118:27: error: variable 'bo' is uninitialized when used here [-Werror,-Wuninitialized] |
15 |
list_for_each_entry_safe(bo, next, &kgem->flushing, request) { |
16 |
^~ |
17 |
../../src/intel_list.h:345:45: note: expanded from macro 'list_for_each_entry_safe' |
18 |
for (pos = __container_of((head)->next, pos, member), \ |
19 |
^~~ |
20 |
../../src/intel_list.h:309:41: note: expanded from macro '__container_of' |
21 |
(void *)((char *)(ptr) - ((char *)&(sample)->member - (char *)(sample))) |
22 |
^~~~~~ |
23 |
kgem.c:3115:20: note: initialize the variable 'bo' to silence this warning |
24 |
struct kgem_bo *bo, *next; |
25 |
^ |
26 |
= NULL |
27 |
kgem.c:3429:27: error: variable 'bo' is uninitialized when used here [-Werror,-Wuninitialized] |
28 |
list_for_each_entry_safe(bo, next, &rq->buffers, request) { |
29 |
^~ |
30 |
../../src/intel_list.h:345:45: note: expanded from macro 'list_for_each_entry_safe' |
31 |
for (pos = __container_of((head)->next, pos, member), \ |
32 |
^~~ |
33 |
../../src/intel_list.h:309:41: note: expanded from macro '__container_of' |
34 |
(void *)((char *)(ptr) - ((char *)&(sample)->member - (char *)(sample))) |
35 |
^~~~~~ |
36 |
kgem.c:3425:20: note: initialize the variable 'bo' to silence this warning |
37 |
struct kgem_bo *bo, *next; |
38 |
^ |
39 |
= NULL |
40 |
kgem.c:3541:27: error: variable 'bo' is uninitialized when used here [-Werror,-Wuninitialized] |
41 |
list_for_each_entry_safe(bo, next, &kgem->batch_buffers, base.list) { |
42 |
^~ |
43 |
../../src/intel_list.h:345:45: note: expanded from macro 'list_for_each_entry_safe' |
44 |
for (pos = __container_of((head)->next, pos, member), \ |
45 |
^~~ |
46 |
../../src/intel_list.h:309:41: note: expanded from macro '__container_of' |
47 |
(void *)((char *)(ptr) - ((char *)&(sample)->member - (char *)(sample))) |
48 |
^~~~~~ |
49 |
kgem.c:3539:24: note: initialize the variable 'bo' to silence this warning |
50 |
struct kgem_buffer *bo, *next; |
51 |
^ |
52 |
= NULL |
53 |
kgem.c:3930:22: error: variable 'bo' is uninitialized when used here [-Werror,-Wuninitialized] |
54 |
list_for_each_entry(bo, list, list) { |
55 |
^~ |
56 |
../../src/intel_list.h:328:45: note: expanded from macro 'list_for_each_entry' |
57 |
for (pos = __container_of((head)->next, pos, member); \ |
58 |
^~~ |
59 |
../../src/intel_list.h:309:41: note: expanded from macro '__container_of' |
60 |
(void *)((char *)(ptr) - ((char *)&(sample)->member - (char *)(sample))) |
61 |
^~~~~~ |
62 |
kgem.c:3928:20: note: initialize the variable 'bo' to silence this warning |
63 |
struct kgem_bo *bo; |
64 |
^ |
65 |
= NULL |
66 |
kgem.c:4670:23: error: variable 'bo' is uninitialized when used here [-Werror,-Wuninitialized] |
67 |
list_for_each_entry(bo, cache, vma) { |
68 |
^~ |
69 |
../../src/intel_list.h:328:45: note: expanded from macro 'list_for_each_entry' |
70 |
for (pos = __container_of((head)->next, pos, member); \ |
71 |
^~~ |
72 |
../../src/intel_list.h:309:41: note: expanded from macro '__container_of' |
73 |
(void *)((char *)(ptr) - ((char *)&(sample)->member - (char *)(sample))) |
74 |
^~~~~~ |
75 |
kgem.c:4576:20: note: initialize the variable 'bo' to silence this warning |
76 |
struct kgem_bo *bo, *first = NULL; |
77 |
^ |
78 |
= NULL |
79 |
kgem.c:5411:31: error: variable 'bo' is uninitialized when used here [-Werror,-Wuninitialized] |
80 |
list_for_each_entry_reverse(bo, &kgem->scanout, list) { |
81 |
^~ |
82 |
../../src/intel_list.h:333:45: note: expanded from macro 'list_for_each_entry_reverse' |
83 |
for (pos = __container_of((head)->prev, pos, member); \ |
84 |
^~~ |
85 |
../../src/intel_list.h:309:41: note: expanded from macro '__container_of' |
86 |
(void *)((char *)(ptr) - ((char *)&(sample)->member - (char *)(sample))) |
87 |
^~~~~~ |
88 |
kgem.c:5380:20: note: initialize the variable 'bo' to silence this warning |
89 |
struct kgem_bo *bo; |
90 |
^ |
91 |
= NULL |
92 |
kgem.c:7225:22: error: variable 'bo' is uninitialized when used here [-Werror,-Wuninitialized] |
93 |
list_for_each_entry(bo, buffers, request) { |
94 |
^~ |
95 |
../../src/intel_list.h:328:45: note: expanded from macro 'list_for_each_entry' |
96 |
for (pos = __container_of((head)->next, pos, member); \ |
97 |
^~~ |
98 |
../../src/intel_list.h:309:41: note: expanded from macro '__container_of' |
99 |
(void *)((char *)(ptr) - ((char *)&(sample)->member - (char *)(sample))) |
100 |
^~~~~~ |
101 |
kgem.c:7223:20: note: initialize the variable 'bo' to silence this warning |
102 |
struct kgem_bo *bo; |
103 |
^ |
104 |
= NULL |
105 |
kgem.c:7517:22: error: variable 'bo' is uninitialized when used here [-Werror,-Wuninitialized] |
106 |
list_for_each_entry(bo, &kgem->batch_buffers, base.list) { |
107 |
^~ |
108 |
../../src/intel_list.h:328:45: note: expanded from macro 'list_for_each_entry' |
109 |
for (pos = __container_of((head)->next, pos, member); \ |
110 |
^~~ |
111 |
../../src/intel_list.h:309:41: note: expanded from macro '__container_of' |
112 |
(void *)((char *)(ptr) - ((char *)&(sample)->member - (char *)(sample))) |
113 |
^~~~~~ |
114 |
kgem.c:7503:24: note: initialize the variable 'bo' to silence this warning |
115 |
struct kgem_buffer *bo; |
116 |
^ |
117 |
= NULL |
118 |
|
119 |
--- src/intel_list.h.orig 2019-02-21 22:26:50 UTC |
2 |
+++ src/intel_list.h |
120 |
+++ src/intel_list.h |
3 |
@@ -305,8 +305,6 @@ list_is_empty(const struct list *head) |
121 |
@@ -325,12 +325,12 @@ list_is_empty(const struct list *head) |
4 |
#define list_last_entry(ptr, type, member) \ |
|
|
5 |
list_entry((ptr)->prev, type, member) |
6 |
|
7 |
-#define __container_of(ptr, sample, member) \ |
8 |
- (void *)((char *)(ptr) - ((char *)&(sample)->member - (char *)(sample))) |
9 |
/** |
10 |
* Loop through the list given by head and set pos to struct in the list. |
11 |
* |
12 |
@@ -325,12 +323,12 @@ list_is_empty(const struct list *head) |
13 |
* |
122 |
* |
14 |
*/ |
123 |
*/ |
15 |
#define list_for_each_entry(pos, head, member) \ |
124 |
#define list_for_each_entry(pos, head, member) \ |
Lines 25-31
Link Here
|
25 |
&pos->member != (head); \ |
134 |
&pos->member != (head); \ |
26 |
pos = __container_of(pos->member.prev, pos, member)) |
135 |
pos = __container_of(pos->member.prev, pos, member)) |
27 |
|
136 |
|
28 |
@@ -342,7 +340,7 @@ list_is_empty(const struct list *head) |
137 |
@@ -342,7 +342,7 @@ list_is_empty(const struct list *head) |
29 |
* See list_for_each_entry for more details. |
138 |
* See list_for_each_entry for more details. |
30 |
*/ |
139 |
*/ |
31 |
#define list_for_each_entry_safe(pos, tmp, head, member) \ |
140 |
#define list_for_each_entry_safe(pos, tmp, head, member) \ |