hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
kernel/net/bluetooth/a2mp.h
....@@ -1,15 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 Copyright (c) 2010,2011 Code Aurora Forum. All rights reserved.
34 Copyright (c) 2011,2012 Intel Corp.
45
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.
136 */
147
158 #ifndef __A2MP_H
....@@ -43,14 +36,14 @@
4336 __u8 code;
4437 __u8 ident;
4538 __le16 len;
46
- __u8 data[0];
39
+ __u8 data[];
4740 } __packed;
4841
4942 /* A2MP command codes */
5043 #define A2MP_COMMAND_REJ 0x01
5144 struct a2mp_cmd_rej {
5245 __le16 reason;
53
- __u8 data[0];
46
+ __u8 data[];
5447 } __packed;
5548
5649 #define A2MP_DISCOVER_REQ 0x02
....@@ -69,7 +62,7 @@
6962 struct a2mp_discov_rsp {
7063 __le16 mtu;
7164 __le16 ext_feat;
72
- struct a2mp_cl cl[0];
65
+ struct a2mp_cl cl[];
7366 } __packed;
7467
7568 #define A2MP_CHANGE_NOTIFY 0x04
....@@ -100,7 +93,7 @@
10093 struct a2mp_amp_assoc_rsp {
10194 __u8 id;
10295 __u8 status;
103
- __u8 amp_assoc[0];
96
+ __u8 amp_assoc[];
10497 } __packed;
10598
10699 #define A2MP_CREATEPHYSLINK_REQ 0x0A
....@@ -108,7 +101,7 @@
108101 struct a2mp_physlink_req {
109102 __u8 local_id;
110103 __u8 remote_id;
111
- __u8 amp_assoc[0];
104
+ __u8 amp_assoc[];
112105 } __packed;
113106
114107 #define A2MP_CREATEPHYSLINK_RSP 0x0B