hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
kernel/net/bluetooth/bnep/bnep.h
....@@ -1,18 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 BNEP protocol definition for Linux Bluetooth stack (BlueZ).
34 Copyright (C) 2002 Maxim Krasnyansky <maxk@qualcomm.com>
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, as
7
- 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
-
14
- You should have received a copy of the GNU General Public License
15
- along with this program; if not, see <http://www.gnu.org/licenses/>.
166 */
177
188 #ifndef _BNEP_H
....@@ -84,14 +74,14 @@
8474 __u8 type;
8575 __u8 ctrl;
8676 __u8 uuid_size;
87
- __u8 service[0];
77
+ __u8 service[];
8878 } __packed;
8979
9080 struct bnep_set_filter_req {
9181 __u8 type;
9282 __u8 ctrl;
9383 __be16 len;
94
- __u8 list[0];
84
+ __u8 list[];
9585 } __packed;
9686
9787 struct bnep_control_rsp {
....@@ -103,7 +93,7 @@
10393 struct bnep_ext_hdr {
10494 __u8 type;
10595 __u8 len;
106
- __u8 data[0];
96
+ __u8 data[];
10797 } __packed;
10898
10999 /* BNEP ioctl defines */