hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/scsi/iscsi_if.h
....@@ -1,21 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * iSCSI User/Kernel Shares (Defines, Constants, Protocol definitions, etc)
34 *
45 * Copyright (C) 2005 Dmitry Yusupov
56 * Copyright (C) 2005 Alex Aizman
67 * maintained by open-iscsi@googlegroups.com
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published
10
- * by the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful, but
14
- * WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
- * General Public License for more details.
17
- *
18
- * See the file COPYING included with this distribution for more details.
198 */
209
2110 #ifndef ISCSI_IF_H
....@@ -71,6 +60,7 @@
7160 ISCSI_UEVENT_LOGOUT_FLASHNODE_SID = UEVENT_BASE + 30,
7261 ISCSI_UEVENT_SET_CHAP = UEVENT_BASE + 31,
7362 ISCSI_UEVENT_GET_HOST_STATS = UEVENT_BASE + 32,
63
+ ISCSI_UEVENT_DESTROY_SESSION_ASYNC = UEVENT_BASE + 33,
7464
7565 /* up events */
7666 ISCSI_KEVENT_RECV_PDU = KEVENT_BASE + 1,
....@@ -322,7 +312,7 @@
322312 struct iscsi_param_info {
323313 uint32_t len; /* Actual length of the param value */
324314 uint16_t param; /* iscsi param */
325
- uint8_t value[0]; /* length sized value follows */
315
+ uint8_t value[]; /* length sized value follows */
326316 } __packed;
327317
328318 struct iscsi_iface_param_info {
....@@ -331,7 +321,7 @@
331321 uint16_t param; /* iscsi param value */
332322 uint8_t iface_type; /* IPv4 or IPv6 */
333323 uint8_t param_type; /* iscsi_param_type */
334
- uint8_t value[0]; /* length sized value follows */
324
+ uint8_t value[]; /* length sized value follows */
335325 } __packed;
336326
337327 /*
....@@ -708,7 +698,7 @@
708698 struct iscsi_flashnode_param_info {
709699 uint32_t len; /* Actual length of the param */
710700 uint16_t param; /* iscsi param value */
711
- uint8_t value[0]; /* length sized value follows */
701
+ uint8_t value[]; /* length sized value follows */
712702 } __packed;
713703
714704 enum iscsi_discovery_parent_type {
....@@ -826,7 +816,7 @@
826816 * up to ISCSI_STATS_CUSTOM_MAX
827817 */
828818 uint32_t custom_length;
829
- struct iscsi_stats_custom custom[0]
819
+ struct iscsi_stats_custom custom[]
830820 __attribute__ ((aligned (sizeof(uint64_t))));
831821 };
832822
....@@ -957,7 +947,7 @@
957947 * up to ISCSI_HOST_STATS_CUSTOM_MAX
958948 */
959949 uint32_t custom_length;
960
- struct iscsi_host_stats_custom custom[0]
950
+ struct iscsi_host_stats_custom custom[]
961951 __aligned(sizeof(uint64_t));
962952 };
963953