gcc produces a variable may be uninitialized warning for "val" in parse_entry(). This is really a false positive, but the code is subtle enough to just initialize val to zero and it's not a fast path to worry about it. Marked for stable to remove the warning in the stable trees as well.
Showing the changes to kernel/trace (1 of 1 file). Show all
Unified · Split
| @@ -195,7 +195,7 @@ static int parse_entry(char *str, struct trace_event_call *call, void **pentry) · 194 unmodified lines | |||
| 195 | unsigned long irq_flags; | 195 | unsigned long irq_flags; |
| 196 | void *entry = NULL; | 196 | void *entry = NULL; |
| 197 | int entry_size; | 197 | int entry_size; |
| 198 | u64 val; | 198 | u64 val = 0; |
| 199 | int len; | 199 | int len; |
| 200 | 200 | ||
| 201 | entry = trace_alloc_entry(call, &entry_size); | 201 | entry = trace_alloc_entry(call, &entry_size); |