| .. | .. |
|---|
| 64 | 64 | struct dblock { |
|---|
| 65 | 65 | __le32 addr; /* adapter address where to write the block */ |
|---|
| 66 | 66 | __le16 len; /* length of the data only, in bytes */ |
|---|
| 67 | | - char data[0]; /* data to be written */ |
|---|
| 67 | + char data[]; /* data to be written */ |
|---|
| 68 | 68 | } __packed; |
|---|
| 69 | 69 | |
|---|
| 70 | 70 | /* |
|---|
| .. | .. |
|---|
| 76 | 76 | __le32 id; /* record ID */ |
|---|
| 77 | 77 | __le32 addr; /* adapter address where to write the data */ |
|---|
| 78 | 78 | __le32 len; /* expected length of the data, in bytes */ |
|---|
| 79 | | - char next[0]; /* next PDR starts here */ |
|---|
| 79 | + char next[]; /* next PDR starts here */ |
|---|
| 80 | 80 | } __packed; |
|---|
| 81 | 81 | |
|---|
| 82 | 82 | /* |
|---|
| .. | .. |
|---|
| 87 | 87 | struct pdi { |
|---|
| 88 | 88 | __le16 len; /* length of ID and data, in words */ |
|---|
| 89 | 89 | __le16 id; /* record ID */ |
|---|
| 90 | | - char data[0]; /* plug data */ |
|---|
| 90 | + char data[]; /* plug data */ |
|---|
| 91 | 91 | } __packed; |
|---|
| 92 | 92 | |
|---|
| 93 | 93 | /*** FW data block access functions ***/ |
|---|