.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * jitdump.h: jitted code info encapsulation file format |
---|
3 | 4 | * |
---|
.. | .. |
---|
92 | 93 | uint64_t addr; |
---|
93 | 94 | int lineno; /* source line number starting at 1 */ |
---|
94 | 95 | int discrim; /* column discriminator, 0 is default */ |
---|
95 | | - const char name[0]; /* null terminated filename, \xff\0 if same as previous entry */ |
---|
| 96 | + const char name[]; /* null terminated filename, \xff\0 if same as previous entry */ |
---|
96 | 97 | }; |
---|
97 | 98 | |
---|
98 | 99 | struct jr_code_debug_info { |
---|
.. | .. |
---|
100 | 101 | |
---|
101 | 102 | uint64_t code_addr; |
---|
102 | 103 | uint64_t nr_entry; |
---|
103 | | - struct debug_entry entries[0]; |
---|
| 104 | + struct debug_entry entries[]; |
---|
104 | 105 | }; |
---|
105 | 106 | |
---|
106 | 107 | struct jr_code_unwinding_info { |
---|
.. | .. |
---|
109 | 110 | uint64_t unwinding_size; |
---|
110 | 111 | uint64_t eh_frame_hdr_size; |
---|
111 | 112 | uint64_t mapped_size; |
---|
112 | | - const char unwinding_data[0]; |
---|
| 113 | + const char unwinding_data[]; |
---|
113 | 114 | }; |
---|
114 | 115 | |
---|
115 | 116 | union jr_entry { |
---|