| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /****************************************************************************** |
|---|
| 2 | 3 | |
|---|
| 3 | 4 | Copyright(c) 2003 - 2006 Intel Corporation. All rights reserved. |
|---|
| 4 | 5 | |
|---|
| 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. |
|---|
| 20 | 6 | |
|---|
| 21 | 7 | Contact Information: |
|---|
| 22 | 8 | Intel Linux Wireless <ilw@linux.intel.com> |
|---|
| .. | .. |
|---|
| 462 | 448 | u8 index; |
|---|
| 463 | 449 | u8 length; |
|---|
| 464 | 450 | __le16 reserved; |
|---|
| 465 | | - u8 payload[0]; |
|---|
| 451 | + u8 payload[]; |
|---|
| 466 | 452 | } __packed; |
|---|
| 467 | 453 | |
|---|
| 468 | 454 | struct tfd_data { |
|---|
| .. | .. |
|---|
| 689 | 675 | // is identical) |
|---|
| 690 | 676 | u8 rtscts_seen; // 0x1 RTS seen ; 0x2 CTS seen |
|---|
| 691 | 677 | __le16 length; |
|---|
| 692 | | - u8 data[0]; |
|---|
| 678 | + u8 data[]; |
|---|
| 693 | 679 | } __packed; |
|---|
| 694 | 680 | |
|---|
| 695 | 681 | struct ipw_rx_header { |
|---|
| .. | .. |
|---|
| 1016 | 1002 | * Incoming parameters listed 1-st, followed by outcoming params. |
|---|
| 1017 | 1003 | * nParams=(len+3)/4+status_len |
|---|
| 1018 | 1004 | */ |
|---|
| 1019 | | - u32 param[0]; |
|---|
| 1005 | + u32 param[]; |
|---|
| 1020 | 1006 | } __packed; |
|---|
| 1021 | 1007 | |
|---|
| 1022 | 1008 | #define STATUS_HCMD_ACTIVE (1<<0) /**< host command in progress */ |
|---|
| .. | .. |
|---|
| 1122 | 1108 | u32 log_len; |
|---|
| 1123 | 1109 | struct ipw_error_elem *elem; |
|---|
| 1124 | 1110 | struct ipw_event *log; |
|---|
| 1125 | | - u8 payload[0]; |
|---|
| 1111 | + u8 payload[]; |
|---|
| 1126 | 1112 | } __packed; |
|---|
| 1127 | 1113 | |
|---|
| 1128 | 1114 | #ifdef CONFIG_IPW2200_PROMISCUOUS |
|---|
| .. | .. |
|---|
| 1167 | 1153 | s8 rt_dbmsignal; /* signal in dbM, kluged to signed */ |
|---|
| 1168 | 1154 | s8 rt_dbmnoise; |
|---|
| 1169 | 1155 | u8 rt_antenna; /* antenna number */ |
|---|
| 1170 | | - u8 payload[0]; /* payload... */ |
|---|
| 1156 | + u8 payload[]; /* payload... */ |
|---|
| 1171 | 1157 | } __packed; |
|---|
| 1172 | 1158 | #endif |
|---|
| 1173 | 1159 | |
|---|
| .. | .. |
|---|
| 1343 | 1329 | |
|---|
| 1344 | 1330 | s8 tx_power; |
|---|
| 1345 | 1331 | |
|---|
| 1346 | | - /* Track time in suspend using CLOCK_BOOTIME */ |
|---|
| 1332 | + /* Track time in suspend using CLOCK_BOOTTIME */ |
|---|
| 1347 | 1333 | time64_t suspend_at; |
|---|
| 1348 | 1334 | time64_t suspend_time; |
|---|
| 1349 | 1335 | |
|---|
| .. | .. |
|---|
| 1396 | 1382 | |
|---|
| 1397 | 1383 | #define IPW_DEBUG(level, fmt, args...) \ |
|---|
| 1398 | 1384 | 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) |
|---|
| 1401 | 1386 | |
|---|
| 1402 | 1387 | #ifdef CONFIG_IPW2200_DEBUG |
|---|
| 1403 | 1388 | #define IPW_LL_DEBUG(level, fmt, args...) \ |
|---|
| 1404 | 1389 | 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) |
|---|
| 1407 | 1391 | #else |
|---|
| 1408 | 1392 | #define IPW_LL_DEBUG(level, fmt, args...) do {} while (0) |
|---|
| 1409 | 1393 | #endif /* CONFIG_IPW2200_DEBUG */ |
|---|