| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | Copyright (c) 2010,2011 Code Aurora Forum. All rights reserved. |
|---|
| 3 | 4 | Copyright (c) 2011,2012 Intel Corp. |
|---|
| 4 | 5 | |
|---|
| 5 | | - This program is free software; you can redistribute it and/or modify |
|---|
| 6 | | - it under the terms of the GNU General Public License version 2 and |
|---|
| 7 | | - only version 2 as published by the Free Software Foundation. |
|---|
| 8 | | - |
|---|
| 9 | | - This program is distributed in the hope that it will be useful, |
|---|
| 10 | | - but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 11 | | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 12 | | - GNU General Public License for more details. |
|---|
| 13 | 6 | */ |
|---|
| 14 | 7 | |
|---|
| 15 | 8 | #ifndef __A2MP_H |
|---|
| .. | .. |
|---|
| 43 | 36 | __u8 code; |
|---|
| 44 | 37 | __u8 ident; |
|---|
| 45 | 38 | __le16 len; |
|---|
| 46 | | - __u8 data[0]; |
|---|
| 39 | + __u8 data[]; |
|---|
| 47 | 40 | } __packed; |
|---|
| 48 | 41 | |
|---|
| 49 | 42 | /* A2MP command codes */ |
|---|
| 50 | 43 | #define A2MP_COMMAND_REJ 0x01 |
|---|
| 51 | 44 | struct a2mp_cmd_rej { |
|---|
| 52 | 45 | __le16 reason; |
|---|
| 53 | | - __u8 data[0]; |
|---|
| 46 | + __u8 data[]; |
|---|
| 54 | 47 | } __packed; |
|---|
| 55 | 48 | |
|---|
| 56 | 49 | #define A2MP_DISCOVER_REQ 0x02 |
|---|
| .. | .. |
|---|
| 69 | 62 | struct a2mp_discov_rsp { |
|---|
| 70 | 63 | __le16 mtu; |
|---|
| 71 | 64 | __le16 ext_feat; |
|---|
| 72 | | - struct a2mp_cl cl[0]; |
|---|
| 65 | + struct a2mp_cl cl[]; |
|---|
| 73 | 66 | } __packed; |
|---|
| 74 | 67 | |
|---|
| 75 | 68 | #define A2MP_CHANGE_NOTIFY 0x04 |
|---|
| .. | .. |
|---|
| 100 | 93 | struct a2mp_amp_assoc_rsp { |
|---|
| 101 | 94 | __u8 id; |
|---|
| 102 | 95 | __u8 status; |
|---|
| 103 | | - __u8 amp_assoc[0]; |
|---|
| 96 | + __u8 amp_assoc[]; |
|---|
| 104 | 97 | } __packed; |
|---|
| 105 | 98 | |
|---|
| 106 | 99 | #define A2MP_CREATEPHYSLINK_REQ 0x0A |
|---|
| .. | .. |
|---|
| 108 | 101 | struct a2mp_physlink_req { |
|---|
| 109 | 102 | __u8 local_id; |
|---|
| 110 | 103 | __u8 remote_id; |
|---|
| 111 | | - __u8 amp_assoc[0]; |
|---|
| 104 | + __u8 amp_assoc[]; |
|---|
| 112 | 105 | } __packed; |
|---|
| 113 | 106 | |
|---|
| 114 | 107 | #define A2MP_CREATEPHYSLINK_RSP 0x0B |
|---|