forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/drivers/net/wireless/intel/ipw2x00/ipw2200.h
....@@ -1,22 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /******************************************************************************
23
34 Copyright(c) 2003 - 2006 Intel Corporation. All rights reserved.
45
5
- This program is free software; you can redistribute it and/or modify it
6
- under the terms of version 2 of the GNU General Public License as
7
- published by the Free Software Foundation.
8
-
9
- This program is distributed in the hope that it will be useful, but WITHOUT
10
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12
- more details.
13
-
14
- You should have received a copy of the GNU General Public License along with
15
- this program; if not, write to the Free Software Foundation, Inc., 59
16
- Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
-
18
- The full GNU General Public License is included in this distribution in the
19
- file called LICENSE.
206
217 Contact Information:
228 Intel Linux Wireless <ilw@linux.intel.com>
....@@ -462,7 +448,7 @@
462448 u8 index;
463449 u8 length;
464450 __le16 reserved;
465
- u8 payload[0];
451
+ u8 payload[];
466452 } __packed;
467453
468454 struct tfd_data {
....@@ -689,7 +675,7 @@
689675 // is identical)
690676 u8 rtscts_seen; // 0x1 RTS seen ; 0x2 CTS seen
691677 __le16 length;
692
- u8 data[0];
678
+ u8 data[];
693679 } __packed;
694680
695681 struct ipw_rx_header {
....@@ -1016,7 +1002,7 @@
10161002 * Incoming parameters listed 1-st, followed by outcoming params.
10171003 * nParams=(len+3)/4+status_len
10181004 */
1019
- u32 param[0];
1005
+ u32 param[];
10201006 } __packed;
10211007
10221008 #define STATUS_HCMD_ACTIVE (1<<0) /**< host command in progress */
....@@ -1122,7 +1108,7 @@
11221108 u32 log_len;
11231109 struct ipw_error_elem *elem;
11241110 struct ipw_event *log;
1125
- u8 payload[0];
1111
+ u8 payload[];
11261112 } __packed;
11271113
11281114 #ifdef CONFIG_IPW2200_PROMISCUOUS
....@@ -1167,7 +1153,7 @@
11671153 s8 rt_dbmsignal; /* signal in dbM, kluged to signed */
11681154 s8 rt_dbmnoise;
11691155 u8 rt_antenna; /* antenna number */
1170
- u8 payload[0]; /* payload... */
1156
+ u8 payload[]; /* payload... */
11711157 } __packed;
11721158 #endif
11731159
....@@ -1343,7 +1329,7 @@
13431329
13441330 s8 tx_power;
13451331
1346
- /* Track time in suspend using CLOCK_BOOTIME */
1332
+ /* Track time in suspend using CLOCK_BOOTTIME */
13471333 time64_t suspend_at;
13481334 time64_t suspend_time;
13491335
....@@ -1396,14 +1382,12 @@
13961382
13971383 #define IPW_DEBUG(level, fmt, args...) \
13981384 do { if (ipw_debug_level & (level)) \
1399
- printk(KERN_DEBUG DRV_NAME": %c %s " fmt, \
1400
- in_interrupt() ? 'I' : 'U', __func__ , ## args); } while (0)
1385
+ printk(KERN_DEBUG DRV_NAME": %s " fmt, __func__ , ## args); } while (0)
14011386
14021387 #ifdef CONFIG_IPW2200_DEBUG
14031388 #define IPW_LL_DEBUG(level, fmt, args...) \
14041389 do { if (ipw_debug_level & (level)) \
1405
- printk(KERN_DEBUG DRV_NAME": %c %s " fmt, \
1406
- in_interrupt() ? 'I' : 'U', __func__ , ## args); } while (0)
1390
+ printk(KERN_DEBUG DRV_NAME": %s " fmt, __func__ , ## args); } while (0)
14071391 #else
14081392 #define IPW_LL_DEBUG(level, fmt, args...) do {} while (0)
14091393 #endif /* CONFIG_IPW2200_DEBUG */